FG
💻 Software

Remove Master Boot Code but leave Partition Table?

Fresh5 days ago
Mar 15, 20261600 views
Confidence Score0%
0%

Problem

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. Does the following Linux command do this, or does it wipe out the entire MBR, including the Partition Table? Thank you.

Error Output

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

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Remove Master Boot Code but leave Partition Table?

Low Risk

That command will remove the partition table. If you want to remove the MBR and keep the partition table: See Wikipedia's MBR page for the MBR layout. The primary partition table starts at byte 446 (counting from zero).

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment