Professional Documents
Culture Documents
Solaris Notes
Solaris Notes
# Device Files
- provides access to devices
- do not use data blocks and inode stores major/minor device no's for a particul
ar device
- both files have same inode
- deleteting one file has no effect on the other file , only link count of the d
irectory decrements by 1
$ cd /devices/pci@1f,0/pci@1,1/ide@3
$ ls -l dad@0*
crw-r----- 1 root sys 136, 8
Sep 23
# major no [ 136
- identifies
# minor no [
- identifies
12:51 dad@0,0:a,raw
]
the specific device driver required to access a device.
8 ]
the specific unit of the type that the device driver con
trols.
- Creation method -> devfsadm
# Character special device file
crw-r----- 1 root sys 136, 8 Sep 23 12:51 dad@0,0:a,raw
- Data is accessed as data stream
# Block special device files
brw-r----- 1 root sys 136, 8 Sep 23 08:35 dad@0,0:a
- Data is accessed as a predefined block size
# Disk
$ prtvtoc /dev/dsk/c1t3d0s0
$ mkdir /export/config
$ vi sysidcfg
------------------ sysidcfg file content -------------------network_interface=hme0 { primary
protocol_ipv6=no
netmask=netmask_value
default_route=router_IP}
security_policy=none
name_service=none
timezone=timezone
system_locale=locale
timeserver=timeserver_IP
root_password=Hx23475vABDDM
-----------------------------------------------------------$ vi rules
[ contains start and stop scripts ]
------------------- rules file content ----------------