Problem
What device node name goes with which hard drive on my machine,
with which operating system? What are some examples to illustrate
correct name usage? Solution
See the following illustrations: /| 1st hard drive 2nd hard drive 3rd hard drive
/ | ----- ----- ----
/---------( )-------( )---------( )
/ ( id=0 ) ( id=6 ) ( id=4 )
/-----------( )-------( )---------( )
/ | ----- ----- ----
/ |
/ / |---> hd00 hd10 hd20
/ / |-> dsk/0s0 dsk/1s0 dsk/2s0 <-----------|
/ / | c0b0t0d0s0 c0b0t6d0s0 c0b0t4d0s0<---------|
/ / | |
| / |---Disk names for SCO's SVR3 based operating systems |
| / |
| / |
| / Disk names for SCO's SVR4 based operating systems-|
| /Examining the partition table for the first hard drive on SCO's SVR3 based operating systems:
# fdisk /dev/rhd00Current Hard Disk Drive: /dev/rhd00 +-------------+----------+-----------+---------+---------+---------+
| Partition | Status | Type | Start | End | Size |
+-------------+----------+-----------+---------+---------+---------+
| 1 | Inactive | DOS | 1 | 15800 | 15800 |<-------
| 2 | Active | UNIX | 15801 | 26319 | 10519 |<-----||
| 3 | Inactive | UNIX | 26320 | 49999 | 23679 |<---| ||
| 4 | Inactive | DOS | 50000 | 70000 | 20000 |<-| | ||
+-------------+----------+-----------+---------+---------+---------+ | | ||
| | ||
Total disk size: 70017 tracks (17 reserved for masterboot and diagnostics)| | ||
| | ||
/dev/dsk/0s1 & /dev/hd0d & /dev/dsk/0sd ---------------|
/dev/dsk/0s2 -----------------------------------------|
/dev/dsk/0s3 ---------------------------------------|
/dev/dsk/0s4 -------------------------------------|Examining the file system layout on SCO's SVR3 based operating systems for the first hard drive:
#divvy
+-------------------+------------+--------+---+-------------+------------+
| Name | Type | New FS | # | First Block | Last Block |
+-------------------+------------+--------+---+-------------+------------+
| boot | EAFS | no | 0 | 0| 11999|
| swap | NON FS | no | 1 | 12000| 75999|
| root | HTFS | no | 2 | 76000| 417216|
| u | HTFS | no | 3 | 417217| 497216|
| | NOT USED | no | 4 | -| -|
| | NOT USED | no | 5 | -| -|
| recover | NON FS | no | 6 | 497217| 497226|
| hd0a | WHOLE DISK | no | 7 | 0| 497699|<--|
+-------------------+------------+--------+---+-------------+------------+ |
497227 1K blocks for divisions, 472 1K blocks reserved for the system |
|
/dev/dsk/0s0-------|/dev/hd0a is the active partition on the hard drive
Examining the partition table for the first hard drive on SCO's SVR4 based operating systems:
# fdisk /dev/rdsk/c0b0t0d0s0Total disk size is 1024 cylinders (504.0 MB) Cylinders Approx
Partition Status Type Start End Length % MB
========= ====== =========== ===== === ====== === ======
1 DOS 0 50 51 5 25.1
2 Active UNIX System 51 1023 973 95 478.9Examining the file system layout on SCO's SVR4 based operating systems for the first hard drive:
# prtvtoc -f disktab /dev/rdsk/c0b0t0d0s0
# cat disktab
#SLICE TAG FLAGS START SIZE
0 0x5 0x201 51408 980784 /dev/rdsk/c0b0t0d0s0 (whole disk)
1 0x2 0x200 152208 860832 /dev/rdsk/c0b0t0d0s1 (root)
2 0x3 0x201 73584 78624 /dev/rdsk/c0b0t0d0s2 (swap)
3 0x0 0x0 0 0 /dev/rdsk/c0b0t0d0s3
4 0x0 0x0 0 0 /dev/rdsk/c0b0t0d0s4
5 0x0 0x0 0 0 /dev/rdsk/c0b0t0d0s5
6 0x0 0x0 0 0 /dev/rdsk/c0b0t0d0s6
7 0x1 0x201 51408 34 /dev/rdsk/c0b0t0d0s7 (boot)
8 0xd 0x201 51442 974 /dev/rdsk/c0b0t0d0s8 (badtrack tab)
9 0x0 0x0 0 0 /dev/rdsk/c0b0t0d0s9
10 0x9 0x200 52416 21168 /dev/rdsk/c0b0t0d0sa (stand)
11 0x0 0x0 0 0 /dev/rdsk/c0b0t0d0sb
12 0x0 0x0 0 0 /dev/rdsk/c0b0t0d0sc
13 0x0 0x0 0 0 /dev/rdsk/c0b0t0d0sd
14 0x0 0x0 0 0 /dev/rdsk/c0b0t0d0se
15 0xf 0x201 1013040 3024 /dev/rdsk/c0b0t0d0sf (vxfs private)^ size in 1K blocks See also
TA105232, "What does a device name like '/dev/dsk/c0b0t0d0s0' mean under SCO UnixWare?".
TA105246, "Examples of disk naming conventions used by SCO operating systems."