I did something which I shouldn't have, and I think it exposed a problem that may have been there for a while.
I normally boot from (hd0) with the system located on /dev/sda1. I was setting up a backup disk so that it would be bootable. So I booted the system on /dev/sdc1, and did a 'sudo grub-setup (hd2)' . OK, that seems to have done what I wanted.
Problem is: now that I have removed the hd2 disk, I can't boot. It evidently did something to the MBR on hd0.
So, I booted with a supergrubdisk.
root=(hd0,msdos1)
linux = /vmlinuz root=/dev/sda1 ro
initrd = /initrd.img
Tried to boot, and get a "?/normal.mod" error of some kind.
OK, in looking through /dev/sda1/boot/grub/grub.cfg I find that all of the entires that should point to (hd0,msdos1) now point to (hd2,msdos1). In other words, something thinks the root drive should be hd2, when it isn't even there.
I tried running 'sudo grub-setup '(hd0)' and it gave no errors, but when I do an update-grub, the same problem occurs.
I can fix this by manually editing grub.cfg so everything points to (hd0,msdos1), but it's going to break every time update-grub runs.
Anyone know where the (hd2) part has been set? Or why 'grub-setup '(hd0)' ' isn't fixing it?
This is 11.10
I normally boot from (hd0) with the system located on /dev/sda1. I was setting up a backup disk so that it would be bootable. So I booted the system on /dev/sdc1, and did a 'sudo grub-setup (hd2)' . OK, that seems to have done what I wanted.
Problem is: now that I have removed the hd2 disk, I can't boot. It evidently did something to the MBR on hd0.
So, I booted with a supergrubdisk.
root=(hd0,msdos1)
linux = /vmlinuz root=/dev/sda1 ro
initrd = /initrd.img
Tried to boot, and get a "?/normal.mod" error of some kind.
OK, in looking through /dev/sda1/boot/grub/grub.cfg I find that all of the entires that should point to (hd0,msdos1) now point to (hd2,msdos1). In other words, something thinks the root drive should be hd2, when it isn't even there.
I tried running 'sudo grub-setup '(hd0)' and it gave no errors, but when I do an update-grub, the same problem occurs.
I can fix this by manually editing grub.cfg so everything points to (hd0,msdos1), but it's going to break every time update-grub runs.
Anyone know where the (hd2) part has been set? Or why 'grub-setup '(hd0)' ' isn't fixing it?
This is 11.10
Comment