How To Use The Fdisk and Format Tools
How To Use The Fdisk and Format Tools
How To Use The Fdisk and Format Tools
Before you install your operating system, you must first create a primary partition on the hard disk
(disk 1) on your computer, and then format a file system on that partition. The Fdisk tool is an MSDOS-based tool that you can use to prepare (partition) a hard disk. You can use the Fdisk tool to
create, change, delete, or display current partitions on the hard disk, and then each allocated space
on the hard disk (primary partition, extended partition, or logical drive) is assigned a drive letter.
Disk 1 may contain one extended partition, and a second hard disk may contain a primary or
extended partition. An extended partition may contain one or more logical MS-DOS drives.
After you use the Fdisk tool to partition your hard disk, use the Format tool to format those
partitions with a file system. The file system File Allocation Table (FAT) allows the hard disk to
accept, store, and retrieve data. Windows 95 OEM Service Release 2 (OSR2), Windows 98, Windows
98 Second Edition, Windows Millennium Edition (Me), and Windows 2000 support the FAT16 and
FAT32 file systems. When you run the Fdisk tool on a hard disk that is larger than 512 megabytes
(MB), you are prompted to choose one of the following file systems:
FAT16: This file system has a maximum of 2 gigabytes (GB) for each allocated space or
drive letter. For example, if you use the FAT16 file system and have a 6-GB hard disk, you
can have three drive letters (C, D, and E), each with 2 GB of allocated space.For additional
information about the FAT16 file system, click the article number below to view the article
in the Microsoft Knowledge Base:
118335 Maximum Partition Size Using FAT16 File System
FAT32: This file system supports drives that are up to 2 terabytes in size and stores files on
smaller sections of the hard disk than the FAT16 file system does. This results in more free
space on the hard disk. The FAT32 file system does not support drives that are smaller than
512 MB.For additional information about the FAT32 file system, click the article number
below to view the article in the Microsoft Knowledge Base:
154997 Description of the FAT32 File System
When you run the fdisk and format commands, the Master Boot Record (MBR) and file allocation
tables are created. The MBR and file allocation tables store the necessary disk geometry that allows
hard disk to accept, store, and retrieve data. For additional information about MS-DOS partitioning
and a hard disk geometry overview, click the article number below to view the article in the
Microsoft Knowledge Base:
69912 MS-DOS Partitioning Summary
Important Considerations Before You Use the Fdisk and Format Tools
Consider the following questions before you use the Fdisk and Format tools:
Is the hard disk new? If not, view the second question.
o Is this hard disk the only hard disk on your computer (master) or is this hard disk a
Have you checked your basic input/output system (BIOS) to verify that it supports
the hard disk or the second hard disk? If not, check the documentation that came
with your motherboard, or contact the manufacturer. Typically, the BIOS has an
auto detect hard disk setting that configures the drive, but you should verify this
before you continue.
What type of file system do you want to use? You can use either the FAT16 or the
FAT32 file systems. If you are not sure which file system that you want to use, view
the following articles in the Microsoft Knowledge Base:
118335 Maximum Partition Size Using FAT16 File System
154997 Description of the FAT32 File System
Does the hard disk have a drive overlay or a disk management program? If your
computer uses drive overlay software to enable large hard disk support, do not use
the Fdisk tool until you have checked with the software manufacturer. If you are
not sure, view the following Microsoft Knowledge Base article or contact the
software manufacturer before you proceed:
186057 How to Tell If Drive Overlay Program Is Installed in Windows
Do you have the floppy disks or the CD-ROMs that are necessary to reinstall your
software? Make sure that you have the software so that you can reinstall your
programs after you partition and format your drive. If you purchased an upgrade
for a program, make sure that you have the full version of the original program.
Many upgrades for programs require a compliance check before you can install the
upgraded product. If you cannot find the original floppy disks or CD-ROMs, contact
the software manufacturer before you proceed.
Do you have updated device backed up on a device other than the drive that you
are about to format and partition? If you have installed an updated device driver
for your peripheral devices (for example, modems, printers, and so on), make sure
that you back up the new driver on a device other than the drive that you are
about to format and partition so that you can reinstall it after you install your
operating system.
Do you want to combine multiple extended partitions in one extended partition? If so, view
the "How to Repartition and Format the Extended Partition and Logical Drives on a Hard
Disk" section in this article.
Do you have a Startup disk? Windows 95, Windows 98, Windows 98 Second Edition, and
Windows Me prompt you to create a Startup disk during Setup. If you do not have a Startup
disk:
a. Insert a blank floppy disk in the floppy disk drive (drive A).
b. Click Start, point to Settings, click Control Panel, and then doubleclickAdd/Remove Programs.
it in the floppy disk drive, and then restart your computer. If you are using a
Windows 98-based computer, the Startup menu is displayed. If you are using a
Windows 95-based computer, a command prompt is displayed.
Do you need Real-mode CD-ROM support? Some CD-ROM drives require Real-mode device
drivers. If you are planning to use Windows 98 on your computer, the Startup disk contains
generic, Real-mode ATAPI CD-ROM and Small Computer System Interface (SCSI) drivers
that can enable CD-ROM drives after you boot from the Windows 98 Startup disk. Note that
these CD-ROM drivers may not work with all CD-ROM drives; they may work as a
replacement if the Real-mode CD-ROM drivers that are included with your CD-ROM drive
are not available.
NOTE: If you insert your Windows 98 Startup disk, restart your computer, you may not be
able to change to the drive letter of your CD-ROM drive (usually one drive letter ahead of
where the drive letter typically resides because there is a random access memory [RAM]
drive created by the Startup disk), because these drivers do not work with your CD-ROM
drive. View the documentation that is included with your hardware, or contact your
hardware manufacturer to obtain the CD-ROM device drivers.
a.
b.
c.
When the Microsoft Windows 98 Startup menu is displayed, select the Start
computer without CD-ROM support menu option, and then press ENTER.
At a command prompt, type fdisk, and then press ENTER.
View step 2.
a.
2.
3.
4.
5.
6.
7.
After you press ENTER, the following Fdisk Options menu is displayed:
1.
2.
3.
4.
5.
Note that option 5 is available only if you have two physical hard disks in the computer.
8.
Press 1 to select the Create DOS partition or Logical DOS Drive menu option, and then
press ENTER.
9. Press 1 to select the Create Primary DOS Partition menu option, and then press ENTER.
10. After you press ENTER, you receive the following message:
Do you wish to use the maximum available size for primary DOS partition?
After you receive this message, use one of the following methods, depending on the file
system that you selected.
a.
If you press Y for the FAT32 file system (in step 2) and you want all of the space on the
hard disk to be assigned to drive C, press Y, and then press ENTER.
b. Press ESC, and then press ESC to quit the Fdisk tool and return to a command
prompt.
c. View step 7.
a.
If you want the first 2 GB on the hard disk to be assigned to drive C, press Y, and
then press ENTER.
b. Press ESC to return to the Options menu, and then view step d in the following "To
customize the partition size" section.
To customize the partition size:
a.
If you want to customize the size of the partitions (drive letters) on the hard disk,
press N, and then press ENTER.
b. A dialog box is displayed in which you can type the size that you want for the
primary partition in MB or percent of disk space. Note that for computers that are
running either Windows 98 or Windows Me, Microsoft recommends that you make
the primary partition at least 500 MB in size. Type the size of the partition that you
want to create, and then press ENTER.
c. Press ESC to return to the Options menu.
d. To assign drive letters to the additional space on the hard disk, press 1, and then
press ENTER.
e. Press 2 to select the Create Extended DOS Partition menu option, and then
press ENTER.
f. You receive a dialog box that is displays the maximum space that is available for
the extended partition. You can adjust the size of the partition or use the default
size. Note that the default maximum space is recommended, but you can divide the
space between multiple drive letters. Type the amount of space that you want,
press ENTER, and then press ESC.
g. The Create Logical DOS Drive(s) in the Extended DOS Partition menu is
displayed. This is the menu that you can use to assign the remaining hard disk
space to the additional drive letters. Type the amount of space that you want to
assign to the next drive letter in the Enter logical drive size in Mbytes or
percent of disk space (%) box, and then press ENTER.
h. A table that lists the drive letter that you created and the amount of space on that
drive is displayed. If there is free space on the hard disk, it is displayed near the
bottom of the table. Repeat steps e through g until you receive the following
message:
All available space in the Extended DOS Partition is assigned to local drives.
j.
k.
i.
After you receive this message, press ESC to return to the Options menu.
To activate the partition from which you plan to boot (usually drive C), press 2 to
select the Set active partition menu option, and then press ENTER.
When you receive the following message, press 1, and then press ENTER:
Enter the number of the partition you want to make active.
l.
Press ESC, and then press ESC to quit the Fdisk tool and return to a
command prompt, and then view the following "How to Format a Hard Disk" section
in this article.
2.
NOTE: If you are using a Windows 95 Startup disk, a command prompt is displayed and
you can skip to step 2. If you are using a Windows 98, Windows 98 Second Edition, or
Windows Me Startup disk, select the Start computer without CD-ROM support menu
option when the Windows 98 Startup menu is displayed.
When a command prompt is displayed, type format c: /s, and then press ENTER. This
command transfers the system files and should only be used when you format drive C (or
your "active" drive). For all other partitions, type format drive: (where drive is the letter of
the partition that you want to format).
NOTE: If you receive a "Bad command" or "Bad file name" error message, you may need to
extract the Format.com tool to your boot disk. To do this, type the following command at a
command prompt, and then press ENTER:
extract ebd.cab format.com
After the Format.com tool is extracted to your boot disk, type format c: /s t a command
prompt to format your active partition, or type format drive: if you want to format a
partition that is not your active partition.
3.
When you successfully run the Format.com tool, you receive the following message:
WARNING, ALL DATA ON NON-REMOVABLE DISK DRIVE C: WILL BE LOST!
Proceed with Format?
4.
5.
For information about how to repartition the extended partition and logical drives, view the "How to
Repartition and Format the Extended Partition and Logical Drives of a Hard Disk" section in this
article.
9.
Press 5, and then press ENTER. When you do this, the selection changes from the physical
disk 1 (master) to the physical disk 2 (slave).
Press 1 to select the Create DOS partition or Logical DOS Drive menu option, press
ENTER, press 2 to select the Create Extended DOS Partition menu option, and then
press ENTER. When you make your slave drive an extended MS-DOS partition, your drive
letters does not change. For example, if the first drive contains partition C and partition D,
your slave drive becomes D unless you set the slave drive as an extended partition. If you
skip this step and just create another primary MS-DOS partition for the slave drive, the new
drive becomes drive D and what used to be drive D, changes to drive E.
You can partition the slave drive to make other logical drives just as you did with the
original master drive. If your computer cannot detect the new drive, you may need to add
the following line to your Config.sys file, where drive is a letter that is greater than the last
drive letter on the computer (including the CD-ROM drive):
lastdrive=drive
10. After you finish using the Fdisk tool, format the new partitions so that you can use them.
After you press ESC to quit the Fdisk tool, restart your computer to start Windows.
b.
c.
d.
e.
In the Drives box, click the drive that you want to convert to the FAT32 file system.
Click Next, and then click OK.
Click Next, click Next, and then click Next again.
When the conversion procedure is finished, click Finish.
NOTE: Do not use the /s switch that you used when you set up drive C. All you need to do is to
format the drive or drives so that you can use them (for example, if you created two new drive
letters, you need to format both drives).
For information about how to repartition the extended partition and logical drives, view the following
"How to Repartition and Format the Extended Partition and Logical Drives of a Hard Disk" section in
this article.
How to Repartition and Format the Extended Partition and Logical Drives of
a Hard Disk
Use the steps in this section to resize or combine your extended partition and logical drives. Make
sure that you have a reliable backup of any important data that you have on your extended partition
and logical drives before you proceed. If you want to combine your entire hard disk in one partition,
use the steps in the "How to Partition and Format a Master Hard Disk" section in this article.
a.
b.
c.
When the Microsoft Windows 98 Startup menu is displayed, select the Start
computer without CD-ROM support menu option, and then press ENTER.
At a command prompt, type fdisk, and then press ENTER.
Go to step 2.
a.
2.
Your computer has a disk larger than 512 MB. This version of Windows includes improved
support for large disks, resulting in more efficient use of disk space on large drives, and
allowing disks over 2 GB to be formatted as a single drive.
IMPORTANT: If you enable large disk support and create any new drives on this disk, you
will not be able to access the new drive(s) using other operating systems, including some
versions of Windows 95 and Windows NT, as well as earlier versions of Windows and MSDOS. In addition, disk utilities that were not designated explicitly for the FAT32 file system
will not be able to work with this disk. If you need to access this disk with other operating
systems or older disk utilities, do not enable large drive support.
Do you wish to enable large disk support (Y/N)?
If you want to use the FAT32 file system, press Y and then press ENTER. If you want to use
the FAT16 file system, press N, and then press ENTER.For additional information about the
FAT32 and FAT16 file systems, click the article numbers below to view the articles in the
Microsoft Knowledge Base:
118335 Maximum Partition Size Using FAT16 File System
154997 Description of the FAT32 File System
3.
4.
5.
6.
7.
8.
9.
After you press ENTER, the following Fdisk Options menu is displayed:
10.
11.
12.
13.
Delete
Delete
Delete
Delete
Volume Label
Mbytes
System
Usage
D:
FAT16
100%
E:
FAT16
100%
F:
FAT16
100%
G:
FAT16
100%
H:
FAT32
17%
I:
UNKNOWN 13%
16.
Total Extended DOS Partition size is XXX Mbytes (1 MByte = 1048576 bytes).
21. If you want to remove the extended MS-DOS partition, press ESC to return to the
FdiskOptions menu. Press 3 to select the Delete DOS Partition or Logical DOS
Drivemenu option, press ENTER, press 2 to select the Delete Extended DOS
Partitionmenu option, and then press ENTER.
22. The screen shows the current fixed disk drive and information about it. The extended
partition is listed in the Type column. For example:
23. Partition Status Type Volume Label
Mbytes System Usage
24. C:
1A
PRI DOS
(your label) 1200 FAT16 50%
25. 2
EXT DOS
(your label) 1200 UNKNOWN 50%
26.
NOTE: This is an optional feature that you can use to type a name for the hard disk. You
can either type an 11-character name for the drive, or leave it blank and press ENTER.