Bug 199505 - grub fails to install
Summary: grub fails to install
Status: CLOSED DUPLICATE of bug 170407
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: 6
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Peter Jones
QA Contact:
Depends On:
Blocks: FC6Blocker
TreeView+ depends on / blocked
Reported: 2006-07-19 23:23 UTC by Peter Quiring
Modified: 2007-11-30 22:11 UTC (History)
3 users (show)

Clone Of:
Last Closed: 2007-04-07 03:58:33 UTC

Attachments (Terms of Use)
/boot/grub/device.map (63 bytes, text/plain)
2006-07-20 00:40 UTC, Peter Quiring
no flags Details
/var/log/anaconda.log (49.51 KB, application/octet-stream)
2006-07-20 00:40 UTC, Peter Quiring
no flags Details
/var/log/anaconda.syslog (86.12 KB, application/octet-stream)
2006-07-20 00:41 UTC, Peter Quiring
no flags Details
/var/log/anaconda.xlog (51.41 KB, application/octet-stream)
2006-07-20 00:41 UTC, Peter Quiring
no flags Details
alternate device.map (82 bytes, text/plain)
2006-09-22 16:21 UTC, Peter Quiring
no flags Details

Description Peter Quiring 2006-07-19 23:23:28 UTC
Description of problem:  Aftering installing on hdb the install phase has failed
to install the grub boot sector on hda.  No errors encountered during install
phase. (note : hda = WinXP 100% NTFS, hdb = 100% free space).  I tried to boot
into rescue mode and try the "grub-install /dev/hda" after running "chroot
/mnt/sysimage" but I get an error message "/dev/hdb1 does not have a
corresponding BIOS drive number".

Version-Release number of selected component (if applicable):

How reproducible:Always (tried twice)

Steps to Reproduce:
1.Boot from DVD on USB-DVD-ROM
2.Allow anaconda to perform auto partitioning on free space.
3.Install Fedora Core (no error messages)
5.Still booting into WinXP (no grub)
Actual results:Boots into XP boot manager.

Expected results:Boot into grub manager.

Additional info:I have saved a copy of the MBR from hda when I use to have FC5
installed on hda (hda was partitioned then).  Could I just paste this MBR back
into hda and will grub be "smart" enough to look for /boot on hdb???  Or is
there config info saved in the grub master boot sector for where to look for /boot?

Comment 1 Jeremy Katz 2006-07-20 00:16:58 UTC
Can you provide the /boot/grub/device.map as well as /var/log/anaconda*

Comment 2 Peter Quiring 2006-07-20 00:40:13 UTC
Created attachment 132714 [details]

Interesting to note that hdb is NOT in this map file.

Comment 3 Peter Quiring 2006-07-20 00:40:38 UTC
Created attachment 132715 [details]

Comment 4 Peter Quiring 2006-07-20 00:41:17 UTC
Created attachment 132716 [details]

Comment 5 Peter Quiring 2006-07-20 00:41:54 UTC
Created attachment 132717 [details]

Comment 6 Peter Quiring 2006-07-20 00:44:45 UTC
Those are the requested log files.  Hope they help.

PS. I tried to copy the MBR from a previous FC5 install as I asked about in the
additional info -> didn't work -> just get a blank screen on bootup.

Comment 7 Peter Quiring 2006-07-20 01:21:39 UTC
Got it working. Looks like that device.map was not setup correctly.

1) I switched the drives (master <-> slave)
2) run linux rescue mode
3) edited device.map and added "(hd1)  /dev/hdb"
4) run "grub-install /dev/hdb" (note that I use hdb here since I switched the
5) switched the drives back

Steps 1 & 5 were probably not needed but I was trying stuff till I got it working.
Looks like the grub MBR is specific to install after all.

Comment 8 Peter Quiring 2006-07-20 01:55:53 UTC
FYI : I tried to run grub-install again without switching the drives and it
works.  So steps 1 & 5 were not needed in my fix posted earlier.  The problem is
definitely the device.map, but why?

Comment 9 Jeremy Katz 2006-07-20 21:54:21 UTC
Hrmm... we might have broken writing out things for multiple drives, although
the code seems fine from inspection

Comment 10 Peter Quiring 2006-07-21 00:18:06 UTC
Well... I tried to install FC5 and I get the same results.  So this is not a
regression.  I've never tried this current hardware config before with Fedora. 
I use to just re-partition my main drive since I was using FAT32 and it was easy
to resize, but now I use NTFS (faster) so I decided to pop in a smaller drive
and make it the slave to use for Fedora.
I'll try other things and keep you posted.
Could be just some sort of hardware compatibility issue.  

Comment 11 Peter Jones 2006-07-27 21:25:34 UTC
This probably just means we can't detect which one is bootable, and you need to
change the disk order on the "advanced bootloader options" screen.  Can you try

Comment 12 Peter Quiring 2006-07-29 18:57:36 UTC
I tried that, no change.  In the "advanced bootloader options" everything looks
fine.  By default it shows:
  /dev/hda (MBR) (selected)
If I change the order of the drives it shows:
  /dev/hdb (MBR) (selected)
which doesn't make any sense.
The device.map isn't getting generated properly for grub-install.

Comment 13 Peter Jones 2006-09-22 14:20:42 UTC
The second of those (which you say doesn't make sense) appears to be correct -
have you tried it to see what happens?

Comment 14 Peter Quiring 2006-09-22 16:21:34 UTC
Created attachment 136949 [details]
alternate device.map

Comment 15 Peter Quiring 2006-09-22 16:24:14 UTC
As your can in this device.map when I switch the drive order, it has both drives
listed in there, but there order is reversed as expected.
I'm still booting directly into WinXP, so anaconda must have installed the MBR
on hdb as expected in this case.

Comment 16 Samuel Sieb 2006-11-04 19:27:17 UTC
Did you use the default partitioning with LVM?  This may be a duplicate of bug

Comment 17 Peter Quiring 2006-11-04 19:49:37 UTC
Yes, Bug 170407 seems similar.

Comment 18 Matthew Miller 2007-04-06 18:26:08 UTC
Fedora Core 5 and Fedora Core 6 are, as we're sure you've noticed, no longer
test releases. We're cleaning up the bug database and making sure important bug
reports filed against these test releases don't get lost. It would be helpful if
you could test this issue with a released version of Fedora or with the latest
development / test release. Thanks for your help and for your patience.

[This is a bulk message for all open FC5/FC6 test release bugs. I'm adding
myself to the CC list for each bug, so I'll see any comments you make after this
and do my best to make sure every issue gets proper attention.]

Comment 19 Samuel Sieb 2007-04-07 02:53:24 UTC
I would change the version if I could, but I can't.  This is almost certainly a
duplicate of bug 170407, but that one has FC4 as the version.

Comment 20 Matthew Miller 2007-04-07 03:58:33 UTC
Thanks. I'll mark this as a dupe and update that one.

*** This bug has been marked as a duplicate of 170407 ***

Note You need to log in before you can comment on or make changes to this bug.