HP Visualize J210XC IRIX to HP-UX Migration Guide - Page 19

Device File Naming Conventions

Page 19 highlights

Devices /dev/rac /dev/dsk /dev/rdsk /dev/vg nn /dev/vg nn/lvol n /dev/vg nn/rlvol n /dev/ct /dev/rct /dev/mt /dev/rmt /dev/ptym /dev/pty /dev Character device files for magneto-optical drives Block device files for disk sections and LVM disks Character device files for disk sections and LVM disks Directory containing device files for logical volumes in a volume group Block device files for logical volumes Character device files for logical volumes Block device files for cartridge tape drives Character device files for cartridge tape drives Block device files for 1/2-inch reel and DDS tape Character device files for 1/2-inch reel and DDS tape Master pseudo terminal device files Slave pseudo terminal device files All other device files, including those for terminals, modems, and printers Device File Naming Conventions Disks Within the /dev/dsk and /dev/rdsk directories, the following naming convention applies: /dev/[r]dsk/c Ct Td D[s S] where, dsk denotes the directory containing the block device files for disks. r denotes the directory containing the character (raw) device files for disks. C is the controller, referencing the controller on the system to which the disk drive is connected. This number will be the same for all disks connected to that controller. T is the target number. On a SCSI bus, for example, each disk has its unique target number. D is the hardware device unit number. This is only important for disk/tape products that have two or more devices with a shared controller. For products not on a shared controller, the device unit number will always be 0. For products on shared controller the numbers reference the internal number of the device units. S is the section number of the disk. By default, the insf command will not create device files for all sections of a disk. If you don't want to use the logical volume manager you must manually create the device files for the different disk sections with mksf. Examples /dev/dsk/c0t6d0 Block special file for disk 6 on disk controller 0 14

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125

Devices
14
/dev/rac
Character device files for magneto-optical drives
/dev/dsk
Block device files for disk sections and LVM disks
/dev/rdsk
Character device files for disk sections and LVM disks
/dev/vg nn
Directory containing device files for logical volumes in a volume group
/dev/vg nn/lvol n
Block device files for logical volumes
/dev/vg nn/rlvol n
Character device files for logical volumes
/dev/ct
Block device files for cartridge tape drives
/dev/rct
Character device files for cartridge tape drives
/dev/mt
Block device files for 1/2-inch reel and DDS tape
/dev/rmt
Character device files for 1/2-inch reel and DDS tape
/dev/ptym
Master pseudo terminal device files
/dev/pty
Slave pseudo terminal device files
/dev
All other device files, including those for terminals, modems, and printers
Device File Naming Conventions
Disks
Within the
/dev/dsk
and
/dev/rdsk
directories, the following naming convention applies:
/dev/[r]dsk/c Ct Td D[s S]
where,
dsk
denotes the directory containing the block device files for disks.
r
denotes the directory containing the character (raw) device files for disks.
C
is the controller, referencing the controller on the system to which the disk drive is connected.
This number will be the same for all disks connected to that controller.
T
is the target number. On a SCSI bus, for example, each disk has its unique target number.
D
is the hardware device unit number. This is only important for disk/tape products that have two or
more devices with a shared controller. For products not on a shared controller, the device unit
number will always be
0
. For products on shared controller the numbers reference the internal
number of the device units.
S
is the section number of the disk. By default, the
insf
command will not create device files for all
sections of a disk. If you donĀ±t want to use the logical volume manager you must manually create
the device files for the different disk sections with
mksf
.
Examples
/dev/dsk/c0t6d0
Block special file for disk
6
on disk controller
0