Manual Pages for UNIX Darwin command on man pdisk
MyWebUniversity

Manual Pages for UNIX Darwin command on man pdisk

PDISK(8) BSD System Manager's Manual PDISK(8)

NAME

ppddiisskk - Apple partition table editor

SYNOPSIS

ppddiisskk [-aaccddffhhiillLLrrvv] [--aabbbbrr] [--ccoommppuutteessiizzee] [--ddeebbuugg] [--ffnnaammee]

[--hheellpp] [--iinntteerraaccttiivvee] [--lliisstt] [--llooggiiccaall] [--rreeaaddoonnllyy]

[--vveerrssiioonn] [device ...]

DESCRIPTION

ppddiisskk is a menu driven program which partitions disks using the standard Apple disk partitioning scheme described in "Inside Macintosh: Devices". It does not support the Intel/DOS partitioning scheme supported by fdisk(8). Supported options are:

-aa

--aabbbbrr Abbreviate the partition types shown in the partition

list.

-cc

--ccoommppuutteessiizzee Causes ppddiisskk to always ignore the device size listed in

the partition table and compute the device size by other means.

-dd

--ddeebbuugg Turns on debugging. Doesn't add that much output, but

does add a new command `x' to the editing commands that

accesses an eclectic bunch of undocumented functional-

ity.

-ff

--ffnnaammee Show HFS volume names instead of partition name when

available.

-hh

--hheellpp Prints a short help message.

-ii

--iinntteerraaccttiivvee Causes ppddiisskk to go into an interactive mode similar to

the MacOS version of the program.

-ll

--lliisstt If no device argument is given, ppddiisskk tries to list

partition tables for all available drives. Otherwise, ppddiisskk lists the partition tables for the specified devices.

-LL

--llooggiiccaall Show partition limits in logical blocks. Default is

physical blocks.

-rr

--rreeaaddoonnllyy Prevents ppddiisskk from writing to the device.

-vv

--vveerrssiioonn Prints the version number of ppddiisskk.

EEddiittiinngg PPaarrttiittiioonn TTaabblleess An argument which is simply the name of a device indicates that ppddiisskk should edit the partition table of that device. The current top level editing commands are: C (create with type also specified) c create new partition d delete a partition h command help i initialize partition map n (re)name a partition P (print ordered by base address) p print the partition table q quit editing (don't save changes) r reorder partition entry in map s change size of partition map t change the type of an existing partition w write the partition table Commands which take arguments prompt for each argument in turn. You can also type any number of the arguments separated by spaces and those

prompts will be skipped. The only exception to typeahead are the confir-

mation prompts on the ii and ww commands, since if we expect you to confirm

the decision, we shouldn't undermine that by allowing you to be precipi-

tate about it. Partitions are always specified by their number, which is the index of the partition entry in the partition map. Most of the commands will change the index numbers of all partitions after the affected partition. You are advised to print the table as frequently as necessary. The cc (create new partition) command is the only one with complicated arguments. The first argument is the base address (in blocks) of the partition. Besides a raw number, you can also specify a partition number followed by the letter `p' to indicate that the first block of the new partition should be the same as the first block of that existing free space partition. The second argument is the length of the partition in blocks. This can be a raw number or can be a partition number followed by the letter `p' to use the size of that partition or can be a number followed by `k', `m', or `g' to indicate the size in kilobytes, megabytes, or gigabytes respectively. (These are powers of 1024, of

course, not powers of 1000.) The third argument is the name of the par-

tition. This can be a single word without quotes, or a string surrounded by single or double quotes.

The CC command is similar to the cc command, with the addition of a parti-

tion type argument after the other arguments. The ii (initalize) command prompts for the size of the device. The nn (name) command allows the name of a partition to be changed. The rr (reorder) command allows the index number of partitions to be changed. The index numbers are constrained to be a contiguous sequence. The tt (change partition type) command allows the type of a partition to be changed. The ww (write) command writes the partition map out.

SEE ALSO

fdisk(8), newfs(8) HISTORY The ppddiisskk utility was originally developed for MkLinux. AUTHORS Eryk Vershen

BUGS

Some people believe there should really be just one disk partitioning utility. Filesystem volume names are out of place in a partition utility. This utility supports HFS volume names, but not volume names of any other filesystem types.

The --llooggiiccaall option has not been heavily tested.

BSD April 24, 2003 BSD




Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 MyWebUniversity.com ™