Software >> OS >> Unix >> Solaris >> How to perform a non-interactive low-level format of a HDD

Firstly take note of the disk number from echo | format.  The following steps will run low
 
For example if you want the perform for the hard disk number 3 (i.e. the fourth one) :
 
# date > purge-time1
# format <<EOF
3
defect
primary
quit
analyze
purge
y
defect
both
quit
analyze
purge
y
quit
quit
EOF
# date >> purge-time1