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.
|
|
You normally have all your private data in /home, especially browser cache and so on. You might have private internet-settings in /etc/Network-Manager. Visit /etc, and look into the directories. Reconfigure your things, delete private data (WLAN key), see if everything is vanished. If not, remove by hand. mc (midnight commander) is a useful tool to iterate through directories, to view and delete files. (shred, see bottom). Another directory with private Data might be /var/spool or /var/cache. For example the cups-printer-spooler produces summaries of printjobs, and document name, date of job can be reconstructed. Maybe you wish to clean them too. Those files in /tmp get automatically deleted on every startup. So if you didn't reorganized things, which only you may know,
If you consider to clean empty space (@intuiteds second advice, maybe we should donate a star?), It would be more easy to use a live-cd to shred the whole system (which can continue unattended) and then install a new one (needs about 45 minutes with few interactions, mostly in the beginning). This could be in general the faster solution. More than one schred-iteration is nonsense. |
|||||||||||||||||
|
|
Your safest option is to use something like DBAN to securely wipe the disk and then reinstall from scratch. If you want to provide the same application profile to the recipient, you can use The tool |
||||
|
|
In my opinion, doing a complete disk wipe and reinstall of the OS is easier, less time-consuming, and more likely to erase everything that you wanted to erase. True, wiping the whole disk will take a long time, but you can go do something else while you wait. Removing specific packages and files from the existing OS is an involved process that requires lots of thinking and leaves lots of room for error. A complete reinstall accomplishes the same thing, only more effectively and with less work on your part. |
|||
|
|
|
In complement to very good advice already given: If you have been running local servers for development purposes, such as apache2, mysql, etc. I would advise to remove them using the "purge" option (it destroys conf files), be sure to remove the data and log directories and files (such as found in /var/log/ and /var/www/ or /var/lib/xxxx/ by default but in other places of your choice in you made a custom config) and then reinstall them with their default settings if needed by the new user. Another advice for paranoid/clean people is to regenerate a new ssh server host key for the machine.
so that it is no more considered as a known host by others. |
|||
|
|
|
There are varying levels of security. Personally, I play it a little more paranoid. I wouldn't give away a hard drive if I've stored sensitive info on it. It might be worth it to you to just buy a new hard drive and install Ubuntu on it for whoever you're giving this to. If you aren't this paranoid, or your data isn't that sensitive, see user unknown's post. |
|||||
|
|
Run Bleachbit. http://bleachbit.sourceforge.net/ This way you may choose exactly what you want to remove without using some complicated command lines. |
|||
|
|
|
I personally use any method methods to wipe the drive
Or DBAN or scrub (again from a live CD)
You can the do an OEM install |
|||
|
|
If the data is not very important, you can create a new user and delete the old one. |
||||
|
|