LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-27-2006, 01:05 PM   #1
nenyo
Member
 
Registered: Jan 2005
Location: Alamogordo
Distribution: Gentoo 2005.0
Posts: 136

Rep: Reputation: 15
Question 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.
 
Old 01-27-2006, 01:43 PM   #2
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,274

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
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.
 
Old 01-27-2006, 02:43 PM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
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!!!!!
 
Old 01-27-2006, 06:54 PM   #4
nenyo
Member
 
Registered: Jan 2005
Location: Alamogordo
Distribution: Gentoo 2005.0
Posts: 136

Original Poster
Rep: Reputation: 15
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.
http://www.linuxquestions.org/questi...25#post2072025
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Fdisk /MBR Eugney Slackware 39 08-23-2011 09:30 AM
fdisk /mbr in Linux? wayneinmpls Linux - Newbie 6 12-20-2005 11:27 AM
Grub - fdisk /MBR lucho707 Linux - Software 1 11-30-2005 11:07 PM
fdisk /mbr rharvey@cox Linux - Software 2 02-16-2004 12:19 PM
why won't my mbr fdisk /mbr? jamessp007 Mandriva 13 01-03-2004 01:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration