субота, 18 грудня 2010 р.

Remove MBR from hard drive

Say you want to wipe Linux from the hard drive and you don't want reinstall the Windows you had there. You delete the Linux partitions, but chances are that you had bootloader, either LILO or GRUB installed in MBR. Since you will delete / and /boot, you don't have valid bootloader anymore and you don't need it at all.

What you want is to install default MBR on the disk.

From Linux you can do this by filling MBR bytes on disk with zeroes.

# dd if=/dev/null of=/dev/sdX bs=446 count=1

Немає коментарів:

Дописати коментар