Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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.
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.
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.
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.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.