2012年10月3日 星期三

[dd][MBR Erase][Linux] How to erase MBR use Linux command

[dd][MBR Erase][Linux] How to erase MBR use Linux command



Question:

how to erase MBR in Linux ?

Answer :

# dd if=/dev/zero of=/dev/hda1 bs=512 count=1

sudo dd if=/dev/zero of=/dev/sdb bs=512 count=1

1+0 records in

1+0 records out

512 bytes (512 B) copied, 0.00248635 s, 206 kB/s



bs = the first 512 bytes of the harddrive to remove the bootloader

count = 1 just clean 512 bytes (512 B)

count = 2 clean 1024 bytes (1024 B)



Reference :


Related Posts:

0 意見:

張貼留言