Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
What do I have to do before giving away my Ubuntu machine?
How to delete file(s) in secure manner?

I intend to sell my laptop and therefor I am looking for some solution to my problem. How to get rid of all date in a secure manner? And as well the files which were deleted in the past are throughout some software still accessible. My disc has couple partitions. I don't want others to read my emails, see my photos etc. What is the best way?

share|improve this question

marked as duplicate by Jjed, jokerdino, fossfreedom, htorque, Takkat Jan 28 '12 at 10:58

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Personally I would boot a live CD and wipe the hard drive with scrub

sudo apt-get install scrub
sudo scrub -p dod -f  /dev/sda

See man scrub

You could use other tools such as dd

sudo dd if=/dev/zero of=/dev/sda bs=1M


Then re-install Ubuntu. If you wish you can perform a OEM install

How to make an OEM Install?

share|improve this answer

SHIFT + DELETE erase the file without using Trash, from command line: shred file

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.