Need automatic MBR backup before installation

Bug #633064 reported by YannUbuntu
60
This bug affects 13 people
Affects Status Importance Assigned to Milestone
grub
New
Undecided
Unassigned
ubiquity (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: ubiquity

By default, Ubuntu installs GRUB on the MBR without creating backup of the original MBR.

This can cause many kinds of boot problems, especially if the MBR was "watermarked" (consequence can be : the computer cannot start, or the OEM windows in dual-boot cannot start).

As the MBR is very small (only 512 byte), it would cost nothing to save it automatically before installing GRUB. Then people who care about it could save it on external device.

Target location of this backup should be determined (e.g. Lilo automatically saves it in /boot ).

See also http://brainstorm.ubuntu.com/idea/10410/

Revision history for this message
YannUbuntu (yannubuntu) wrote :

After discussion on the ubuntu-fr forum (http://forum.ubuntu-fr.org/viewtopic.php?pid=3715670), it seems that the first 404 bytes of the original MBR are automatically saved in /usr/lib/syslinux/mbr.bin .

Can someone confirm ?

(If yes, the MBR can be restored (without the partition table) by the following command :
sudo dd if=/dev/sda of=/home/$USER/mbr_linux.bin bs=404 count=1

Revision history for this message
YannUbuntu (yannubuntu) wrote :

After checking on a real installation (http://forum.ubuntu-fr.org/viewtopic.php?pid=3716589#p3716589) :
the 3 following are different :
I) MBR before installation
II) MBR in /usr/lib/syslinux/mbr.bin
III) MBR after installation

Conclusion : /usr/lib/syslinux/mbr.bin is not a backup of the original MBR. So this bug report is still valid.

Revision history for this message
pierguiard (pierguiard-gmail) wrote :

This bug affects all dual boot installations, particularly Windows 7 and Vista.
It is urgent to propose an automatic backup of the MBR.
A dual boot installation is already quite a headache for a beginner
Écouter
Lire phonétiquement

Revision history for this message
YannUbuntu (yannubuntu) wrote :

We (ubuntu-fr) developped and heavily tested a tool that solves this bug : see bug #747279 , it is now ready for inclusion in the live-CD.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ubiquity (Ubuntu):
status: New → Confirmed
Revision history for this message
Marcus Tomlinson (marcustomlinson) wrote :

This release of Ubuntu is no longer receiving maintenance updates. If this is still an issue on a maintained version of Ubuntu please let us know.

Changed in ubiquity (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Marcus Tomlinson (marcustomlinson) wrote :

This issue has sat incomplete for more than 60 days now. I'm going to close it as invalid. Please feel free re-open if this is still an issue for you. Thank you.

Changed in ubiquity (Ubuntu):
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.