Hi all,
Most of the Linux distributions I use allow me to override where GRUB is installed, but I now need to install Ubuntu on some Dell Latitude laptops, and on the test install I did on my old Vaio netbook, it installs GRUB2 on the MBR of the drive without offering any alternative.
While I could still get to both the recovery partition and to Windows from GRUB2's boot menu, further attempts to recover my original boot setup failed (e.g. after force-installing GRUB2 to the /boot partition and writing syslinux's mbr.bin to MBR, pressing F10 which normally boots the recovery partition now just yields a blank screen).
So the question is:
- do manufacturers like Sony, Dell etc. use a special MBR, or will Windows' bootrec /fixmbr do the right thing?
- would backing up the first 446 bytes suffice, or do I have to do something more?
Thanks in advance!
-
ALLurGroceries Vegan Vermin Super Moderator
Yes you can do this, but you want the first 512 bytes, some manufacturers can use a customized MBR that has special code for entering recovery mode.
Here's a quick guide: Backup MBR in Linux | Backup HowTo -
What I'm wondering is if F10 is handled in the MBR, or in the recovery partition. I think what I did wrong was forgetting to make sure that the recovery partition (/dev/sda1) is still marked bootable after GRUB did its thing.
In any case, I'm sheepish to report that Ubuntu indeed has a way to specify where to install the bootloader; I just missed it because it's not where I expected it. -
Ubuntu has always ignored clearly exposing the bootloader install options.
Distributions like openSUSE even allow installing the bootloader to multiple partitions... (which I personally like) -
In this case, I used custom partitioning anyway, but my brain was not expecting to see the bootloader option there and thus missed it entirely. And after the partitioning step, Ubuntu's installer does things in the background while asking you the remaining questions, and by the time I noticed everything is already written
Backing up MBR on disks with recovery partiitions?
Discussion in 'Linux Compatibility and Software' started by hircus, Nov 11, 2011.