bugGNU GRUB - Bugs: bug #33582, grub-install failure with: cannot...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #33582: grub-install failure with: cannot stat `/dev/root'

Submitter:  John Stanley <jps>
Submitted:  Thu 16 Jun 2011 11:59:21 PM UTC
   
 
Category:  Installation Severity:  Major
Priority:  5 - Normal Item Group:  Software Error
Status:  Fixed Privacy:  Public
Assigned to:  None Originator Name:  John Stanley
Open/Closed:  Closed Release:  other
Release:  Reproducibility:  Every Time
Planned Release:  None

Thu 23 Jun 2011 06:11:29 PM UTC, comment #1: 

Problem is in completely different part (we previously assumed /dev/root to be a symlink which is sometimes wrong). Fixed now

Vladimir Serbinenko <phcoder>
Group administrator
Thu 16 Jun 2011 11:59:21 PM UTC, original submission:  

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

John Stanley <jps>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by phcoder (Posted a comment)
  • -email is unavailable- added by jps (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-06-23 phcoder StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-0329.
    Corresponding source code