Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Is there a way to clear the mbr in linux rh 8? I need to clear it so i can do a fresh install of linux and windows. Thanks I really need this help soon too.
just do it with a dos boot disk "fdisk /mbr" about 93 times. i don't really see why you need to clear is necessarily though for a new linux install. always install windows first though.
well not really, as a "clear" MBR in your definition would (well.. i'm assuming) mean a microsoft MBR. A genuinely clear MBR is useless. you should be able to replace the backup that lilo might have kept (normally /boot/boot.0300 or similar afaik. see the lilo manpage for uninstallation information
You want to erase you MBR to reinstall windoze, is that right?
Put your Windoze cd in and perform the installation. It will clean the old MBR and replace it with a new one.
If you want to keep Linux (or don't want to reinstall Windoze), I highly suggest you to correctly configurate your actual boot loader (grub?) to be able to boot Win or Nux trought it.
Also, if you have windoze NT (Nt4, 2000, Xp) you can do a "repair" to fix the mbr. Put your cd in, boot, choose repair, get a recovery console, and type : fixmbr (or mbrfix? don't remember, use "help"). This will crush your actual nux boot loader, of course.
Well, I kinda agree that there are many ways and few reasons to do this, but if you are really really sure you want to do that, first backup the MBR to a floppy (not the harddisk! ! ! )
That clears the MBR except for the last 64+2 bytes. That should leave the partition table alone. If you overwrite that, you won't have any partitions left on the disk (that's why you want a backup)
(the backup is dd if=/mnt/floppy/mbr.dat of=/dev/hda )
If you are doing a clean install, you don't need to "clear" anything out of the MBR. Both Windoze and Linux will set up what is needed, or wanted, in the MBR.
If you clean install Windoze, it will layout default code in the MBR to find its boot sector. If you then come behind that with Linux, it will (when asked) put it's boot loader code on the MBR. Either way, it's O.K., you end up replacing boot code on the MBR.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.