Make your own free website on Tripod.com

BACK

fdisk

fdisk  

Creates and manages partitions for hard drives, floppy drives, and removable media drives.  Used to specify files system types. Use on unmounted file systems.

Syntax:

# fdisk "drive"

Example:

# fdisk /dev/hda  (This command runs fdisk on the first drive of the system )

IDE Drive Order Labeling
hda Primary IDE controller, master device 
hdb Primary IDE controller, slave device
hdc Secondary IDE controller, master device
hdd Secondary IDE controller, slave device
fd0 Primary floppy drive

Program commands:

d deletes a partition
l lists fdisk partition types
m menu of commands
n new partition
q quits without saving changes
t changes the file system type
u changes display/entry units
v verifies the partition type
w writes the partition type
p shows partition table
x advanced commands
b moves the beginning location of data in a partition
c changes the number of cylinders
d prints the raw data in the partition in the partition table
e lists extended partitions on disk
h changes the number of heads on a disk
r returns to the main menu
s changes the number of sectors on the disk

 

 

 

BACK