Grub fails to install boot loader due to wrong disk numbering ( Gutsy and Feisty )
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grub-installer (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: grub-installer
Both in Feisty as in Gutsy, there is a bug that causes the Grub install to fail.
My setup:
1x single SATA disk
1x Raid-0 SATA raid array , 2 disks
Live CD wants to install Grub to the MBR of disk0. On the live cd, the raid disks are individually identified as disk 0 and 1. The single disk is identified during live cd as disk 2. The single disk is chronologically added later to the machine, that might be the reason. However in the bios the single SATA disk is configured to be the first boot device and this disk is also physically connected to the first SATA port.
Changing the Grub installation disk in the advanced settings of the live cd fixes the problem and Grub is installed to the correct disk.
There is however a second problem then. After rebooting the Grub menu tries to boot disk 2 again. But this time the correct numbering is disk 0 for the single disk, as I would have expected in the first place and disk 1/2 for the raid array. Manually editing the Grub boot options back to disk 0 fixes this.
Same problem happened to me, here's my setup:
80GB SATA drive that I want to host the operating system / MBR
2x120GB IDE drives already formatted as XFS holding media
I tell the LiveCD installer to do a guided install using all of SD0, install goes fine. GRUB's menu.lst gets configured to boot off (hd2,0) instead of (hd0,0), so until you edit it you get Error 15's from GRUB trying to boot.