| The hard disks are named in subdirectories of /dev:
/dev/dsk block devices for mounting, mdir, tar, and dd.
/dev/rdsk raw character devices for format
The hard disks are always named starting with c#b#t#d# then either
an s# or p# making either of the following for raw devices:
/dev/rdsk/c#b#t#d#s#
/dev/rdsk/c#b#t#d#p#
You can remember this because it Can't Be That Difficult --> c_b_t_d.
Use the s# designation when you're referring to a slice and the p#
designation when you are referring to a partition.
You can use s0 to refer to the entire partition (when using prtvtoc).
You can use p0 to refer to the entire disk.
The # in s# is HEX ! Be sure to use hex when referring to
slices higher than 9, as in c0b0t0d0sc for the 12th slice
(a=10, b=11, c=12, d=13, e=14, f=15).
The c, b, t, and d stand for:
c# is the controller number (like c0 or c1 for each HBA or IDE controller)
b# is the bus number of the HBA. This is usually 0, as in b0.
t# is the scsi id. t# for IDE is 0=primary, 1=slave.
d# is the lun number (also usually 0 as in d0).
On a small system without raid and only one Adaptec scsi HBA, the
c, b, and d, don't change, and you use the different scsi id's (t#) to
refer to each different drive, as in:
/dev/rdsk/c0b0t0d0s0 /dev/rdsk/c0b0t12d0s0
/dev/rdsk/c0b0t1d0s0 /dev/rdsk/c0b0t13d0s0
/dev/rdsk/c0b0t3d0s0
See also the Sections preceding this question.
<mschalit@pacbell.net>
gerberb@zenez.com
|