Name
fdisk
Synopsis
fdisk [-t | -d | -e | -u | -Sinteger
| -cinteger
-hinteger
-sinteger
] [device
] fdisk -i [-a { boothfs | bootufs | hfs | ufs | dos | raid } | -ffilename
| -r] [-y]device
Description
Provides control over DOS partition tables on disk devices in Darwin x86 systems. If invoked without arguments, fdisk prints a usage statement to standard error. If invoked with only a device name as an argument, it displays the device’s partition table.
Options
- -a
Partitions the disk according to the specified automatic style. The boothfs and bootufs styles each include an 8 MB boot partition, with the remainder formatted as the specified type. The hfs, ufs, dos, and raid styles each create a single partition of the specified type, which spans the entire disk. The default is boothfs.
- -c
Forces an assumption of a disk geometry with the specified number of cylinders.
- -d
Displays the disk’s partition table, in a format usable with -r.
- -e
Enters an interactive edit mode. Commands available in this mode are listed in the “Commands” section.
- -f
Specifies a template file to use in creating the partition table.
- -h
Forces an assumption of a disk geometry with the specified number of heads.
- -i
Initializes the Master Boot Record (MBR) on the disk, which contains the partition table.
- -r
Reads in a new set of partition entries from standard input.
- -s
Forces an assumption of a disk geometry with the specified number of sectors per track.
- -S
Specifies the disk’s size, in blocks.
- -t
Tests whether ...
Get Mac OS X Tiger in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.