Skip to main content
Welcome guest. | Register | Login | Post

what is the best/easy way to erase files

7 replies [Last post]
Offline
Joined: 2006-06-19

To All:

I have a new PC and need to rid of my old PC.
While I don't have much confidential stuffs in it,
and the computer probably will be hacked by
my geeky brother-in-law, I do want to securely
erase my stuffs. What is the best/easy way to
do this? Use shred? I only need to erase a
few directories, i.e.,

shred $HOME//

or reformat the disk or what? Don't want to do too
much works or figure (learn) what to do too much.

Sheng-Chieh

dylunio's picture
Offline
Joined: 2005-12-20
You can use shred to

You can use shred to permanently delete files, by using the command:

shred -n 25 -vz file

This will write random data over the file 25 times, the -v gives you verbose and the z will write a final pass over of zeros after the random pass overs have finished.

You can also use shred to wipe the hard drive with:

shred -n 25 -vz /dev/drive_name (replacing 'drive_name' with hda or whatever)

I think these methods should suffice your needs.

dylunio

tbuitenh's picture
Offline
Joined: 2005-12-21
Shred should be effective
a thing's picture
Offline
Joined: 2005-12-20
DBAN

DBAN is what you want.

Offline
Joined: 2006-06-19
Thank for your inputs. I'll

Thank for your inputs. I'll be "shredding" soon.

Sheng-Chieh

Offline
Joined: 2006-06-19
I'm on the old computer

I'm on the old computer trying shred.

shred does not remove file recursively, nor does it remove a blank directory.
Either

- how do I shred a directory recursively?
- how do I figure out the hard drive, I'm in? For this, do I need to be
in root?

Or is it just easier to use DBAN?

Sheng-Chieh

Offline
Joined: 2006-06-19
If I use DBAN, will that

If I use DBAN, will that ruin the chance for another OS to load up?
I.e., I have Xandros OS on it. I assume that DBAN will wipe itThe old computer will go to my geeky brother-in-law (who will do who knows?).
If he decides to load up another OS, will he be able to do it?

Sheng-Chieh

dylunio's picture
Offline
Joined: 2005-12-20
Once DBAN has hit your drive

Once DBAN has hit your drive it'll be clean, but you will be able to install another OS on it, it basicly returns the hard drive to the state you'd buy it in.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.