Computing.Net > Forums > Disk Operating System > format the boot sector

Computing.Net: Over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to sign up now, it's free!

format the boot sector

Reply to Message Icon

Original Message
Name: Chris
Date: April 21, 1999 at 12:19:52 Pacific
Subject: format the boot sector
Comment:

What's the command used to format the master boot record? I thought it was format /mbr ? Can anyone help


Report Offensive Message For Removal


Response Number 1
Name: ergmiester
Date: April 21, 1999 at 13:44:59 Pacific
Reply: (edit)

Format does not efect the boot sector or use this switch. This excerpt is from the KB: Microsoft Windows 98


SUMMARY
The MS-DOS Fdisk utility usually updates the master boot record only if no master boot record exists. Repartitioning with Fdisk does not rewrite this information.

Fdisk has an undocumented parameter called /MBR that causes it to write the master boot record to the hard disk without altering the partition table information.

WARNING: Writing the master boot record to the hard disk in this manner can make certain hard disks partitioned with SpeedStor unusable. It can also cause problems for some dual-boot programs and disks with more than four partitions.

MORE INFORMATION


What is the MBR?
At the end of the ROM BIOS bootstrap routine, the BIOS reads and executes the first physical sector of the first floppy or hard disk drive on the system. This first sector of the hard disk is called the master boot record (or sometimes the partition table or master boot block). At the beginning of this sector of the hard disk is a small program. At the end of this sector is where the partition information, or partition table, is stored. This program uses the partition information to determine which partition is bootable (usually the first primary DOS partition) and attempts to boot from it.

This program is what is written to the disk by FDISK /MBR and is usually called the master boot record. During normal operation, Fdisk writes this program to the disk only if there is no master boot record.

Why is the MBR Changed During Setup?
During installation of Microsoft MS-DOS Upgrade, Setup replaces the master boot record on the hard disk with code to display a message similar to the following:


The MS-DOS 5.0 Setup was not completed.
Insert the UNINSTALL #1 diskette in drive A.
Press the ENTER key to continue.

This message should be erased and the master boot code rewritten before Setup is completed. If a problem occurs during Setup and you return to the previous version of MS-DOS, UNINSTAL should also remove this message. However, if Setup or UNINSTAL fails to remove this message, or if the master boot record becomes corrupted, a new master boot record can be written to the disk using the following command:

C:\>FDISK /MBR

WARNINGS
This option should NOT be used if any of the following conditions exist:

The disk was partitioned using the Storage Dimensions SpeedStor utility with its /Bootall option.
More than four partitions exist.
Certain dual-boot programs are in use.

The Storage Dimensions SpeedStor utility with the /BOOTALL option redefines the drive's physical parameters (cylinder, head, and sector). /BOOTALL stores information on how the drive has been changed in an area of the master boot record that MS-DOS does not use. The FDISK /MBR command erases that information, making the disk unusable.
Some older original equipment manufacturer (OEM) versions of MS-DOS and some third-party partitioning utilities can create more than four partitions. Additional partition information is commonly stored information on partitions in an area that FDISK /MBR overwrites.

Some dual-boot programs have a special MBR that asks you at startup which operating system you want to use. FDISK /MBR erases this program. Dual-boot systems that boot whichever partition is marked Active are not affected by FDISK /MBR.

For more information on partitioning, query on the following word in the Microsoft Knowledge Base:


partitioning

SpeedStor is manufactured by Storage Dimensions, a vendor independent of Microsoft; we make no warranty, implied or otherwise, regarding this product's performance or reliability.


REFERENCES
More information on partitioning, disk organization, and the boot sequence can also be found in Chapters 3 and 8 of the "DOS Programmer's Reference" by Terry Dettmann, published by the QUE Corporation; Chapters 2 and 10 of "Advanced MS-DOS Programming" by Ray Duncan, and article 3 of "The MS-DOS Encyclopedia," both published by Microsoft Press.

Additional query words: 6


Report Offensive Follow Up For Removal

Response Number 2
Name: Danny Jeronimo
Date: April 3, 2000 at 22:31:19 Pacific
Reply: (edit)

well here is a doosie....i had linux on my HD but i got rid of the partitions but it kept on booting up with lilo...i used Fdisk /mbr using my win98 startu disk and now my computer doen't recgonize my HD at all how can i fix it..


Report Offensive Follow Up For Removal







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home








Do you have your own blog?

Yes
No
I did before
I will soon


View Results

Poll Finishes In 3 Days.
Discuss in The Lounge
Poll History




Data Recovery Software