1cmdk(7D) Devices cmdk(7D)
2
3
4
6 cmdk - common disk driver
7
9 cmdk@target, lun : [ partition | slice ]
10
11
13 The cmdk device driver is a common interface to various disk devices.
14 The driver supports magnetic fixed disks and magnetic removable disks.
15
16
17 The cmdk device driver supports three different disk labels: fdisk par‐
18 tition table, Solaris x86 VTOC and EFI/GPT.
19
20
21 The block-files access the disk using the system's normal buffering
22 mechanism and are read and written without regard to physical disk
23 records. There is also a "raw" interface that provides for direct
24 transmission between the disk and the user's read or write buffer. A
25 single read or write call usually results in one I/O operation; raw I/O
26 is therefore considerably more efficient when many bytes are transmit‐
27 ted. The names of the block files are found in /dev/dsk. Raw file names
28 are found in /dev/rdsk.
29
30
31 I/O requests to the magnetic disk must have an offset and transfer
32 length that is a multiple of 512 bytes or the driver returns an EINVAL
33 error.
34
35
36 Slice 0 is normally used for the root file system on a disk, slice 1 as
37 a paging area (for example, swap), and slice 2 for backing up the
38 entire fdisk partition for Solaris software. Other slices may be used
39 for usr file systems or system reserved area.
40
41
42 The fdisk partition 0 is to access the entire disk and is generally
43 used by the fdisk(1M) program.
44
46 /dev/dsk/cndn[s|p]n block device (IDE)
47
48
49 /dev/rdsk/cndn[s|p]n raw device (IDE)
50
51 where:
52
53 cn controller n.
54
55
56 dn lun n (0-1).
57
58
59 sn UNIX system slice n (0-15).
60
61
62 pn fdisk partition (0-36).
63
64
65
66 /kernel/drv/cmdk 32-bit kernel module.
67
68
69 /kernel/drv/amd64/cmdk 64-bit kernel module.
70
71
73 See attributes(5) for descriptions of the following attributes:
74
75
76
77
78 ┌─────────────────────────────┬─────────────────────────────┐
79 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
80 ├─────────────────────────────┼─────────────────────────────┤
81 │Architecture │x86 │
82 └─────────────────────────────┴─────────────────────────────┘
83
85 fdisk(1M), mount(1M), lseek(2), read(2), write(2), readdir(3C),
86 scsi(4), vfstab(4), attributes(5), dkio(7I)
87
88
89
90SunOS 5.11 4 Nov 2008 cmdk(7D)