Managing Local Disk Devices

Disk Slices

0 / 1 swap 2 Entire Disk 5 /opt 6 /usr 7 /export/home

/dev – Logical Device Names /devices – Physical Device Names

/etc/path_to_inst -- For each device, the system records its physical and instance name

# prtconf -- Shows system information including memory size

# devfsadm -- Will search and configure new devices added.
# devfsadm –c disk
# devfsadm –i
# devfsadm –v -- To print changes made to the /dev and /devices directory
# devfsadm –c -- To invoke cleanup routines that remove unreferenced symbolic links for devices


# format
Format> label -- To store partition details.
Format> fdisk -- To create partitions
Format> verify -- Display partition details
Format> partition -- To get into partition menu
Format> save -- Saving new disk and partition :/etc/format.dat
Partition> 0 -- Change 0 partition
select -- Select a predefined table
modify -- Modify a predefined partition table
name -- Name the current table
print -- Displays the current table
label -- Write partition map and label to the disk

# prtvtoc /dev/rdsk/c1t0d0s2 -- To view disk table
# prtvtoc /dev/rdsk/c1d0s2 > /in -- To save disk partition details to /in file

# fmthard –s /in /dev/rdsk/c1d0s2 -- To load partition detail from file to disk

No comments: