You are on page 1of 3

Inodes

- Contains data about file like permissions, owner, size etc


Files
# Symbolic Links
- points to another file [ its like a shortcut ]
- contains path name to the file they are pointing [ so their data is actually o
nly the path to the file name they are pointing and nothing else ] and hence can
point to files in a different FS
- Size of Symbolic link = no of characters in the path name it contains
$ ls -l bin
lrwxrwxrwx 1 root root 9 Sep 19 15:41 bin -> ./usr/bin
$ ln -s file link
# Hard links
- association between a filename and inode so every file will atleast have 1 har
d link
- for every new file created in a directory the link count of the directory incr
eases by 1
- deleting the original file will render the symbolic link of no use
$ ln file1 file2
$ ls-l
total 0
-rw-r--r-- 1 root root 0 Sep 23 13:19 file1
ons ]

[ see the count 1 after permissi

# 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

---> see the VTOC table of the disk

to save a disks VTOC table to a file


$ prtvtoc /dev/dsk/c1t3d0s0 > /var/tmp/c1t3d0.vtoc
To relabel a disk
$ fmthard -s <datafile> /dev/rdsk/c#t#d#s2
To initialize the VTOC of a disk
$ fmthard -s /dev/null /dev/rdsk/c1t3d0s2
1 sector == 512 bytes
sector 0 --> VTOC
sector 1 - 15 --> Boot Block [ only root FS has an active boot block ]
sector 16 - 31 --> primary superblock [ contains no of data blocks & cylinders,
name of mount-point etc ]
sector 32 - .. --> Backup superblocks [ created when FS is created ]
# To create new ufs FS
$ newfs /dev/rdsk/c1t3d0s7
$ fstyp -v /dev/dsk/c0t1d0s6
Checking FS with fsck
# Consistencies checked by fsck
- superblock consistency
- cylinder group block consistency
- inode consistency
- data block consistency
# Boot order in Solaris
The boot PROM phase --> locates boot device and loads bootblk
The boot programs phase --> loads kernel
The kernel initialization phase --> reads /etc/system and loads modules
The init phase --> kernel starts /etc/init and init starts svs.startd
The svc.startd phase --> starts all the system services

######### Jumpstart Configuration #############


#
$
$
$

Jumpstart Server configuration


mkdir /export/install
cd /cdrom/Solaris10/Tools
./setup_install_server /export/install

$ 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 ----------------

hostname client_name - profile ------------------------------------------------------$ vi profile


------------------ profile file content ----------------install_type
initial_install
system_type
standalone
partitioning
explicit
filesys
cxtxdxs1 128 swap
filesys
cxtxdxs0 free /
cluster
SUNWCXall
--------------------------------------------------------# run the check script from the Solaris 10 DVD
$ ./check
# Adding the client [ run add client script from the DVD ]
$ ./add_install_client -c hostname:/export/config -p hostname:/export/config cl
ient1 sun4u
$ share -o ro,anon=0 /export/config
# On client machine
$ init 0
ok> boot net -v install

You might also like