Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
Hi all,
I am about to move from 1 vServer to another. Now before I leave I would like to secure erase all the files on the harddrive. Or rather the part of the harddrive I can use.
This is to ensure the privacy of my customers emails.
The Server runs on Suse Linux and I have shell access. Thats about all I know and am able to do. Where can I find a tutorial which tells a complete noob (me) how to erase all there is?
Thank you so much for your help, it is really appreciated!
You don't need a tutorial to do secure erase. Just grab a copy of DBAN. It goes on a floppy disk and does all manner of different secure erase (wipe) routines. Boot from the floppy and follow directions. http://dban.sourceforge.net/
Sorry if I wasnt clear. Its a server. I dont have access to the actual hardware. I only have shell access.
All the proposed suggestions use Boot media which I cant use. Further its a virtual Server (vServer) which means the actual PC is shared by many. Booting with Knoppix and wiping the entire drive would not go down well.
Any other ideas?
Can I use shred to shred my portion of the Harddrive?
Edit: How about shred -f? how would I tell it to delete all? run it from root?
Is your portion of the hard drive in a dedicated partition?
You could shred the email files, but files that where deleted previously and not overwritten could be recovered. If you have a dedicated partition, you could use dd to write a temporary file (or files) to the partition nearly filling it. Then shred those files. That will shred the areas of the partition that contain free space.
It would still be able to restore old email files from backups however, so maybe shredding the current files would be the best you can offer.
Thank you jschiwal that sounds like what I need to do/find out. How do I know if my partition is just one? When I use putty it just says
h9xx217:~ #
I miss C:...
I don't know how well the filesystem is virtualized. Do you have /sbin/fdisk, and does it return virtual values. It could be that each virtual server has it's own partition on a large raid array and everything is mounted on the root dir. However that isn't ideal for a server because you would want /var on it's own partition to protect against an attack where an attempt is made to fill all available space by doing something that would grow the logs quickly.
If you have your own partition, the df value returned for '/' and for '/var' and the other partitions would return the same value. If that value seems like a reasonable value for a single server, you can probably try filling up the space with temporary files to shred. On the other hand, the host system may be using quotas instead.
Because a backup probably exists, unless the tapes/discs are rotated, you might just settle for shredding the files that exist.
Also, it could be that some of the system partitions like /bin and /sbin are static and shared. That could complicate things a little bit, but it is the /var partition with the email that you need to really look at. ( See the Linux Filesystem Hierarchy Standard (www.tldp.org)).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.