Quantcast
Channel: Active questions tagged kernel - Stack Overflow
Viewing all articles
Browse latest Browse all 6501

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

$
0
0

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 from http://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

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: .configINCLUDED (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.oldlabel = oldSlackroot = /dev/sda2read-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 optionKernel 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. :(

Can anyone help me to understand what I am doing bad or why is that error?


Viewing all articles
Browse latest Browse all 6501

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>