Bug#564928: the mbr needs updating

Felix Zielcke fzielcke at z-51.de
Fri Jan 15 09:33:27 UTC 2010


Am Mittwoch, den 13.01.2010, 14:08 +0000 schrieb Dennis 123321:
> I had this issue this morning. It is caused by the installation of the
> new grub not updating the actual mbr, and only the files in
> /boot/grub/
> 
> It is a simple fix;
> as root, execute something like this after you install the new package
> for grub-pc. (changing the destination for your drive, this was __my
> exact command__ for my computer):
> 
>      # grub-install --no-floppy --recheck --force /dev/sda3
> 
> a more generic command may look like:
> 
>      # grub-install /dev/sda
> 
> now, reboot, and it should boot perfectly.
> If you install the new grub-pc and forget to update the boot sector,
> you can chroot in and do it that way (thats what I did).

The proper fix is to run `sudo dpkg-reconfigure grub-pc' and select the
device (or just all) in the debconf prompt for it, from which you boot.
Else grub-install gets run on the wrong the device and then this can
happen.
Only grub-install touches /boot/grub. The package postinst just runs it
if a device is stored in grub-pc/install_devices.

@Vincent:
You're report shows grub-pc/install_devices has /dev/hda stored.
I assume that's not (anymore?) the device you boot from, else that
shouldn't happen.
Probable this should be merged with #554790

-- 
Felix Zielcke
Proud Debian Maintainer and GNU GRUB developer







More information about the Pkg-grub-devel mailing list