Re: grub2 writes to boot sector of all attached drives?
Thanks for the help again Qqmike,
running grub-emu I find:
sh:grub> ls
(host) (hd0) (hd0,8) (hd0,7) (hd0,6) (hd0,5) (hd0,3) (hd0,2) (hd0,1) (hd1) (hd1,3) (hd1,2) (hd1,1)
and from the partitions listed, it does seem that grub thinks the SATA drive is hd0, not the IDE drive I boot with Karmic.
This problem could be coming from the /boot/grub/device.map file mentioned in the grub updating.
For my system, that file contains:
cat /boot/grub/device.map
(hd0) /dev/sda
(hd1) /dev/sdb
(hd2) /dev/sdg
Which to me implies that grub wants to write to hd0 from this file and that would be the problem. I think if I fixed it manually, the problem wouldn't return.
However, the follow-up question would be why it was written that way in the first place.
I'm not sure how often that file is written or updated, so really I would only be guessing, but the date on the file itself is 2009-09-07. I think my initial install was in July. I've only updated since then.
I installed Karmic on the IDE drive when it was the lone drive [sdg is the card reader -mostly ignored] so that would/should make it sda??
Then I added the SATA drive, and configured the bios to boot from the IDE drive. However, at this point the /boot/grub/device.map file may have been rewritten with the new devices - in the new order as well.
It may quite possibly be that there was a bug at that point that has been corrected, so it might be difficult to recreate anything, though I think I will try some stuff.
very puzzling indeed.
Thanks for the help again Qqmike,
running grub-emu I find:
sh:grub> ls
(host) (hd0) (hd0,8) (hd0,7) (hd0,6) (hd0,5) (hd0,3) (hd0,2) (hd0,1) (hd1) (hd1,3) (hd1,2) (hd1,1)
and from the partitions listed, it does seem that grub thinks the SATA drive is hd0, not the IDE drive I boot with Karmic.
This problem could be coming from the /boot/grub/device.map file mentioned in the grub updating.
For my system, that file contains:
cat /boot/grub/device.map
(hd0) /dev/sda
(hd1) /dev/sdb
(hd2) /dev/sdg
Which to me implies that grub wants to write to hd0 from this file and that would be the problem. I think if I fixed it manually, the problem wouldn't return.
However, the follow-up question would be why it was written that way in the first place.
I'm not sure how often that file is written or updated, so really I would only be guessing, but the date on the file itself is 2009-09-07. I think my initial install was in July. I've only updated since then.
I installed Karmic on the IDE drive when it was the lone drive [sdg is the card reader -mostly ignored] so that would/should make it sda??
Then I added the SATA drive, and configured the bios to boot from the IDE drive. However, at this point the /boot/grub/device.map file may have been rewritten with the new devices - in the new order as well.
It may quite possibly be that there was a bug at that point that has been corrected, so it might be difficult to recreate anything, though I think I will try some stuff.
very puzzling indeed.
Comment