Clear (erase) MBR in Linux. ExplainedBy neokrates, written on July 21, 2010 |
howto |
- neokrates
- Email: uwarov@yahoo.com
- Website: http://www.thinkplexx.com
- Join date: 05-31-09
- Posts: 20
Rate it
Ad
Poll
Virtualized OS can be used for?
- Something else (100%, 9 Votes)
- Portable OS (0%, 0 Votes)
- Standardized OS versions (0%, 0 Votes)
- More Flexibility/Scalability (0%, 0 Votes)
- Games (0%, 0 Votes)
- Build environments (0%, 0 Votes)
- Test environments (0%, 0 Votes)
- Development environments (0%, 0 Votes)
- Nothing useful (0%, 0 Votes)
Total Voters: 9
Loading ...
Most popular search terms:
Sometimes it is needed to clear (remove, erase) the Mbr. Of course, you must first know where it is. Here is a simple workflow to erase it under Linux
All of the following must be executed as root, so sudo bash.
After Mbr is lost you will not be able to boot, so make sure that you know exactly what to do next, like installing a clean boot manager (Lilo, Grub, etc).
| 1 |
Locate MBR
Where is your MBR (find Boot Device)? fdisk -l
Normally it is one of:
/dev/hdaif your have IDE disk/dev/sdaif your use SCSI disk
Of course, your case may be different.
| 2 |
Clear MBR
Clear with:
dd if=/dev/zero of=$YOUR_MBR_DEVICE bs=512 count=1
# dd if=/dev/zero of=/dev/sda bs=512 count=1 1+0 records in 1+0 records out 512 bytes (512 B) copied, 9.5923e-05 s, 5.3 MB/s
Mbr is cleared, good luck
|
LEARN MORE (amazon bookstore)
|
|
TAGS
|
|
SOCIAL
|
|
INCOMING SEARCH TERMS
|

(1 votes, average: 4 out of 5)
















