Home » Questions » Computers [ Ask a new question ]

Remove Master Boot Code but leave Partition Table?

Remove Master Boot Code but leave Partition Table?

For testing purposes, I need to fidget with the MBR on a Windows7 test host: I'd like to remove the Master Boot Code but leave the Partition Table within.

Asked by: Guest | Views: 72
Total answers/comments: 1
Guest [Entry]

"That command will remove the partition table. If you want to remove the MBR and keep the partition table:

dd if=/dev/zero of=/dev/hda bs=446 count=1

See Wikipedia's MBR page for the MBR layout. The primary partition table starts at byte 446 (counting from zero)."