VMware Communities
adrian4aes
Contributor
Contributor

Kernel Panic - not syncing: VFS: Unable to mount root fs on unknown-bloc(8,2)

I am a spanish speaker so excuse me for my bad english.

I am learning how to compile slackware kernel, so I have downloaded linux-3.2.7.tar.bz2 fromhttp://www.kernel.org

Conditions:

  • Slackware installed on a vmware virtual machine.
  • Host o.s windows 7.
  • Slackware root filesystem: ext4
  • Slackware old kernel: 2.6.37.6
  • Slackware partitions: sda1 for swapping, sda2 for the kernel.

Basically I have followed the following steps:

#cd /usr/src
#tar jvxf linux-3.2.2.tar.bz2
#mv /usr/src/linux /usr/src/linux.old 
#ln -s /usr/src/linux-3.2.2 /usr/src/linux
#cd linux-3.2.2
#make mrproper
#cp /usr/src/linux-2.6.37.6/.config /usr/src/linux-3.2.2/.config
#make menuconfig

Load an alternate configuration file: .config INCLUDED (OPTION Y):

ATA/ATAPI/MFM/RLL support (DEPRECATED) (at Device drivers)
SCSI generic support (at Device drivers)
second extended support (at filesystems)
ext3 journaling (all)
ext4 (all)
ext4 (at filesystems)
JBD (ext4) debuggin support
JBD2 (ext4) debugging support
ReiserFS support
XFS filesystem support
"compile kernel with debug info" (at kernel hacking)

make dep
make clean
make bzImage
make modules
make modules_install
mv /boot/System.map /boot/System.map.old
cp /usr/src/linux/System.map /boot/System.map-3.2.2
ln -s /boot/System.map-3.2.2 /boot/System.map
mv /boot/vmlinuz /boot/vmlinuz.old
cp /usr/src/linux/arch/i386/boot/bzImage /boot/vmlinuz-3.2.2
ln -s /boot/vmlinuz-3.2.2 /boot/vmlinuz
nano -w /etc/lilo.conf

ADDED THE FOLLOWING LINES:

image=/boot/vmlinuz.old
label = oldSlack
root = /dev/sda2
read-only

#lilo
#lilo -q
#shutdown -r now

When kernel 3.2.2 is booting, it stops showing the following:

VFS: Cannot open root device "802" or unknown-block(8,2)
Please append a correct "root=" boot option
Kernel Panic - not syncing: VFS: Unable to mount root fs on unknown-bloc(8,2)

I hate this message because I have recompiled the kernel many times, and after hours of compilation I always get this message. Smiley Sad

Can anyone help me to understand what I am doing bad or why is that error?ERROR-PANIC.png

0 Kudos
1 Reply
continuum
Immortal
Immortal

if this is related to VMware then my only idea is that you use scsi0.virtualDev = "buslogic" in the vmx-file and that your newer kernel no longer supports it ...
just a wild guess


________________________________________________
Do you need support with a VMFS recovery problem ? - send a message via skype "sanbarrow"
I do not support Workstation 16 at this time ...

0 Kudos