Bug 199505

Summary: grub fails to install
Product: [Fedora] Fedora Reporter: Peter Quiring <pquiring>
Component: anacondaAssignee: Peter Jones <pjones>
Status: CLOSED DUPLICATE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6CC: marius.andreiana, mattdm, samuel-rhbugs
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-04-07 03:58:33 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 150224    
Attachments:
Description Flags
/boot/grub/device.map
none
/var/log/anaconda.log
none
/var/log/anaconda.syslog
none
/var/log/anaconda.xlog
none
alternate device.map none

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)
4.Reboot
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]
/boot/grub/device.map

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]
/var/log/anaconda.log

Comment 4 Peter Quiring 2006-07-20 00:41:17 UTC
Created attachment 132716 [details]
/var/log/anaconda.syslog

Comment 5 Peter Quiring 2006-07-20 00:41:54 UTC
Created attachment 132717 [details]
/var/log/anaconda.xlog

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
drives)
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
that?

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)
  /dev/hdb1
If I change the order of the drives it shows:
  /dev/hdb (MBR) (selected)
  /dev/hdb1
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
170407.

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 ***