Skip to contentSkip to conversation

Wrong prefix

DISCUSSION Mathias Hällman 2 participants 3 messages Jan 21, 2008

lore
Share & tools
lore
#0 lore raw

Hi
I got the latest version of grub2 from the cvs repository, built it, and installed it. Then I edited grub.cfg and ran grub-install succesfully.
Now when I boot, the prefix is wrong. It is always set to (hd0,6)/grub, while I want it to be set to (hd1,6)/grub.
I have also tried editing devices.map, but this doesn't help. I've installed grub on the mbr of (hd0), and I have the boot partition on (hd1,6). (hd0,6) does not exist.
Anyone know how to fix this?
Thanks!
/Mathias

#1 lore raw

"Mathias Hällman" <[email protected]> writes:

Hi,

Quoted 9 lines

I got the latest version of grub2 from the cvs repository, built it, and installed it. Then I edited grub.cfg and ran grub-install succesfully.
Now when I boot, the prefix is wrong. It is always set to (hd0,6)/grub, while I want it to be set to (hd1,6)/grub.
I have also tried editing devices.map, but this doesn't help. I've installed grub on the mbr of (hd0), and I have the boot partition on (hd1,6). (hd0,6) does not exist.
Anyone know how to fix this?

Does device.map get overwritten after installing now? If changing device.map doesn't have any effect, it seems to be a bug to me.

--
Marco

#2 lore raw

device.map does not get overwritten, no. And nothing changes when I edit it. One thing I discovered when confirming this though, is that the devices seem to jump around depending on what hdd I've selected to boot from in bios.

grub-mkdevicemap takes my 4 sata's as (hd0-3) and my 1 ide as (hd4). When I boot, the ide always seem to be (hd0), then the 4 sata's as (hd1-4). (this is how I edited my device.map)
I've always wanted to boot from my ide (hd0), and then load linux from the boot partition on my first sata. (hd1) Though now when I tried to boot from some other sata instead, this one and my ide becomes (hd1) and (hd0) in some order, making my first sata with the boot partition appear at (hd2), also wrecking my grub.cfg..
I hope this didn't become too confusing.. Perhaps this info is of some value though.

Quoted 28 lines · Marco Gerards

"Mathias Hällman" <[email protected]> writes:

Hi,

Quoted 9 lines

I got the latest version of grub2 from the cvs repository, built it, and installed it. Then I edited grub.cfg and ran grub-install succesfully.
Now when I boot, the prefix is wrong. It is always set to (hd0,6)/grub, while I want it to be set to (hd1,6)/grub.
I have also tried editing devices.map, but this doesn't help. I've installed grub on the mbr of (hd0), and I have the boot partition on (hd1,6). (hd0,6) does not exist.
Anyone know how to fix this?

Does device.map get overwritten after installing now? If changing device.map doesn't have any effect, it seems to be a bug to me.

--
Marco

_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel