LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 05-11-2007, 07:45 AM   #1
NewBudda
LQ Newbie
 
Registered: Mar 2007
Distribution: Suse
Posts: 21

Rep: Reputation: 15
Question Really erase Harddrive Tutorial


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!
 
Old 05-11-2007, 07:51 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
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/
 
Old 05-11-2007, 08:21 AM   #3
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Boot from a liveCD and then use dd like this (well don't run it 10 times)

Last edited by bathory; 05-11-2007 at 08:24 AM.
 
Old 05-11-2007, 08:26 AM   #4
oneandoneis2
Senior Member
 
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460

Rep: Reputation: 48
I wrote an article on securely deleting files that has instructions on how to do it properly..
 
Old 05-11-2007, 11:50 PM   #5
NewBudda
LQ Newbie
 
Registered: Mar 2007
Distribution: Suse
Posts: 21

Original Poster
Rep: Reputation: 15
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?

Last edited by NewBudda; 05-11-2007 at 11:52 PM.
 
Old 05-11-2007, 11:57 PM   #6
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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.
 
Old 05-12-2007, 02:26 AM   #7
NewBudda
LQ Newbie
 
Registered: Mar 2007
Distribution: Suse
Posts: 21

Original Poster
Rep: Reputation: 15
Question

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:...
 
Old 05-12-2007, 04:46 AM   #8
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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)).
 
Old 05-12-2007, 05:50 PM   #9
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 87
Rute contains a tip on how to overwrite files in place that may be of interest. See 20.7.10 in this chapter
 
Old 05-21-2007, 04:07 PM   #10
NewBudda
LQ Newbie
 
Registered: Mar 2007
Distribution: Suse
Posts: 21

Original Poster
Rep: Reputation: 15
Since I am not sure what I am doing in any case, I settled for shredding single files for emails, etc.

But how do I shred a folder?
 
Old 05-23-2007, 02:47 PM   #11
NewBudda
LQ Newbie
 
Registered: Mar 2007
Distribution: Suse
Posts: 21

Original Poster
Rep: Reputation: 15
Or would it be possible to shred a whole path say /var/* ??
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora Core 6 won't recognize second internal harddrive or usb harddrive Rockgod1969 Linux - Hardware 14 01-26-2007 01:03 AM
erase cd help ..!! bruse Linux - Newbie 3 04-13-2005 08:22 AM
Installing linux on 2nd harddrive(dual boot) windows on seperate harddrive lysol Linux - Software 25 08-03-2004 09:33 AM
Need to replace full harddrive with new, larger harddrive pearlr Linux - Newbie 1 01-02-2004 12:59 PM
How about a weekly tutorial? or just a tutorial Alinuxnoob LQ Suggestions & Feedback 2 04-09-2002 08:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration