Bitcoin Forum
May 04, 2024, 01:42:44 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Format a hard drive / wipe out a hard drive (Ubuntu)  (Read 1206 times)
Samarkand (OP)
Sr. Member
****
Offline Offline

Activity: 658
Merit: 282


View Profile
September 07, 2017, 10:21:56 AM
Merited by ABCbits (1)
 #1

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.

1714830164
Hero Member
*
Offline Offline

Posts: 1714830164

View Profile Personal Message (Offline)

Ignore
1714830164
Reply with quote  #2

1714830164
Report to moderator
1714830164
Hero Member
*
Offline Offline

Posts: 1714830164

View Profile Personal Message (Offline)

Ignore
1714830164
Reply with quote  #2

1714830164
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714830164
Hero Member
*
Offline Offline

Posts: 1714830164

View Profile Personal Message (Offline)

Ignore
1714830164
Reply with quote  #2

1714830164
Report to moderator
aplistir
Full Member
***
Offline Offline

Activity: 378
Merit: 197



View Profile
September 07, 2017, 10:33:21 AM
Merited by ABCbits (1)
 #2

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?

My Address: 121f7zb2U4g9iM4MiJTDhEzqeZGHzq5wLh
Samarkand (OP)
Sr. Member
****
Offline Offline

Activity: 658
Merit: 282


View Profile
September 07, 2017, 10:51:29 AM
 #3

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!
devans
Sr. Member
****
Offline Offline

Activity: 528
Merit: 368


View Profile
September 07, 2017, 02:53:07 PM
Merited by ABCbits (1)
 #4

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.
LeGaulois
Copper Member
Legendary
*
Offline Offline

Activity: 2870
Merit: 4095


Top Crypto Casino


View Profile
September 07, 2017, 04:05:06 PM
 #5

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]

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
aplistir
Full Member
***
Offline Offline

Activity: 378
Merit: 197



View Profile
September 07, 2017, 05:32:46 PM
 #6

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..

My Address: 121f7zb2U4g9iM4MiJTDhEzqeZGHzq5wLh
Samarkand (OP)
Sr. Member
****
Offline Offline

Activity: 658
Merit: 282


View Profile
September 08, 2017, 08:30:50 AM
 #7

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.
aleksej996
Sr. Member
****
Offline Offline

Activity: 490
Merit: 389


Do not trust the government


View Profile
September 08, 2017, 09:24:41 AM
 #8

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.
devans
Sr. Member
****
Offline Offline

Activity: 528
Merit: 368


View Profile
September 09, 2017, 05:38:27 AM
 #9

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.
argamemnon
Newbie
*
Offline Offline

Activity: 58
Merit: 0


View Profile WWW
September 10, 2017, 02:11:32 PM
 #10

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
vapourminer
Legendary
*
Offline Offline

Activity: 4326
Merit: 3519


what is this "brake pedal" you speak of?


View Profile
September 10, 2017, 07:23:38 PM
Last edit: September 10, 2017, 07:43:06 PM by vapourminer
 #11

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.

mensa84
Full Member
***
Offline Offline

Activity: 184
Merit: 101



View Profile
September 10, 2017, 08:21:43 PM
 #12

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.

   ⚡⚡ PRiVCY ⚡⚡   ▂▃▅▆█ PRiVCY (PRIV) is a new PoW/PoS revolutionary privacy project  ☞ Best privacy crypto-market! █▆▅▃▂
    Own Your Privacy! ───────────────── WebsiteGithub  |  Bitcointalk  |  Twitter  |  Discord  |  Explorer ─────────────────
   ✯✯✯✯✯                 ✈✈✈[Free Airdrop - Starts 9th June][Tor]✈✈✈ ║───────────║ Wallet ➢ Windows  |  macOS  |  Linux
SilentNightElf
Newbie
*
Offline Offline

Activity: 37
Merit: 0


View Profile
September 11, 2017, 06:42:22 AM
 #13

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
Venidici
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
September 11, 2017, 07:32:37 AM
 #14

Encrypt the whole drive, then Secure-Erase with PartedMagic.
romecheo
Full Member
***
Offline Offline

Activity: 476
Merit: 101



View Profile
September 11, 2017, 10:49:52 AM
 #15

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.


▀▀████████████████▄▄         H A V E N      /      HOLD HAVEN. EARN BNB!         ▄▄████████████████▀▀
Community Driven DeFi Project Built on BSC
|    Whitepaper    |      Telegram      |       Twitter       |      [ SafeHaven.Finance ]      |     Instagram     |        Reddit        |      YouTube      |
aplistir
Full Member
***
Offline Offline

Activity: 378
Merit: 197



View Profile
September 11, 2017, 11:24:25 AM
 #16


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.

 

My Address: 121f7zb2U4g9iM4MiJTDhEzqeZGHzq5wLh
aroweyen
Full Member
***
Offline Offline

Activity: 182
Merit: 102



View Profile
September 11, 2017, 12:10:46 PM
 #17

If you want the safest option just please just destroy your hard drive, there's always a possible way to retrieve the data.
SilentNightElf
Newbie
*
Offline Offline

Activity: 37
Merit: 0


View Profile
September 12, 2017, 01:44:52 AM
 #18

you never indicated how to correctly destroy the hard drive
TanyaDegurechaff
Full Member
***
Offline Offline

Activity: 182
Merit: 100


They say a thin line separates genius and madness.


View Profile
September 12, 2017, 04:55:54 AM
 #19

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.

"Miracles are illusions caused by insufficient observation and understanding. They're just... glorious misunderstandings."
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!