xref: /minix/minix/commands/fdisk/fdisk.8 (revision 0a6a1f1d)
FDISK 8
NAME
fdisk - partition a hard disk [IBM]
SYNOPSIS
fdisk [-hm] [-sn] [file]

\\\$1\ \\$2 ..

20 \\\$1\ # \\$2 ..

OPTIONS

5 -h # Number of disk heads is m

5 -s # Number of sectors per track is n

EXAMPLES

20 fdisk /dev/c0d0 # Examine disk partitions

20 fdisk -h9 /dev/c0d0 # Examine disk with 9 heads

DESCRIPTION

When fdisk starts up, it reads in the partition table and displays it. It then presents a menu to allow the user to modify partitions, store the partition table on a file, or load it from a file. Partitions can be marked as \s-1MINIX 3\s-1, DOS or other, as well as active or not. Using fdisk is self-explanatory. However, be aware that repartitioning a disk will cause information on it to be lost. Rebooting the system immediately is mandatory after changing partition sizes and parameters. \s-1MINIX 3\s-1, \s-2XENIX\s0, \s-2PC-IX\s0, and \s-2MS-DOS\s0 all have different partition numbering schemes. Thus when using multiple systems on the same disk, be careful.

Note that \s-1MINIX 3\s-1, unlike MS-DOS , cannot access the last sector in a partition with an odd number of sectors. The reason that odd partition sizes do not cause a problem with \s-2MS-DOS\s0 is that \s-2MS-DOS\s0 allocates disk space in units of 512-byte sectors, whereas \s-1MINIX 3\s-1 uses 1K blocks. Fdisk has a variety of other features that can be seen by typing h.

Fdisk normally knows the geometry of the device by asking the driver. You can use the -h and -s options to override the numbers found.

"SEE ALSO"
part (8).