Results 1 to 7 of 7
Hi,
I'm trying to wipe an entire 20GB drive with the shred command using Knoppix. Specifically this is the command I'm entering
Code:
shred -n 2 -f -v /dev/hda
To ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 05-29-2008 #1Linux Newbie
- Join Date
- Apr 2008
- Posts
- 127
Problem wiping a drive with shred command
Hi,
I'm trying to wipe an entire 20GB drive with the shred command using Knoppix. Specifically this is the command I'm entering
To my understand from reading the man pages, this writes random data to the drive(/dev/hda) twice, forces permissions, and shows progress.Code:shred -n 2 -f -v /dev/hda
I see progress up to about 96% for the 1st pass, then I get 2 lines of error at the end of the drive. Something like "error writing to offset x, input/output error", where x is the end of the drive.
The 2nd pass never runs due to this error, the the program terminates back to the shell.
Does anyone know what's wrong?
TIA.
- 05-31-2008 #2
you need to unmount the drive first.
code you will need:
might not need to sudo if you're already in superuser mode...Code:sudo umount /dev/hda shred -n 2 -vf /dev/hda
- 05-31-2008 #3
I would suggest you to write zeros in whole harddisk through dd command instead of using shred.
OrCode:dd if=/dev/zero of=/dev/hda
Use DBAN.It is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First
- 05-31-2008 #4
yeah, i'd forgotten about that, Darik's Boot and Nuke (DBAN) is an excellent tool for wiping hard-drives of computers, have used it on many i've sold/given away/scrapped...
- 05-31-2008 #5Linux Newbie
- Join Date
- Apr 2008
- Posts
- 127
I do know about DBAN. In fact it was the first thing I've tried. However, most of DBAN's algorithms do a final zeroization pass, which I don't want. I want the contents of the HDD to be randomized instead. Hence I'm using shred w/o the -z option, and hence I'm not using dd.
Of course, if there is an easy way to disable the final zeroization pass then I'm open to using DBAN.
I will try umount on the drive with shred in the meantime.
- 06-02-2008 #6Linux Newbie
- Join Date
- Apr 2008
- Posts
- 127
Hmm, the drive doesn't seem to be mounted at all, so umount did nothing. Any other ideas? Could the drive have bad sectors or something? DBAN did complete the wipe though.
- 06-05-2008 #7forum.guy
- Join Date
- May 2004
- Location
- arch linux
- Posts
- 18,733
Hi, galapogos!
If you still need help with this please create a new thread. I'm locking this one because it has attracted 8 different spam messages already.
Sorry for any inconvenience.oz



