Solaris – format

February 11th, 2010

 # format
Searching for disks…done
AVAILABLE DISK SELECTIONS:
0. c0t0d0 <drive not available: formatting>
/sbus@6,0/SUNW,socal@d,10000/sf@0,0/ssd@w210000163787753a,0

Sometimes

# format -Mm
may be helpful as this reports additional messages about what is happening.

Get a list of disks

# format < /dev/null or echo “\n” | format

format non destructive commands
disk, current, defect, verify, save, inquiry

format destructive commands
type, partition, format, repair, label, analyze, backup

formating using another disk
# prtvtoc /dev/rdsk/c0t0d0s2 | fmthard -s – /dev/rdsk/c0t2d0s2

Install boot block
# installboot /usr/platform/`uname -i`/lib/fs/ufs/bootblk /dev/rdsk/c0t2d0s0

A fairly typical layout is

0. /
1.  swap
2. whole disk
3.  /var
4. /data

If the system has has a database locally and there is a need for a bit of extra speed then /data can always be put on the faster part of the disk. Not to many systems swap much anymore since there is the ability to put in as much memory as is needed. Although if needed a seperate filesystem can be created for a swap partition.
0. /data
1. /
2. whole disk
3. /swap
4. /var

Trackback URI | Comments RSS

Leave a Reply

For spam filtering purposes, please copy the number 7274 to the field below: