Author

Topic: Format a hard drive / wipe out a hard drive (Ubuntu) (Read 1228 times)

full member
Activity: 182
Merit: 100
They say a thin line separates genius and madness.
I have worked on data recovery of hard drives for some time. And I can assure you that even you have a software that shreds the file or data there is always a way to retrieve that(in most cases half of the data is being recovered). so I recommend that you just replace the hard disk with a cheap one. and use your old hard disk as an external storage.
newbie
Activity: 37
Merit: 0
you never indicated how to correctly destroy the hard drive
full member
Activity: 182
Merit: 102
If you want the safest option just please just destroy your hard drive, there's always a possible way to retrieve the data.
full member
Activity: 378
Merit: 197

Even if you delete everything from your disk, and then write it full with random data etc.
It is still theoretically possible to restore your data. (Would be expensive though)

Because the write head of your disk wont write to the exact same place than it did on the previous time. There will be a very thin strip with the old data right next to the new data still there. (on the same "groove")

But would someone really want to spend lots of money and energy for restoring your data. They would have to be very sure that there is something valuable in there.

That is why companies do not give HD:s when they sell their old machines.

 
full member
Activity: 476
Merit: 101
You may try all the suggested command and application above to add level of security on the hard drive or storage device.

however, If you really wanted to make it sure that your data / privacy was still safe and no one can extract information from your storage device, the rule of thumbs was to replace your storage device before selling.

newbie
Activity: 5
Merit: 0
Encrypt the whole drive, then Secure-Erase with PartedMagic.
newbie
Activity: 37
Merit: 0
if its ssd, put parted magic on a cd, boot to it, and use internal secure erase to zap the drive to all 0's instantly
full member
Activity: 184
Merit: 101
I used Bitcoin on an old computer of mine using Ubuntu (16.04). Now I intend to sell the computer.
Because I had other sensitive information on this computer and also several altcoin wallets I like to format the hard
drive in order to wipe out all data before I sell the computer.

Is there an exhaustive way to delete every data in a way that it realistically can´t be restored?
Keep in mind that I run Ubuntu, so I´m not able to utilize Windows cleaner tools.

Maybe someone of you has enough Linux experience to help me out with this.



Faster and more secure one more like:
Quote
dd if=/dev/urandom of=/dev/sda bs=1M
This introduces a lot more fuzz to the overwriting pattern than zeros only, which should be more difficult to restore but not noticeably slower to perform.
Some people claim, this is not enough and one should overwrite hard disks multiple times and with more elaborate patterns, but most will say once is enough, if an attacker wants to restore more than a few bits with a significant chance.
legendary
Activity: 4354
Merit: 3614
what is this "brake pedal" you speak of?
What about doing a complete disk wipe and reinstall of the OS? It is more radical. Or perhaps creating a new user and deleting the old one.

http://www.dban.org/
In case you need to provide the same application profile you may use [dpkg --get-selections > list]

dban. it is a tried and true time tested utility. it will totally wipe the drive by overwriting every sector and can be set to do it multiple times.

just reinstalling the OS may not do it. same with just deleting an account.

dban is a bootable image, put it on CD or flash drive. make sure the disk you want to nuke is the ONLY disk attached.

newbie
Activity: 58
Merit: 0
what you are looking for is low level format. or factory format. i believe you can do that through your bios, im not sure since i have neer done it... but i do know there are software that will allow you to do this
sr. member
Activity: 528
Merit: 368
Thank you for the link. Is this superior to the suggestion provided by LeGaulois? I think re-installing the OS might be easier than
executing the guide you linked to. I admit that it´s probably easy for someone with deep Linux knowledge, but I would already fail
at the step where I need to identify the name of the hard disk  Grin

Yes, it is: If you only format your disk and reinstall the OS it will still be possible to recover at least some of your data. The same is true for deleting your user and creating a new one. Overwriting the contents of the disk even once prevents that for all practical purposes.
sr. member
Activity: 490
Merit: 389
Do not trust the government
Just overwrite the disk with random data few times. You can do this with "dd if=/dev/urandom of=/dev/sda" or whatever you disk is.
You will just need to run this from a live OS. So whichever way you installed Ubuntu, just choose the option Live instead of Install.
Or just download TailsOS and run the command.
sr. member
Activity: 658
Merit: 282
The shred command can do what you're looking for and is preinstalled on Ubuntu (and most other Linux distributions). Here is a guide from a thread on Ask Ubuntu.

Thank you for the link. Is this superior to the suggestion provided by LeGaulois? I think re-installing the OS might be easier than
executing the guide you linked to. I admit that it´s probably easy for someone with deep Linux knowledge, but I would already fail
at the step where I need to identify the name of the hard disk  Grin

What about doing a complete disk wipe and reinstall of the OS? It is more radical

http://www.dban.org/
In case you need to provide the same application profile you may use [dpkg --get-selections > list]

This seems like an easy and practical solution that might be secure enough. I will do this at the weekend, thank you for your help.
full member
Activity: 378
Merit: 197
You could also transfer all your coins to a new wallet (with new seed).
Then it would not matter if someone gains access to your old wallet.

The drawback is that you would have to pay a small transfer fee..
copper member
Activity: 2940
Merit: 4101
Top Crypto Casino
What about doing a complete disk wipe and reinstall of the OS? It is more radical. Or perhaps creating a new user and deleting the old one.

http://www.dban.org/
In case you need to provide the same application profile you may use [dpkg --get-selections > list]
sr. member
Activity: 528
Merit: 368
The shred command can do what you're looking for and is preinstalled on Ubuntu (and most other Linux distributions). Here is a guide from a thread on Ask Ubuntu.
sr. member
Activity: 658
Merit: 282
I would prefer to keep/destroy the hard disk. It is the easiest way to be absolutely sure.

This is what companies do when they get rid of their old computers.

However, if you empty your disk, and fill it with random data and repeat that a few times, it would be almost impossible to restore any of your data.

It depends. How much coins do you have in your wallet. If you have millions, then destroy the disk, if just a little bit, then it doesn't really matter. Does it?


I also thought of this proposition. However, as I said I intend to sell the computer, because it still is worth a few hundred $
(funds, that I could use to increase my BTC holdings!  Smiley ).

I used Electrum and therefore can recreate my wallet on another computer using the mmemonic seed. That means that I need to be absolutely sure
that my hard drive is wiped out, because otherwise the new owner could theoretically retrieve my wallet, if he is somehow able to recover the
Electrum installation.

This probably sounds paranoid, but I want to make really sure that the data can´t be recovered anymore.

Maybe I really have to accept the fact that I can´t sell it and instead make sure to destroy it physically.

Thank you for your reply, aplistir!
full member
Activity: 378
Merit: 197
I would prefer to keep/destroy the hard disk. It is the easiest way to be absolutely sure.

This is what companies do when they get rid of their old computers.

However, if you empty your disk, and fill it with random data and repeat that a few times, it would be almost impossible to restore any of your data.

It depends. How much coins do you have in your wallet. If you have millions, then destroy the disk, if just a little bit, then it doesn't really matter. Does it?
sr. member
Activity: 658
Merit: 282
I used Bitcoin on an old computer of mine using Ubuntu (16.04). Now I intend to sell the computer.
Because I had other sensitive information on this computer and also several altcoin wallets I like to format the hard
drive in order to wipe out all data before I sell the computer.

Is there an exhaustive way to delete every data in a way that it realistically can´t be restored?
Keep in mind that I run Ubuntu, so I´m not able to utilize Windows cleaner tools.

Maybe someone of you has enough Linux experience to help me out with this.

Jump to: