Choose style:

Author Topic: SSD wiping  (Read 2846 times)

0 Members and 1 Guest are viewing this topic.

Offline cavy

  • Trusted User
  • Member
  • *****
  • Posts: 420
  • Karma: 55
  • Caveman
    • View Profile
    • PeppermentOS Pixies
  • Peppermint version(s): Peppermint Eight
SSD wiping
« on: March 23, 2017, 09:33:02 am »
I came across these instructions for wiping SSD & HDD, (Arch site) are they viable or a safe method.   :-\  I can afford to muller a USB and not lose too much sleep, but a SSD is another matter.   ::)

Code: [Select]
SECURELY WIPE SSD DRIVE
dd if=/dev/urandom of=/dev/sda iflag=nocache oflag=direct bs=4096 @ 8hrs for 500Gb SSD

and

Code: [Select]
SECURELY WIPE HARDDRIVE
dd if=/dev/urandom of=/dev/hda

PARANOID
!/bin/bash
for n in `seq 7`; do dd if=/dev/urandom of=/dev/sda bs=8b conv=notrunc;
done

# chmod a+x wipeIt
sh wipeIt`

Both are a single step method, I was intrigued as it is mirrors the first step of a six step method I use to erase and format a USB stick.    ;)

Quote
1. sudo dd if=/dev/zero of=/dev/sdc bs=4M iflag=nocache oflag=direct

2. UNPLUG/EJECT USB then re-insert for step two

3. sudo parted /dev/sdc (to check true size of USB, i.e 2102Gb or 4027Gb etc)

4. sudo parted /dev/sdc mklabel msdos

5. sudo parted -a none /dev/sdc mkpart  primary fat32 0 2102 *true-size*

6. sudo mkfs.vfat -n "Disk" /dev/sdc1

The other method was shred, sounds like brute force, so not considering it...!    ???
« Last Edit: March 23, 2017, 09:36:56 am by cavy »
“We know what we are, but not what we may be.”

Desktop Dell 7040 i7-6700 500Gb-SSD 32Gb ram
Laptop    Dell 7470 i5-6300 500Gb-SSD  16Gb ram
Various antiques to sample other OS's etc

Offline zebedeeboss

  • Global Moderator
  • Hero
  • *****
  • Posts: 3145
  • Karma: 567
  • Life first... Peppermint a close 2nd :)
    • View Profile
  • Peppermint version(s): P10 / P9 Respin
Re: SSD wiping
« Reply #1 on: March 23, 2017, 09:53:36 am »
Hi cavy,

whats the reason behind wanting to "wipe" the disks ?

Regards Zeb...
Be Kind Whenever Possible...   It is Always Possible - Dalai Lama

Linux User #565092
P10 x64 Desktop - AMD Threadrippe 2950X - 64Gb RAM - NVIDIA RTX2080Ti 11Gb - 1 x 43" 1 x 27" 4k 3840x2160 - 1 x 34" 5120x2160
P10 x64 Laptop - i7-7700HQ - 8Gb RAM - Nvidia GTX1050 4Gb - 15.6" HD 1920x1080

Offline cavy

  • Trusted User
  • Member
  • *****
  • Posts: 420
  • Karma: 55
  • Caveman
    • View Profile
    • PeppermentOS Pixies
  • Peppermint version(s): Peppermint Eight
Re: SSD wiping
« Reply #2 on: March 23, 2017, 10:07:34 am »
Hi Zeb,

Usually I use Gparted to delete all partitions, then install new OS. As I have a had few different OS'es on the same disk, thought it may be time for a clean start.   ;)

The dd process I use to clean my USBsticks does seem to make a difference, especially after erasing a bootable OS image.   :D
“We know what we are, but not what we may be.”

Desktop Dell 7040 i7-6700 500Gb-SSD 32Gb ram
Laptop    Dell 7470 i5-6300 500Gb-SSD  16Gb ram
Various antiques to sample other OS's etc

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26325
  • Karma: 2855
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: SSD wiping
« Reply #3 on: March 23, 2017, 10:28:42 am »
They are for "secure" wipes, where every sector is overwritten with random gibberish (or zero's in your 6 step instructions) .. in fact it's not a "wipe" at all, more an overwrite.

If this is purely for a reinstall, so it's not necessary to make sure a forensic examination of the drive is defeated, then they are a bit over the top .. just use Gparted to either delete the partitions or create a new partition table.

Because of the way SSD's store data (non-magnetically), I don't think it would ever be necessary to overwrite with 8 passes as in the "PARANOID" section of one of your scripts.
« Last Edit: March 23, 2017, 10:35:21 am by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline zebedeeboss

  • Global Moderator
  • Hero
  • *****
  • Posts: 3145
  • Karma: 567
  • Life first... Peppermint a close 2nd :)
    • View Profile
  • Peppermint version(s): P10 / P9 Respin
Re: SSD wiping
« Reply #4 on: March 23, 2017, 11:10:56 am »
Hi cavy,

It would be no exaggeration to say I have carried out well over 100 installs on my two SSD's (both less than 2 yrs old) and they still work perfectly :)  Disks are built to be written on and written over many many times in their lifetime.

So carry on with gparted as PCNetSpec said

Regards Zeb...
Be Kind Whenever Possible...   It is Always Possible - Dalai Lama

Linux User #565092
P10 x64 Desktop - AMD Threadrippe 2950X - 64Gb RAM - NVIDIA RTX2080Ti 11Gb - 1 x 43" 1 x 27" 4k 3840x2160 - 1 x 34" 5120x2160
P10 x64 Laptop - i7-7700HQ - 8Gb RAM - Nvidia GTX1050 4Gb - 15.6" HD 1920x1080

Offline cavy

  • Trusted User
  • Member
  • *****
  • Posts: 420
  • Karma: 55
  • Caveman
    • View Profile
    • PeppermentOS Pixies
  • Peppermint version(s): Peppermint Eight
Re: SSD wiping
« Reply #5 on: March 23, 2017, 11:55:55 am »
Okay cheers guys, so they're a bit OTT for normal use.   8)

Really aimed at the James Bond, type, or when you are getting rid of an old machine.   ::)
“We know what we are, but not what we may be.”

Desktop Dell 7040 i7-6700 500Gb-SSD 32Gb ram
Laptop    Dell 7470 i5-6300 500Gb-SSD  16Gb ram
Various antiques to sample other OS's etc

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26325
  • Karma: 2855
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: SSD wiping
« Reply #6 on: March 23, 2017, 12:24:27 pm »
Okay cheers guys, so they're a bit OTT for normal use.   8)

Really aimed at the James Bond, type, or when you are getting rid of an old machine.   ::)

               {Hi, my name is Zac T. Ly}
                                   /
Egg ZacTLy  -->  :)
« Last Edit: March 23, 2017, 12:26:46 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline VinDSL

  • Global Moderator
  • Hero
  • *****
  • Posts: 5454
  • Karma: 957
  • Peppermint Mod
    • View Profile
  • Peppermint version(s): Developmental Builds
Re: SSD wiping
« Reply #7 on: March 23, 2017, 08:44:58 pm »
I came across these instructions for wiping SSD & HDD, (Arch site) are they viable or a safe method. 

Current trend for securely wiping a SSD is :  Encrypt ... Reformat ... Encrypt again ... Done !   ;)

Offline VinDSL

  • Global Moderator
  • Hero
  • *****
  • Posts: 5454
  • Karma: 957
  • Peppermint Mod
    • View Profile
  • Peppermint version(s): Developmental Builds
Re: SSD wiping
« Reply #8 on: March 23, 2017, 09:12:42 pm »
Here ya go:  https://goo.gl/3p2F9H   8)

Offline cavy

  • Trusted User
  • Member
  • *****
  • Posts: 420
  • Karma: 55
  • Caveman
    • View Profile
    • PeppermentOS Pixies
  • Peppermint version(s): Peppermint Eight
Re: SSD wiping
« Reply #9 on: March 24, 2017, 06:55:36 am »
Quote
Current trend for securely wiping a SSD is :  Encrypt ... Reformat ... Encrypt again ... Done !   ;)

Thanks VinDSL   :D

I have a iDsonix (USB3) dual bay 2.5/3.5 SSD/Hard-drive docking system, I use for remote encrypted storage, now cloning.   8)

Caveat, target drive must be larger than donor, quoted time for a 500Gb drive being 4 hours.   :)

My test drive (120Gb), containing OS and saved files, 25Gb in total was cloned in @ 15mins. Change computer or username to suit. Worked..!    :-*

Have deleted a SSD through the iDsonix, using Gparted, maybe an allusion, always seems to have a crisper performance afterwards.    8)

Using your suggested method I could remotely encrypt a drive via Gnome Disk Utility, then reformat via Gparted  and finally encrypt again.    8)

And save a shed load of dosh,     ;)  all $283.99.    ;)

cheers cavy  :D
“We know what we are, but not what we may be.”

Desktop Dell 7040 i7-6700 500Gb-SSD 32Gb ram
Laptop    Dell 7470 i5-6300 500Gb-SSD  16Gb ram
Various antiques to sample other OS's etc

Offline VinDSL

  • Global Moderator
  • Hero
  • *****
  • Posts: 5454
  • Karma: 957
  • Peppermint Mod
    • View Profile
  • Peppermint version(s): Developmental Builds
Re: SSD wiping
« Reply #10 on: March 24, 2017, 07:09:29 am »
Yeah, with a HDD, it pretty easy to securely wipe them with a hammer and a drill, but that method doesn't work with SSDs.   Those damn little chips will still retain the data.

Wash, rinse and repeat with encryption and nobody will be able to suck info off of the drive - or so the theory goes ...   ;)

Offline ttooaatt

  • nOOb
  • *
  • Posts: 5
  • Karma: 1
  • New Forum User
    • View Profile
  • Peppermint version(s): 7
Re: SSD wiping
« Reply #11 on: June 05, 2017, 10:34:06 pm »
Hi all

Am going to install Peppermint 8 here soon and was wondering what thoughts you may have using hdparm and doing a low-level format of SSD as opposed to methods mentioned in the thread. Thank you in advance for your help.

Chris

Offline murraymint

  • Trusted User
  • Veteran
  • *****
  • Posts: 2002
  • Karma: 344
  • soft boiled with a yolk of gold
    • View Profile
  • Peppermint version(s): 7, 8, 9
Re: SSD wiping
« Reply #12 on: June 05, 2017, 10:39:13 pm »
Yes, I've done it that way and it was fine. I can't comment on how technically secure an erase it is, but it's very fast.

https://ata.wiki.kernel.org/index.php/ATA_Secure_Erase

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26325
  • Karma: 2855
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: SSD wiping
« Reply #13 on: June 06, 2017, 08:04:02 am »
HEED THE WARNINGS at murraymints link .. not all SSD's support ATA Secure Erase properly and in some rare instances it can render the SSD unusable .. I'd visit your SSD manufacturers website and see what they say (and tools they offer/suggest).
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline pin

  • Trusted User
  • Veteran
  • *****
  • Posts: 1837
  • Karma: 258
    • View Profile
Re: SSD wiping
« Reply #14 on: June 08, 2017, 12:32:30 am »
For HDD's there's Derik's boot and nuke... that's like what the US army uses 😁!  For SSD's they have Blancco. Blancco is not for free, but they do offer a try.

Skickat från min SM-G900F via Tapatalk