pname(1M) pname(1M)NAME pname - associates named partitions with device files SYNOPSIS pname [-a] [-c controller] [-d disk] [-s slice] [-t type] name pname [-p] pname -a [-v] pname -u device-file... ARGUMENTS -a Creates an entry in /etc/ptab or recognizes the entries in that table, depending on how you use the option. If you use the name argument to specify a partition, this option causes the system to add an entry (if one is not already present) for the partition to /etc/ptab. If you don't specify a partition name, pname attempts to recognize all the partitions described in /etc/ptab. (In such a case, it obtains the values of name, type, controller, disk, and slice from /etc/ptab.) Partitions are recognized in the order listed in /etc/ptab. -c controller Specifies that the partition name you are supplying (name) resides on the disk with controller number (SCSI ID) indicated by controller. Without this option, pname assumes that the controller number is 0. For systems with multiple SCSI buses, you can specify a three-digit controller number, such as 305 to signify the disk with SCSI ID 5 connected on SCSI bus 3. -d disk Specifies that the partition name you are supplying (name) resides on the disk indicated by disk. Without this option, pname assumes that the disk number is 0. -p Displays the list of recognized partitions in a format suitable for use in /etc/ptab. -s slice Specifies that the partition name you are supplying (name) should be recognized on the slice indicated by slice. Without this option, pname chooses an unused slice number. If the device corresponding to the slice number does not exist, and the controller and disk numbers are valid, the system creates the device in /dev/dsk and /dev/rdsk. -t type March 1993 1
pname(1M) pname(1M)Specifies that the partition name you are supplying (name) is the type of partition indicated by type, instead of the default, Apple_UNIX_SVR2. -u Causes pname to disassociate partitions with the specified devices. -v Displays verbose commentary as each partition is recognized; thereafter each partition is identifiable through the disk device file (slice number) mentioned. DESCRIPTION pname performs the work needed to to recognize the partition indicated by name through a particular disk device file. Partitions are normally created with attributes that the system automatically maps to slice 0, 1, or 2 (see gd(7) for more details). The pname command can be used when a partition is created with attributes other than the usual ones, such as may occur when dp is used to partition a disk instead of Apple HD SC Setup. Partitions and partition attributes are created using a disk-partitioning utility such as HD SC Setup or dp. (For information about creating partitions, see dp(1M), or see the chapter about preparing a hard disk in the administration manual for your A/UX system.) The pname command maintains a table of recognized partitions in /etc/ptab (described in ptab(4)). If you run pname without an argument, the system displays all the partitions it recognizes in terms of the device files in /dev/rdsk. By running pname without an argument, you can display how partitions are associated with slices (and device files). Those that are listed are considered ``recognized.'' The partitions subject to automatic recognition are as follows: Name Slice_______________Root 0Root&Usr 0Swap 1Usr 2Accordingly, these partitions can normally be referenced asone of these device files (n is the SCSI controller ID):/dev/dsk/cnd0s0/dev/dsk/cnd0s1/dev/dsk/cnd0s22 March 1993
pname(1M) pname(1M)When you run pname to recognize a specific partition, the system writes to standard output the pathname of the device file that is associated with the specified partition. EXAMPLES This example causes the system to recognize all partitions: pname -a Using this command causes the system to recognize the partition ``PeterC's part'' on controller 1: pname -c1 "PeterC's part" This example shows you a way to save the current partition state: pname -p > /tmp/pstate LIMITATIONS Some pname operations require read and write permission on certain directories and files that may not be readable or writable to all users. For example, when you use pname to display a list of all recognized partitions, the system silently ignores all partitions associated with devices that are not readable to you. The current version of A/UX does not support colons (:) in partition names or partition types. FILES /bin/pname Executable file /etc/ptab File containing a table of recognized partitions /dev/dsk/c*d0s* Block disk device files /dev/rdsk/c*d0s* Raw or character disk device files SEE ALSO dp(1M), mknod(1M) getptabent(3), ptab(4) in A/UX Programmer's Reference March 1993 3