rescuing system after MBR overwrite; root on EVM-ed ReiserFS / root on standalone ext3

Shot (Piotr Szotkowski) shot at hot.pl
Thu Apr 7 12:09:52 UTC 2005


Hello.

Thomas Kaiser:

> If you have your bootloader (grub) installed in the MBR, just save
> the MBR before you install windows. And put your backup MBR back
> after windows install has finished.
> 
> I would do something like this:
> - Boot into Linux
> - dd if=/dev/hda of=mbr.bin bs=512 count=1 -> save MBR to the curent 
> directory
> - install windows
> - after windows install is finished, boot from any live/rescue Linux
> - mount the partition where you put mbr.bin
> - dd if=/path_to_your_backup/mbr.bin of=/dev/hda
> - reboot and Linux should boot like it did before the windows install

A belated, but most sincere thanks.

I did `dd if=/dev/hda of=mbr.bin bs=512 count=1`, copied the mbr.bin
file to a remote machine, installed Windows, booted from the Live CD,
downloaded the mbr.bin file and did `sudo dd if=mbr.bin of=/dev/hda`.
Much easier that all the fun with mounting filesystems and playing
with grub-install, IMHO.

Thanks again for setting me on the right track.

Cheers,
-- Shot
-- 
  In the UNIX world, people tend to interpret 'non-technical user' as meaning
  someone who's only ever written one device driver.           -- Daniel Pead
====================== http://shot.pl/hovercraft/ === http://shot.pl/1/125/ ===
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20050407/35354abc/attachment.sig>


More information about the ubuntu-users mailing list