Discussion Locked

Wipe the disk

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
Is there a command in AIX that not only removes the dir/files but also cleans the disk of all data so it cannot be retrieved? I need to surplus some old unix servers that have sensitive data on them.

5 replies

by nickmkhn

There’s no guaranty that you data cannot be retrieved after erasing/cleaning data, or any level of formatting your disk, probably even with writing zeros. That’s why in some cases with very sensitive data, the disks must be mechanically destroyed.

But simple rewriting with new non-important stuff on top of your previous contents, doesn’t leave much chances (if not at all) to somebody to guess what was written before.

by kshcsuf

Bob, I'm not sure if /dev/zero exists on AIX, but you can use the dd command to write arbitrary blocks of data across the entire disk(s).

Try dd if=/dev/zero of=/dev/dsk/cXtXdXsX bs=8k count=Y

where Y is the size of the disk in kilobytes divided by 8. of is the output file you want to write to.

You'll want to do this from install media or another host if you are "zeroing" the data of the boot/root disk.

This discussion is closed to new replies.