LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-22-2012, 08:58 AM   #1
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Rep: Reputation: 282Reputation: 282Reputation: 282
securely wiping files on a FAT32 disk


I have this old Win98 system that was donated to an organization and still contains data of the original owner (divorce, bank statements etc). I like to (more or less) securely wipe files (most probably in my documents or so).

I can basically make no mistakes (no original install media, only an untested image) so I like some confirmation if the approach as described in http://en.gentoo-wiki.com/wiki/Secure_deletion will work for a mounted FAT32 disk.

Quote:
delete the files (in W98 or using live usb)
fill the free space with a massive file with zeros and delete that file
Code:
dd if=/dev/zero of=zerofile bs=1M
sync
rm zerofile
 
Old 08-22-2012, 09:06 AM   #2
m1chel
LQ Newbie
 
Registered: Jan 2012
Location: Holland
Distribution: Gentoo
Posts: 4

Rep: Reputation: 0
I think: not completely. First, there is a 4 Gb size limit on a single file in FAT32. So if your drive is larger, not all the free space will be erased. Second, you cannot erase data that's in a partially used cluster that way. I think there's a package called scrub to do what you want, only I have never used that.

Hope this helps (a bit).
 
Old 08-22-2012, 09:07 AM   #3
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
m1chel is right, there is the size limit which will not allow this method to work.

If you want some extra security you can wipe with random numbers, use wipe:
http://wipe.sourceforge.net/
it is much faster than using /dev/urandom and is designed for this. Wipe the entire device with it.

Or you can download the UBCD (link in my sig), boot it and use the various wipe utilites there, I recommend DBAN.

Last edited by H_TeXMeX_H; 08-22-2012 at 09:09 AM.
 
Old 08-22-2012, 09:08 AM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
That will work.
If you want to be paranoid you can also use the same approach but /dev/urandom instead of /dev/zero after you have zeroed the free space out the first time.

Edit: Forgot about the 4GB limit, maybe you need more than one file. AFAIK, there are no partially used clusters on FAT file-systems.

Last edited by TobiSGD; 08-22-2012 at 09:10 AM.
 
Old 08-22-2012, 10:18 AM   #5
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Original Poster
Rep: Reputation: 282Reputation: 282Reputation: 282
Thanks

specially for the warning; it might not even be FAT32 (need to check what it is and what the specs are )

Total HD is 4.3GB

minus Win98 and Office97 should bring me well within the 4GB limit.

// Edit:
I can't wipe the HD as there are no installation media of either Win98 or Office97. Machine is going to be used to teach people a bit of computer skills and office SW skills.

Last edited by Wim Sturkenboom; 08-22-2012 at 01:19 PM.
 
Old 08-22-2012, 01:17 PM   #6
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
I see, well then in this special case it probably would work.
 
Old 08-22-2012, 01:23 PM   #7
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Under Linux you can use "shred" to write over and delete individual files though, of course, this won't get files which have already been deleted as the filling with a random file method would.
 
Old 08-22-2012, 02:51 PM   #8
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Original Poster
Rep: Reputation: 282Reputation: 282Reputation: 282
Currently wiping. First attempt with /dev/urandom and after 1.5 hours the 'filesize limit exceeded' message showed; file was 2GB.

Now using /dev/zero for the next one; seems to go a bit faster

Available space after removing files is 3.3GB that needs to be wiped.

//Edit
marked as solved but need to wait till this one is finished to see if I did not bork Win98

Last edited by Wim Sturkenboom; 08-22-2012 at 02:53 PM. Reason: Update
 
Old 08-22-2012, 03:08 PM   #9
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Original Poster
Rep: Reputation: 282Reputation: 282Reputation: 282
Thanks people,

Win98 and Office97 have survived :lol:
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] securely wiping disk/partition dimm0k Linux - Security 8 06-19-2011 08:35 AM
Tips for securely wiping hard disks irlandes Linux - Security 4 09-23-2009 09:52 AM
LXer: Securely Wiping Disks With DBAN LXer Syndicated Linux News 0 12-29-2008 10:40 PM
securely wiping a pen drive soldan Linux - Hardware 4 04-14-2007 04:15 PM
Securely Wiping Data zok Linux - Software 10 09-23-2006 12:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration