I have an old laptop that is running Ubuntu. Now I want to give away this laptop, but I want to remove all private data. So what should I remove? I don't want to format the whole system, because the OS will be still in use by the new owner.
3 Answers
Like it was said in the comments above, the only sure way of making sure that none of your private info is on the disk is to simply reinstall Ubuntu. It will take a whole 20ish minutes but it's well worth it.
It's also not just the issue of hiding the information from the person who receives the laptop, but the possibility of the computer being rooted and your information being stolen. Like it was said, simply reinstall Ubuntu.
If you're EXTRA paranoid, you can format the drive and run a disk wiping utility (think Data Dump), then reinstalling Ubuntu.
- 16,982
If(!) you only stored your stuff inside your home directory, then delete it and you're done:
- create an account with admin rights: newOwner
- login as newOwner
- delete /home/yourOldAccount
This is not only a quick solution but an insecure one too. Even the deleted files are recoverable by the new owner.
Recommendation: Follow Moab's comment.
You still have the option of deleting the homes of the current users and then securely erase the free space. There are many utilities that can do this under Linux, e.g. scrub. Since Lucid it is included in the Ubuntu repository, so all you have to is install it using Synaptic.
You should also delete old/archived system logs (can be found in /var/log), and check the root account (even if it's only been used for administration).
In my opinion securely erasing the disk and then reinstalling the OS is the best choice.
- 750