Re: simple way to securely destroy deleted files in a file system

2010-07-17 Thread Andre Majorel
On 2010-07-16 23:43 +0300, Andrei Popescu wrote: On Vi, 16 iul 10, 21:03:42, Andre Majorel wrote: perl -e '$bytes = int (1e4 + 1e6 * rand); for $n (1..$bytes) { $noise .= chr (int (rand (256))) } while (print $noise) {}' /mnt/sdc1/zeros.bin; sync dd if=/dev/random

Re: Securely deleting *Windows* files (was Re: simple way to securely destroy deleted files in a file system)

2010-07-17 Thread Christian Jaeger
Why calculate the sizes when you can just use cat until it stops because the disk is full? cat /dev/zero /mnt/yourfilesystem/thebigfile BTW don't forget to proberly umount /mnt/yourfilesystem afterwards, of course, to force a sync. (Just in case there might be a file system that doesn't send

Re: Securely deleting *Windows* files (was Re: simple way to securely destroy deleted files in a file system)

2010-07-17 Thread Christian Jaeger
PS. and I personally would: - either write a program that scans the partition for known fragments of the files you want to be gone (perl with Sys::Mmap is an efficient choice) to verify; - or backup all good files from the partition, then overwriting the block device, recreate the partition and

Re: simple way to securely destroy deleted files in a file system

2010-07-16 Thread Jordan Metzmeier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 07/15/2010 08:46 PM, Michael Iatrou wrote: I am skeptical whether there is any good reason for tools like wipe2fs, zerofree and friends (if there are any...), when a dd sync rm have the same result. You could say this about many things.

Re: simple way to securely destroy deleted files in a file system

2010-07-16 Thread green
Mark wrote at 2010-07-15 15:55 -0500: Do you have an example of what your wipe and wipe2fs commands are that you've used? Didn't see much info on the websites here [2]http://wipe.sourceforge.net/ or here $ man wipe There are even examples. [3]http://web.cecs.pdx.edu/~cklin/wipe2fs/. Would

Securely deleting *Windows* files (was Re: simple way to securely destroy deleted files in a file system)

