ptab(4) ptab(4)NAME ptab - partition table file SYNOPSIS /etc/ptab DESCRIPTION The ptab file contains information regarding the known par- titions present on the local machine. It is read and/or modified by the pname(1M) utility. The system administrator can modify it with a text editor, though this is not recom- mended. For each partition a single line should be present with the following information: name Name of the partition - must not be greater than 32 characters long. type Type of the partition - must not be greater than 32 characters long. If this field is left empty, the default type Apple_UNIX_SVR2 will be assumed. controller This is the controller number of the disk contain- ing this partition. disk This is the disk number (for the specified con- troller) of the disk containing this partition. slice This is the slice (partition) number of the parti- tion. comment All additional information at the end of the line is treated as a comment. The partition table file is an ASCII file. Fields within an entry are separated from eachother by colons. Each entry is separated from the next by a newline. Entries are separated by newlines. The ptab file can also have a line beginning with the sharp character (#), which means that this line should be treated as a comment and ignored. EXAMPLES Here is a sample /etc/ptab file: #name:type:controller:disk:slice[:comment] #root::0:0:0:assigned by default #swap::0:0:1:assigned by default src::0:0:3 users::1:0:0:on extra disk Macintosh:Apple_HFS:0:0:13:Mac partition April, 1990 1
ptab(4) ptab(4)FILES /etc/ptab SEE ALSO dp(1M), pname(1M), getptabent(3). WARNINGS Appropriate precautions must be taken to lock the /etc/ptab file against simultaneous modifications. BUGS The current revision of the software will not support colons (:) in partition names or partition types. 2 April, 1990