wiping hard drive

I'm looking for a utility that will wipe data clean from a Solaris hard drive and make the data unreadable and unrecoverable. Any suggestions? Does SUN have something?

Basically the first 512 bytes of the hard disk contain boot record and a partition table. If you delete it, you'll not be able to boot and of course all your partitions will be LOST. This will also work for any linux box.

In case you want to test it.. u better take a back up of 512 bytes .. and then restore it based on your requirement.
Here we go.

  1. To take backup boot record and partition table:

dd if=/dev/rdsk/cNtNdN of=/bootblock.img bs=512 count=1

now copy the file bootblock.img somewhere safe i.e a floppy or another hard disk etc.

2 Now to delete it

dd if=/dev/zero of=/dev/cNtNdN bs=512 count=1

In case you want to wipe out everything.. just don't give the "count=1" let the command finish, it will take while based on the size of your disk.

Hope this is helpful

-Aditya

SUN recommended - Scrubbing disks

Thanks everyone.