Originally posted by: nagger
I think you mean disk scrubbing to completely remove data from a disk before it is junked or sold.
The USA DOD has strick guidlines on this, which involves two techniques.
1) For non-senitive data they repeatedly over write the entire disk with many bit patterns for hours.
2) Otherwise, they hit the disk with a hammer until he plater is bent and then crush it.
For a quick and dirty technique try:
dd if=/dev/zero of=/dev/rhdisk9 bs=1m
-
assuming here it is hdisk9. This will write zeros over the entire disk and you will lose all data on the disk. So make sure you don't have any LVs or filesystems on the disk before you start. bs=1m i.e. 1 MB disk I/O, just makes it do large I/O for speed. Removing the disk from its current volume group and forcing it back in to a new volume group of its own, would be a good safety measure before you start.
I guess a simple program could be written to randomly spray bit patterns on the disk for a few hours. The idea is that if you just write zeros on the disk extremely advanced techniques could be applied to read the previous bit pattern by reading the disk surface around the zero for each bit - this would involve rebuilding the disk pattern with higher resolution read heads and many days work - not many people have the equipment, skills or time to attempt this but it is technically possible.
#AIX-Forum