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

Submitter:  None
Submitted:  Fri 27 Aug 2004 09:15:42 PM UTC
Votes: 50
 
Category:  Installation Severity:  Major
Priority:  5 - Normal Item Group:  Software Error
Status:  None Privacy:  Public
Assigned to:  None Originator Name:  Michal Suchanek
Originator Email:  -email is unavailable- Open/Closed:  Closed
Release:  None Release:  0.94
Reproducibility:  Every Time Planned 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>
Group 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

 

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

    There are 50 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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2007-12-15 robertmh Open/ClosedOpen Closed
    2007-08-13 elronxenu Carbon-Copy- Added elronxenu
    2004-08-30 hramrach Carbon-Copy- Added hramrach

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code