Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ pname(1M) — A/UX 2.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

dp(1M)

mknod(1M)

getptabent(3)

ptab(4)

pname(1M)




pname(1M) pname(1M)
NAME pname - associate named partitions with device files SYNOPSIS /bin/pname [-a] [-c controller] [-d disk] [-s slice] [-t type] name /bin/pname [-p] /bin/pname -a[v] /bin/pname -u device-file [device-file...] DESCRIPTION pname enables the system to recognize the partition with name name. The partition, name, must already exist (for creating partitions see dp(1M) and the description of HD SC Setup in A/UX Local System Administration). pname maintains a table of partitions it has recognized in /etc/ptab, described in ptab(4). If invoked without an ar- gument, pname displays all the partitions it has recognized in terms of the device files in /dev/rdsk. When pname is invoked without an argument certain slices may not be reported as recognized, but can be honored neverthe- less. This is the case when the associated partitions are named Root or Root&Usr (both on slice 0), Swap (on slice 1), or Usr (on slice 2) and when they are referenced appropri- ately as one of the following device files: /dev/dsk/cnd0s0 /dev/dsk/cnd0s1 /dev/dsk/cnd0s2 When invoked to recognize a specific partition, pname writes to standard output the pathname of the device file that has been associated with the specified partition. FLAG OPTIONS The following flag options are interpreted by pname: -p Prints the list of recognized partitions in a format suitable for use in /etc/ptab. -a This option takes on two different meanings dependent upon the command usage. If pname is invoked with a partition name, this option will cause an entry (if one is not already present) for the partition to be added to /etc/ptab. If no partition name is specified, pname will attempt to recognize all the partitions described April, 1990 1



pname(1M) pname(1M)
in /etc/ptab. (In this case, name, type, controller, disk, and slice are taken from /etc/ptab.) Partitions are recognized in the order listed in /etc/ptab. -v Verbose: pname displays a message indicating that the partition is being recognized. -c This option is used to specify that this partition, name, resides on controller number controller. If this option isn't specified, pname will assume the controll- er number is zero. -d This option is used to specify that the partition, name, resides on disk number disk. If this option isn't specified, pname will assume the disk number is zero. -s This option is used to specify slice as the number by which the partition, name, will be recognized. If this option isn't specified, pname will choose an unused slice number. If the device corresponding to the slice number does not exist and the controller and disk numbers are valid, the device will be created in /dev/dsk and /dev/rdsk. -t If this option is specified, type will be used as the type of the partition, instead of the default, Apple_UNIX_SVR2. -u This option will cause pname to disassociate partitions with the specified devices. EXAMPLES pname -a recognize all partitions pname -c1 "PeterC's part" recognize named partition on con- troller 1 pname -p > /tmp/pstate save current partition state FILES /bin/pname /etc/ptab /dev/dsk/c[0-7]d[0-7]s* /dev/rdsk/c[0-7]d[0-7]s* SEE ALSO dp(1M), mknod(1M), getptabent(3), ptab(4). 2 April, 1990



pname(1M) pname(1M)
WARNINGS Some of the actions that may be performed by pname require read and write permission on certain directories and certain files that may not be readable or writable to all users. For example, when invoked to display a list of all recog- nized partitions, pname will silently ignore all partitions associated with devices that are not readable to the user that invoked pname. BUGS The current revision of the software will not support colons (:) in partition names or partition types. April, 1990 3

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026