-   Linux - Software (
-   -   Remove MBR in linux FDISK (

nenyo 01-27-2006 02:05 PM

Remove MBR in linux FDISK
is there a way in linux fdisk or cfdisk or something else, to delete the mbr? in dos fdisk you can use /mbr and it will erase it supposedly.

haertig 01-27-2006 02:43 PM

Delete your MBR? Make sure you really want to do that. The DOS command "fdisk /mbr" will REPLACE THE BOOTCODE, it won't DELETE THE MBR. Two entirely different things, one being potentially disasterous. Be careful what you ask for.

pixellany 01-27-2006 03:43 PM

The only method I know of is dd---as in:
dd if=/dev/null of=/dev/XXX bs=446 count=1 where "XXX" is the id of your drive--eg hda, hdd, sda (note no partition id---just drive)

To wipe out the partition table also, change 446 to 512.

BUT--as the man said: Be really sure that this is what you want to do!!!!!:tisk: :tisk:

nenyo 01-27-2006 07:54 PM

im sorry i misspoke. i would like to change the boot code. not get rid of it entirely. the reason for this was so that i could install dos, set up a boot disk, and install linux. i goofed up the mbr while trying to do something and now i cant boot anything.

please go here for the full story.

All times are GMT -5. The time now is 01:14 PM.