Destroying data down to the 13th level???


 
Thread Tools Search this Thread
Special Forums Hardware Filesystems, Disks and Memory Destroying data down to the 13th level???
# 1  
Old 04-03-2002
Question Destroying data down to the 13th level???

I belong on the 'UNIX for Dummies Questions' forum but I need to delete information on a sensitive SUN box. The company is going to use the box for a web server and I need to have the hard drives Completely clean!!!

One of the bosses 'friends' through out the term 13th level. And now it's the coin phrase of the day!!

Quote:
destroying the data on the Voice Mail hard drives down to the 13th level
Any clue what it means but more important, how do I clean the disks?

Thanks,
Lenny
# 2  
Old 04-03-2002
You could try just using "rm", then fdisk'ing the drive and creating a new partition. That will keep all but the most determined (and well-funded) hackers out.

Also check out http://freshmeat.net/projects/securedelete/?topic_id=43

Not sure if it will do a 13x overwrite, but if you really needed DoD grade file-wipes, you probably wouldn't be asking here.
# 3  
Old 04-03-2002
Something my instructor had us do in HPUX class a few years ago works too.

Create a tar file and write the output to a disk device. This should destroy any data that was there. Also, if you system has a /dev/zero file. You can write zeroes to the disk as well.

Like PxT said, as long as the disk is in a "secure" site you shouldn't have to worry too much.

BTW, that reference to 13th level is referring to the 13th level of hell, reserved for the most deserving of all evil creatures and persons!Smilie


Smilie
# 4  
Old 04-03-2002
MySQL

Thanks for your help.

I'd like to use the sledgehammer format but can't!!!

Thanks again,
Lenny
# 5  
Old 04-04-2002
Maybe use /dev/random or /dev/urandom?
I have never tried this, but does anyone know if you can simply do something like this:
Code:
#!/bin/sh
n=12
while [ $n -gt 0 ]; do
dd if=/dev/urandom of=/dev/(hard drive device you want dead)
n=`expr $n - 1`
done
cat /dev/zero > /dev/(hard drive device you want dead)

I know it would be taxing on the disk, and possibly the entire system, but for curiosity sake, would it work?
# 6  
Old 04-04-2002
Quote:
Originally posted by LivinFree
I know it would be taxing on the disk, and possibly the entire system, but for curiosity sake, would it work?
I am not sure of what urandom is, so I must pass on that. Using dd to copy /dev/zero to a disk special file will work in all cases if you use the default block sizes as you are doing.

You don't specify whether you are using a block special file or a character special file to access the disk. That cat would be expensive but would work if you use a block special file.

It is not guaranteed to work if you use a character special file, but it might depending on the disk driver, the disk hardware, and block size used for physical writes by the cat command. A raw disk device requires i/o to be aligned on a DEV_BSIZE boundary. But it's not guaranteed to fail if you don't do that.

The second smartest way to do this would be to use dd to copy /dev/zero to the raw device but using a very large block size that is a multiple of DEV_BSIZE.

But HP-UX has mediainit and SunOS has format. Instead of zeros on every pass, they use various patterns chosen by hardware experts to really test the disk. If you need more security than that, you need to use sledge hammers and blow torches.
# 7  
Old 04-04-2002
Ahh...
/dev/urandom is kind of an "enhanced" random... faster and more "random" than /dev/random is...

It very well may be a Linux specific device then (maybe BSD too...).

Also, as a sidenote, the OP could look for a utility like wipe, which will run against a raw device (and is free too).

And now that I think about it, if you're going to use it as a web server and don't want any sensitive recoverable data on it, just zero'ing out the disk should be fine. Any more sophisticated recovery than that would require physical access to the platter, right?
Login or Register to Ask a Question

Previous Thread | Next Thread

4 More Discussions You Might Find Interesting

1. Red Hat

SSL certificate generation on OS level or application level

We have a RHEL 5.8 server at the production level and we have a Java application on this server. I know of the SSL certificate generation at the OS (RHEL) level but it is implemented on the Java application by our development team using the Java keytool. My doubt is that is the SSL generation can... (3 Replies)
Discussion started by: RHCE
3 Replies

2. Shell Programming and Scripting

Replace a value after 13th comma in a string

Suppose b=50,0,0,40,1,0,5000,gold,0,0,0,0,32,9,2,0,10000,0,0,0,0,0,0,0,0,0,BSNL_SMS_Bundle ,null,null,null,null,null,null,null,null,null,0,0,0,0,0,0,0,0,0,0,50,0,0,0,0,0,0,0,0,0,null,null,0,0,405564245,0 c=11 After 13th comma, the value of 9 needs to be changed and to be filled by another... (4 Replies)
Discussion started by: karan23kohli
4 Replies

3. Solaris

Difference between run level & init level

what are the major Difference Between run level & init level (2 Replies)
Discussion started by: rajaramrnb
2 Replies

4. AIX

destroying the OS

Hi Guys I have a cool job to do and that's to destroy aix5.1 on two of my servers. I need to get rid of all information. I have thought of a way of doing this and wondered if any of you had any ideas!! Get the machine into maint mode and run the dd cmd! (7 Replies)
Discussion started by: animata
7 Replies
Login or Register to Ask a Question