On 9/17/12 6:58 PM, Greg Freemyer wrote:
All,
I was just thinking about file wiping tools in opensuse.
In general file wiping tools are used if you have an important file you want to wipe (overwrite) before deleting.
In the distro we have shred and wipe that do this, and in OBS we have srm and secure-delete (10 years old).
It is clearly an issue that people are concerned about, but none of them seem to even try to address:
- file remnants which maybe in the filesystem journal - backup copies of the files in snapshots (LVM, btrfs, ext4 snapshots) - wiping of unallocated space to overwrite earlier drafts which may have been deleted but are still in unallocated - SSDs and there potential for sector remapping during the write operation. - the swap partition can hold copies of data that is unencrypted in ram
I realize a none of the above are trivial, but it seems they should make some effort to at least warn the user of the issues.
Does opensuse have a file wiping tool that attempts to sanitize any of the above?
If so, I'd like to create a simple wiki page that covers this topic. At present it seems the page will mostly discuss issues, and not have much in the way of solutions.
Greg
I don't know about a tool, but I think writing random data to a drive should do the trick. Once, or maybe a couple of times. I saw this in an article yesterday, not related to wiping per se, but should work. ----- dd if=/dev/random of=/dev/sda – Writes Junk Onto a Hard Drive The dd if=/dev/random of=/dev/sda line will also obliterate the data on one of your hard drives. dd – Perform low-level copying from one location to another. if=/dev/random – Use /dev/random (random data) as the input – you may also see locations such as /dev/zero (zeros). of=/dev/sda – Output to the first hard disk, replacing its file system with random garbage data. ----- You could also delete everything first, but I don't think that is necessary. Writing random data should do it. Here's a link to the article if anyone is interested. http://www.howtogeek.com/125157/8-deadly-commands-you-should-never-run-on-li... Apologies before hand if my grammar is not up to snuff ;) Jim F -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org