View previous topic :: View next topic |
Author |
Message |
solamour l33t
Joined: 21 Dec 2004 Posts: 698 Location: San Diego, CA
|
Posted: Wed Nov 06, 2013 7:12 pm Post subject: [Solved] GRUB2 Cannot Open Root Device |
|
|
I'm at "Chainloading GRUB2 from GRUB Legacy to test the setup" section in "GRUB2 migration from GRUB Legacy" (http://www.gentoo.org/doc/en/grub2-migration.xml).
When GRUB Legacy shows up, I see my usual legacy entry and GRUB2 Chainloading. When I select my legacy entry, everything boots up fine. But when I select GRUB2 Chainloading, GRUB2 screen shows up, and I'm greeted with "VFS: Cannot open root device b2a25719-0d1e-4ab3-b76e-5ed3256d728a or unknown-block(0,0): error -6".
If I press "e" to change GRUB2 entry from "root=UUID=b2a25719-0d1e-4ab3-b76e-5ed3256d728a" to "root=/dev/sda1", then everything works fine. Please share any suggestions.
Code: | # blkid
/dev/sda1: UUID="b2a25719-0d1e-4ab3-b76e-5ed3256d728a" TYPE="ext4"
[/boot/grub/grub.cfg]
menuentry 'Gentoo GNU/Linux' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-b2a25719-0d1e-4ab3-b76e-5ed3256d728a' {
load_video
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' b2a25719-0d1e-4ab3-b76e-5ed3256d728a
else
search --no-floppy --fs-uuid --set=root b2a25719-0d1e-4ab3-b76e-5ed3256d728a
fi
echo 'Loading Linux 3.10.7-gentoo-r1 ...'
linux /boot/kernel-3.10.7-gentoo-r1 root=UUID=b2a25719-0d1e-4ab3-b76e-5ed3256d728a ro
}
|
__
sol
Last edited by solamour on Fri Nov 08, 2013 3:54 am; edited 1 time in total |
|
Back to top |
|
|
mv Watchman
Joined: 20 Apr 2005 Posts: 6747
|
Posted: Wed Nov 06, 2013 8:03 pm Post subject: |
|
|
You cannot use root=UUID=... without an initrd. (This has nothing to do with grub/grub2: The linux kernel is not able to interpret this parameter; it can only be interpreted by an initrd). |
|
Back to top |
|
|
solamour l33t
Joined: 21 Dec 2004 Posts: 698 Location: San Diego, CA
|
Posted: Wed Nov 06, 2013 9:44 pm Post subject: |
|
|
Indeed. After creating initramfs using dracut, the system boots up without a problem using GRUB2. Thanks for taking time to respond.
__
sol |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|