2010-07-16 Thread Ron Johnson
On 07/15/2010 11:05 AM, H.S. wrote: I have a couple of hard disks in a computer which is to be recycled. I want the windows OS in it to remain functional, but I want to be sure that I have deleted all my personal files securely (never used the OS that much anyway and there is hardly any

Re: Securely deleting *Windows* files (was Re: simple way to securely destroy deleted files in a file system)

2010-07-16 Thread H.S.
On 10-07-16 12:00 PM, Ron Johnson wrote: Aren't you askig the wrong list? The filesystem is vfat, files are being deleted from within Linux using Linux tools and the partition just happens to be a Windows installation* but could be any generic storage device. So, no. I presume you are

Re: simple way to securely destroy deleted files in a file system

2010-07-16 Thread Aaron Toponce
On 07/15/2010 06:45 PM, Jordon Bedwell wrote: Anything, and I repeat anything, is recoverable, even if you remove the filesystem you can recover pieces of the file. [citation needed] When you do a low-level write to the disk, you're wiping out anything and everything. One single pass of

Re: Securely deleting *Windows* files (was Re: simple way to securely destroy deleted files in a file system)

2010-07-16 Thread Ron Johnson
On 07/16/2010 11:10 AM, H.S. wrote: On 10-07-16 12:00 PM, Ron Johnson wrote: Aren't you askig the wrong list? The filesystem is vfat, files are being deleted from within Linux using Linux tools and the partition just happens to be a Windows installation* but could be any generic storage

Re: Securely deleting *Windows* files (was Re: simple way to securely destroy deleted files in a file system)

2010-07-16 Thread H.S.
On 16/07/10 01:01 PM, Ron Johnson wrote: I don't think you can of= just the empty parts of your partition. Attached is a Python script I use to zero out the free space of a mounted partition. Thanks for the script. You are basically writing 0xFF to the available disk space. I used to have

Re: simple way to securely destroy deleted files in a file system

2010-07-16 Thread Michael Iatrou
When the date was Friday 16 of July 2010, Jordan Metzmeier wrote: On 07/15/2010 08:46 PM, Michael Iatrou wrote: I am skeptical whether there is any good reason for tools like wipe2fs, zerofree and friends (if there are any...), when a dd sync rm have the same result. You could say

Re: simple way to securely destroy deleted files in a file system

2010-07-16 Thread H.S.
On 16/07/10 01:42 PM, Michael Iatrou wrote: This is rather a philosophical question than a technical one: it is part of UNIX mentality to have simple tools that can be put together to complete complicated tasks. Practically seen, if the original poster was educated with the principles of UNIX

Re: simple way to securely destroy deleted files in a file system

2010-07-16 Thread Jordan Metzmeier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 07/16/2010 01:42 PM, Michael Iatrou wrote: This is rather a philosophical question than a technical one: it is part of UNIX mentality to have simple tools that can be put together to complete complicated tasks. Practically seen, if the

Re: Securely deleting *Windows* files (was Re: simple way to securely destroy deleted files in a file system)

2010-07-16 Thread Mark
On Fri, Jul 16, 2010 at 9:10 AM, H.S. hs.sa...@gmail.com wrote: On 10-07-16 12:00 PM, Ron Johnson wrote: Aren't you askig the wrong list? The filesystem is vfat, files are being deleted from within Linux using Linux tools and the partition just happens to be a Windows installation* but

Re: Securely deleting *Windows* files (was Re: simple way to securely destroy deleted files in a file system)

2010-07-16 Thread Ron Johnson
On 07/16/2010 12:38 PM, H.S. wrote: On 16/07/10 01:01 PM, Ron Johnson wrote: I don't think you can of= just the empty parts of your partition. Attached is a Python script I use to zero out the free space of a mounted partition. Thanks for the script. You are basically writing 0xFF to the

Re: Securely deleting *Windows* files (was Re: simple way to securely destroy deleted files in a file system)

2010-07-16 Thread H.S.
On 16/07/10 02:03 PM, Mark wrote: On Fri, Jul 16, 2010 at 9:10 AM, H.S.hs.sa...@gmail.com wrote: On 10-07-16 12:00 PM, Ron Johnson wrote: Aren't you askig the wrong list? The filesystem is vfat, files are being deleted from within Linux using Linux tools and the partition just happens

Re: Securely deleting *Windows* files (was Re: simple way to securely destroy deleted files in a file system)

2010-07-16 Thread H.S.
On 16/07/10 02:25 PM, Ron Johnson wrote: Yeah, I guess you could write a bash script to: 1. determine the amount of free space. 2. Divide that by some efficient block size. 3. dd if=/dev/urandom of=${VFAT}/foo.bar \ obs=${BLKSIZ} count=${BLKCNT} Coincidentally, that is exactly what I did

Re: simple way to securely destroy deleted files in a file system

2010-07-16 Thread Andre Majorel
On 2010-07-15 13:55 -0400, H.S. wrote: On 15/07/10 01:38 PM, Perry E. Metzger wrote: dd if=/dev/zero of=/dev/scd bs=1M Yes, but that would wipe out everything, the OS as well. I was looking for just making the already deleted files unrecoverable by a casual user. In other words, since a

Re: simple way to securely destroy deleted files in a file system

2010-07-16 Thread Andrei Popescu
On Vi, 16 iul 10, 21:03:42, Andre Majorel wrote: If you're feeling paranoid, you could fill with junk instead of NULs to protect against any optimisation at filesystem level. bad joke about perlyep, that sure looks like junk/bad joke perl -e '$bytes = int (1e4 + 1e6 * rand); for $n

simple way to securely destroy deleted files in a file system

2010-07-15 Thread H.S.
I have a couple of hard disks in a computer which is to be recycled. I want the windows OS in it to remain functional, but I want to be sure that I have deleted all my personal files securely (never used the OS that much anyway and there is hardly any important info in its registry or browser).

Re: simple way to securely destroy deleted files in a file system

2010-07-15 Thread Wolodja Wentland
On Thu, Jul 15, 2010 at 12:05 -0400, H.S. wrote: I have a couple of hard disks in a computer which is to be recycled. I want the windows OS in it to remain functional, but I want to be sure that I have deleted all my personal files securely (never used the OS that much anyway and there is

Re: simple way to securely destroy deleted files in a file system

2010-07-15 Thread Perry E. Metzger
On Thu, 15 Jul 2010 12:05:33 -0400 H.S. hs.sa...@gmail.com wrote: I have a couple of hard disks in a computer which is to be recycled. I want the windows OS in it to remain functional, but I want to be sure that I have deleted all my personal files securely (never used the OS that much

Re: simple way to securely destroy deleted files in a file system

2010-07-15 Thread H.S.
On 15/07/10 01:38 PM, Perry E. Metzger wrote: On Thu, 15 Jul 2010 12:05:33 -0400 H.S. hs.sa...@gmail.com wrote: Its first and second partitions (sdc1 and sdc2) are vfat. I was thinking of mounting these on /mnt/scd1 (and scd2) and then doing: # dd if=/dev/zero /mnt/sdc1/zeros.bin; rm -f

Re: simple way to securely destroy deleted files in a file system

2010-07-15 Thread H.S.
On 15/07/10 12:31 PM, Wolodja Wentland wrote: Its first and second partitions (sdc1 and sdc2) are vfat. I was thinking of mounting these on /mnt/scd1 (and scd2) and then doing: # dd if=/dev/zero /mnt/sdc1/zeros.bin; rm -f /mnt/sdc1/zeros.bin and the same for scd2. The idea is fill the

Re: simple way to securely destroy deleted files in a file system

2010-07-15 Thread thib
Take a look at shred (coreutils), wipe and secure-delete. -t -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4c3f4fd1.50...@stammed.net

Re: simple way to securely destroy deleted files in a file system

2010-07-15 Thread Mark
On Thu, Jul 15, 2010 at 9:05 AM, H.S. hs.sa...@gmail.com wrote: I have a couple of hard disks in a computer which is to be recycled. I want the windows OS in it to remain functional, but I want to be sure that I have deleted all my personal files securely (never used the OS that much anyway

Re: simple way to securely destroy deleted files in a file system

2010-07-15 Thread Andrei Popescu
On Jo, 15 iul 10, 13:55:21, H.S. wrote: I was looking for just making the already deleted files unrecoverable by a casual user. In other words, since a deleted file frees the space on disk, by filling up the disk with all zeros and then deleting that zeros file would be overwriting the

Re: simple way to securely destroy deleted files in a file system

2010-07-15 Thread green
thib wrote at 2010-07-15 13:13 -0500: Take a look at shred (coreutils), wipe and secure-delete. +1 wipe; I have used it to wipe an entire block device. Also wipe2fs for zeroing unused space; and zerofree seems very similar. signature.asc Description: Digital signature

Re: simple way to securely destroy deleted files in a file system

2010-07-15 Thread Mark
On Thu, Jul 15, 2010 at 1:41 PM, green greenfreedo...@gmail.com wrote: thib wrote at 2010-07-15 13:13 -0500: Take a look at shred (coreutils), wipe and secure-delete. +1 wipe; I have used it to wipe an entire block device. Also wipe2fs for zeroing unused space; and zerofree seems very

Re: simple way to securely destroy deleted files in a file system

2010-07-15 Thread Aaron Toponce
On 07/15/2010 11:55 AM, H.S. wrote: I was looking for just making the already deleted files unrecoverable by a casual user. In other words, since a deleted file frees the space on disk, by filling up the disk with all zeros and then deleting that zeros file would be overwriting the earlier

Re: simple way to securely destroy deleted files in a file system

2010-07-15 Thread Michael Iatrou
When the date was Thursday 15 of July 2010, green wrote: thib wrote at 2010-07-15 13:13 -0500: Take a look at shred (coreutils), wipe and secure-delete. +1 wipe; I have used it to wipe an entire block device. Also wipe2fs for zeroing unused space; and zerofree seems very similar. I am

Re: simple way to securely destroy deleted files in a file system

2010-07-15 Thread Jordon Bedwell
On 7/15/2010 4:53 PM, Aaron Toponce wrote: On 07/15/2010 11:55 AM, H.S. wrote: I was looking for just making the already deleted files unrecoverable by a casual user. In other words, since a deleted file frees the space on disk, by filling up the disk with all zeros and then deleting that