Discussion Locked

PROBLEM WITH MBR

0 helpful
12 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have 4 primary partitions-C(WIN,FAT32),one extended and the other 2 are free space.(Once I had Linux on one of them).I want to format them under FAT32(I use Partition Magic)but whenever I try to do this i get an error message:"Unable to write to the boot sector".I get such messages with all kinds of programmes that write to the MBR and I also can't reinstall WIN.(Can't install LINUX too).
Thanks in advance.

12 replies

by komp

Just a wild guess...perhaps your hard drive was set in the wrong mode in BIOS? For example, you originally formatted your hard drive in LBA mode, but now it's set to NORMAL or LARGE mode, or vice versa? I've been in this situation before, and got exactly the same message when I tried to reformat. Or maybe the anti-virus option in BIOS is enabled and it's protecting your boot sector from being overwritten? Possibly your drive is too large for your BIOS to handle. Try changing hard drive related settings in BIOS and see if that helps. Of course, the worst possibility is that your drive may be physically damaged. Oh another possibility is that you may have some multiboot software loaded in the MBR and refusing to let go. In this case try the command FDISK /MBR at the DOS prompt. Good luck.

by blancobeis

inside of linux you can replace MBR with earlier saved version using the following command
/sbin/lilo -u
in DOS, NT, WIN95 use fdisk to create new MBR to boot the primary DOS partn., command should look like this
fdisk /mbr
to remove linux from the drive after trying to use the default DOS fdisk, you will experience "partitions exist but they don't exist" problem. The best way to remove non-DOS partns. is with your linux installation floppy by typing
"linux expert" sans quotes at the bootprompt
select install, not upgrade, & when in partitioning section choose fdisk, type "p" to print out your partition numbers and then remove the linux partns.with the "d"command.
when satisfied of the changes quit with a "w" which will save the changes to disk, if you've deleted too much type "q" to quit without changes. when partns. have been removed, reboot with cntrl+alt+del to end installation. good luck, referr to RED HAT guide chapter 15 Q&A for any addl. help, armando.

by dkpalmer

The most common causes of a locked MBR are: Bios-Level Antivirus protection enabled ( this prevents any writes to the MBR to protect against memory-resident viruses ); or a running antivirus protection software that has the MBR locked. I'd bet on the Bios Anti-virus, however.

by james a bailey

Quick answer might help. One command. From the command prompt type:

fdisk /mbr

This well rewrite your master boot record.

by mark

This is most definitely the BIOS. Look in the BIOS carefully for Boot Sector "Write Protect" or "Virus Protection". Once you tell the system to allow Boot Sector writing, you will be ok. Since you are using Partition Magic, you don't have to format.It will convert to FAT32 and move your partitions however you want. Be sure you are using something that reads FAT32 like WIN95B, WIN98, WINME, WIN2K etc.

This discussion is closed to new replies.