bugGNU GRUB - Bugs: bug #10186, install-grub does not find the...

 
 

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

bug #10186: install-grub does not find the root device

Submitted by:  None
Submitted on:  Fri 27 Aug 2004 09:15:42 PM UTC  
Votes:  50  
 
Category: InstallationSeverity: Major
Priority: 5 - NormalItem Group: Software Error
Status: NonePrivacy: Public
Assigned to: NoneOriginator Name: Michal Suchanek
Originator Email: -unavailable-Open/Closed: Closed
Release: 0.94Release: None
Reproducibility: Every TimePlanned Release: None

Sat 15 Dec 2007 04:37:55 PM UTC, comment #3:

We've moved to GRUB 2 as a development platform. Please can you check if this bug still applies there, and if it does, reopen it?

Thanks

Robert Millan <robertmh>
Project Administrator
Mon 13 Aug 2007 06:23:37 AM UTC, comment #2:

I'll second this bug.

Under debian etch, grub 0.97-27 ... If there's no separate /boot partition then grub-install checks the root filesystem. If no initramfs is used, then the root device mounted is known as /dev/root. And if /etc/mtab is a symlink to /proc/mounts then "df /" shows /dev/root as the root device. And so grub-install errors out with "/dev/root: Not found or not a block device."

The workaround I did was to remove the /etc/mtab symlink and make it an ordinary file. Now df shows:

duke:~# df /
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda3 1976524 886592 989528 48% /

And grub-install works.

So I suggest that grub-install should implement some more powerful voodoo for obtaining the correct root device.

Nick Andrew <elronxenu>
Mon 30 Aug 2004 12:41:23 PM UTC, comment #1:

The device of the mounted filesystem could be possibly obtained by stat(1) or stat(2). The C function interface is probably more portable as it should return predictable results but the command is not even present on many systems.
At least comparing the results for / and /boot should work fine. Decoding the actual device node and physical disk partition may be harder.

Michal `hramrach' Suchanek <hramrach>
Fri 27 Aug 2004 09:15:42 PM UTC, original submission:

It is possible to specify the root device to the linux kernel as a number (and for some reason lilo does this). When it is specified this way (and possibly under other circumstances) the kernel would report that rootfs is mounted on / and install-grub script is not able to get the real device mounted on / just by scanning the output of df.

afaict the detection of root device by using df is still present in the cvs version of the script.

Anonymous

 

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 robertmh (Posted a comment)
  • -unavailable- added by elronxenu (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 50 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 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 15 Dec 2007 04:37:55 PM UTCrobertmhOpen/ClosedOpen=>Closed
    Mon 13 Aug 2007 06:26:19 AM UTCelronxenuCarbon-Copy-=>Added elronxenu
    Mon 30 Aug 2004 12:42:21 PM UTChramrachCarbon-Copy-=>Added hramrach

    Back to the top


    Powered by Savane 3.1-cleanup1