format or erase a hard disk
Posted: Wed Sep 18, 2013 5:26 pm
If you need to erase the data on a hard disk in AIX, this is the command. Can be used in scripts if needed.
diag -c -d hdisk1 -T "format -s erase -a write -P aa,cc,ee -F"
diag -c -d hdisk1 -T "format -s erase -a write -P aa,cc,ee -F"