Posts Tagged With: mbr

Installing GRUB Into MBR

Tagged with: , , , , , , ,

Use this when your MBR gets corrupted – usually happens after you reinstall windows. Pop in a bootable ubuntu DVD and boot into it. Then open a terminal and type in the following commands…

$ sudo grub
> find /boot/grub/stage1
> root (hd0,1) #Must be same as the output of the last command
> setup (hd0)
1 Comment »

Backup MBR to Image File

Tagged with: , , , , , , ,

Make a copy of MBR (Master Boot Record) to a file.

dd if=/dev/hda of=mbr.img bs=512 count=1

dd if=mbr.img of=/dev/hda bs=512 count=1 #restore the MBR
No Comments »