FDISK Command Line Options
FDISK [DRIVE [/PRI:SIZE] | [/EXT:SIZE] | [/LOG:SIZE]] | [/MBR] | [/Q] | [/STATUS]
Configures a hard disk for use with MS-DOS.
DRIVE Physical drive number.
/PRI:SIZE Creates a primary partition of the given size in megabytes and sets it as the active partition.
/EXT:SIZE Creates an extended partition of the given size in megabytes.
/LOG:SIZE Creates a logical drive in the extended partition of the given size in megabytes.
/MBR Resets the Master Boot Record. Used to remove viruses.
/Q Quit FDISK without rebooting. Used with input redirection.
/STATUS Displays partition information.
Example 1:
DELPART
FDISK /MBR
FDISK 1 /PRI:15
FDISK 1 /EXT:485
FDISK 1 /LOG:200
FDISK 1 /LOG:175
Example 2:
DELPART
FDISK /Q < FDISK.TXT
FDISK.TXT
1
1
Y
<ESC>
<ESC> can be entered in DOS EDIT using <Ctrl>P <ESC>.