Wednesday, February 25, 2015

Linux : rescue grub.conf file

Problem: After grub.conf are modified, kernel cannot be boot and will show the following error :

Kernel panic - not syncing : VFS : Unable to mount root fs on unknown-block(0,0)

Root cause : In grub.conf, kernel and initrd should be 2 separate lines

Fix : During boot menu, press c to enter grub command line

grub > kernel /vmlinuz-2.6.32-431.29.2.el6.x86_64  root=/dev/mapper/vg0-rootvol  (press tab after /v )
grub > initrd /initramfs-2.6.32-431.29.2.el6.x86_64.img (press tab after /initramfs )
grub > boot

After system is up, modify grub.conf file again

No comments:

Post a Comment