(i) hard disk and file resources
The hard disk and CD-ROM devices use a block device interface. The hard disk device files are stored in the/dev directory.
The character device file is stored in the Rdsk subdirectory, and the block device file exists under the DSK subdirectory.
1. Logical hard disk device naming convention
/dev/[r]dsk/cwtxdysz
Example:
/dev/dsk/c0t3d0s0
Cn:controller number
The controller number that identifies the logical order on the system that is controlled by the hard drive.
C0 represents the first hard disk controller, C1 represents the second hard disk controller, and so on.
Tn:target number
The target number, which is located within the controller, is usually on the back of the peripheral device
Locate the target number.
Dn:disk number
The hard drive number that represents the logical unit number of the device attached to the target. D0 represents the first
Hard drive, D1 represents the second hard drive, and so on. For embedded SCSI controllers,
The hard drive number is always 0.
Sn:slice or Portition Numer
Slice or section number that identifies the partition of the hard disk.
2. DMESG command
The DMESG command identifies the device attached to the system with the instance name and the physical name. DMESG command also displays the system
Diagnostic information, operating system version number, size of physical memory, and other information.
Example:
The output information below is extracted from the output information of the previous DMESG example, and is identified to the system
Hard drive devices.
For each hard disk device, output three lines of information, respectively, indicating:
The instance name of the hard disk.
The physical device name of the hard disk.
The market name of the hard disk and the appearance information characteristics of the hard disk.
The logical device name of the hard disk is a symbolic connection to the physical device name of the hard disk. The instance name of the hard disk is the physical device life
The initials of the kernel. The Solaris command does not use this to represent the hard disk.
3.showrev command
(ii) hard disk partitions
The hard drive is accessed using character device files and block device files in the device directory. However, the hard drive does not
is accessed directly by the user, is accessed through the partition, the partition is the device file under the device directory to