URL: <http://savannah.gnu.org/bugs/?33582>
Summary: grub-install failure with: cannot stat `/dev/root' Project: GNU GRUB Submitted by: jps Submitted on: Thu 16 Jun 2011 11:59:21 PM GMT Category: Installation Severity: Major Priority: 5 - Normal Item Group: Software Error Status: None Privacy: Public Assigned to: None Originator Name: John Stanley Originator Email: jpsinthe...@verizon.net Open/Closed: Open Discussion Lock: Any Release: Release: other Reproducibility: Every Time Planned Release: None _______________________________________________________ Details: Hi, I just built grub-1.99 and am having a problem with grub-install. If I run grub-install I get the following error: grub-install --no-floppy --grub-setup=/bin/true /dev/sdb /usr/sbin/grub-probe: error: cannot stat `/dev/root'. This does not occur with grub-1.99rc2. So, I tried reverting the changes in grub-core/kern/emu/getroot.c in going from grub-1.99rc2 to grub-1.99, ie, I applied the following patch to grub-1.99/grub-core/kern/emu/getroot.c: --- grub-1.99.old/grub-core/kern/emu/getroot.c 2011-04-25 09:11:52.000000000 -0400 +++ grub-1.99.new/grub-core/kern/emu/getroot.c 2011-04-16 09:28:59.000000000 -0400 @@ -216,6 +216,9 @@ /* Now scan visible mounts for the ones we're interested in. */ for (i = entry_len - 1; i >= 0; i--) { + if (entries[i].major != 0) + continue; /* not a virtual device */ + if (!*entries[i].device) continue; --- This makes grub-1.99/grub-core/kern/emu/getroot.c identical to grub-1.99rc2/grub-core/kern/emu/getroot.c. With this reversion, grub-1.99 now works fine. I'm not sure if this is a bug or not, but it would be nice to resolve this issue. I'm running on an i686-pc-linux-gnu system under linux-2.6.39.1, gcc-4.5.3, glib-2.13, binutils-2.21, udev-171. thanks much for your time, John _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?33582> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/ _______________________________________________ Bug-grub mailing list Bug-grub@gnu.org https://lists.gnu.org/mailman/listinfo/bug-grub