To wipe out all disks

Sometimes you need to delete all info in your disks, perhaps because it contains private data. You can effectively do this
by erasing the first 1024 blocks on the disk. After doing this the disk will lose its label and the partition schema. You can
run the next script to obtain the list of commands that will do it on your server:
#!/bin/ksh
format < /dev/null| egrep “cyl” | while read l;do
D=`echo $l | awk ‘{ print “dd if=/dev/zero of=/dev/dsk/”$2″s2 count=1024” }’`
echo $D
done
Thanks to Alejandro Siller
108/433

Leave a Reply

Your email address will not be published. Required fields are marked *