O'Reilly logo

Mac OS X Tiger in a Nutshell by Jason McIntosh, Chuck Toporek, Chris Stone, Andy Lester

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

fdisk

Synopsis

fdisk [-t | -d | -e | -u | -S integer | -c integer -h integer -s integer] [device]
fdisk -i [-a { boothfs | bootufs | hfs | ufs | dos | raid } | -f filename | -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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required