Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#3993 - GRUB fails to install to MBR of /dev/hda when root (/boot) is on /dev/sda1

Attached to Project: Arch Linux
Opened by Matt Weidner (mattweidner) - Saturday, 18 February 2006, 05:33 GMT
Last edited by Jan de Groot (JGC) - Saturday, 18 February 2006, 08:52 GMT
Task Type Bug Report
Category Installation
Status Closed
Assigned To Judd Vinet (judd)
Architecture not specified
Severity Low
Priority Normal
Reported Version 0.7.1 Noodle
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

When installing the bootloader from /arch/setup, GRUB correctly detects /dev/hda as hd0 and /dev/sda as hd1
I changed boot/grub/menu.lst to read

root (hd1,0)

and selected to install to /dev/hda

GRUB install failed with Error 15: File not found

Flipping over to vt5:

grub> root (hd0,0)
Filesystem is type fat, partition type 0xc
grub> setup (hd0)
Checking if "/boot/grub/stage1" exists... no
Checking if "/grub/stage1" exists... no

Error 15: File not found
grub> quit

It is clearly using the wrong root partition.

After failing, going back to check menu.lst you'll find root is reset to (hd0,0)

Re-edit menu.lst to: root (hd1,0)
Change to a free vt to set up GRUB manually with:

grub> root (hd1,0)
grub> setup (hd0)

works fine.
This task depends upon

Closed by  Judd Vinet (judd)
Monday, 10 April 2006, 17:37 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed for 0.7.2
Comment by Matt Weidner (mattweidner) - Wednesday, 22 February 2006, 05:55 GMT
Ok, I've written a patch for /arch/setup to fix this.
Could someone please point me to some info on how I can get my modified script back into an initrd and roll a new installation iso for testing?

thanks.

mw
Comment by Judd Vinet (judd) - Wednesday, 22 February 2006, 06:02 GMT
Checkout the full Arch CVS repo. Instructions here: http://www.archlinux.org/cvs.php

You'll find a arch/scripts/mkiso script that is useful.

Comment by Matt Weidner (mattweidner) - Thursday, 23 February 2006, 05:47 GMT
Thanks for the pointer Judd. Here's my patch. I tested it on two boxes. One box had IDE and SATA drives. The second box had only one IDE hard drive. Both systems dual boot arch and windows.

arch rocks!!

mw
Comment by Matt Weidner (mattweidner) - Thursday, 06 April 2006, 03:45 GMT
Just browsing through flyspray, looking for something to work on, I found that my patch may also fix bug #FS3558 here: http://bugs.archlinux.org/task/3558

Cheers!

mw
Comment by Judd Vinet (judd) - Monday, 10 April 2006, 17:36 GMT
Thanks Matt. I've added your patch for the next release.

Loading...