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'

Submitted by:  John Stanley <jps>
Submitted on:  Thu 16 Jun 2011 11:59:21 PM UTC  
 
Category: InstallationSeverity: Major
Priority: 5 - NormalItem Group: Software Error
Status: FixedPrivacy: Public
Assigned to: NoneOriginator Name: John Stanley
Open/Closed: ClosedRelease: 
Release: otherReproducibility: 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>
Project 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>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 23 Jun 2011 06:11:29 PM UTCphcoderStatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1