SlackwareThis Forum is for the discussion of Slackware Linux.
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 don't think this would fill the free space with random data across multiple partitions. Or am I wrong?
You would have to do it for each partition.
/dev/urandom is slow, but secure. You could also use /dev/zero instead, it is faster, but in extreme circumstances is less secure (very high tech microscope recovery techniques that have never been used in practice and aren't practical either).
The above would NOT preserve any data, where 'x'= a partition.
Pretty sure l0rddarkf0rce just wants to erase unallocated disk space
Yeah, but as written (where x is a file) it will do exactly that.
Both correct. I went with /dev/zero not as secure but good enough for my purposes. I guess that my Slackware box will be out of commission for several more hours filling the available 250GB on the partition will take a while.
Is there a way to securely erase the unused space from the HD that I currently have Slackware on (/dev/sda in my case)?
I'm not sure if I understand you correctly.
Sometimes I test-drive systems not in a virtual environment, but on a real machine here in my office. I'm using Ghost for Linux (G4L) to make backups to a local FTP server. Before doing that, I zero out the unused space on the hard disks, to reduce the size of the compressed images. Here's how I do that:
I hope the meaning of "unallocated" is agreed upon by all, hopefully he didn't just write over a partition that contained some (allocated) data he wanted to retain.
Ummm, that's going to create an ordinary file in /dev and fill up your devfs or devtmpfs in memory, leaving the actual filesystem on /dev/sdb1 untouched.
[EDIT] Make that "try to create". It will, fortunately, fail since /dev/sdb1 is not a directory.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.