• Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

Securely erasing old SSD - Ubuntu

Joined
Sep 14, 2006
Messages
665 (0.10/day)
Location
QLD, Australia
Processor Ryzen 9 7950X3D
Motherboard Asus ROG X670E GENE MATX
Cooling Phanteks Glacier One 280MPH AIO
Memory G.Skill 48GB (2x24GB) F5-8000J4048F24GX2-TZ5RK Trident Z5 RGB 8000MHz DDR5
Video Card(s) ASUS TUF Gaming Radeon RX 7900 XTX OC Edition 24GB GDDR6
Storage Crucial T700 Gen5 2TB NVMe | Crucial P5 Plus Gen4 2TB NVMe | Crucial P5 Plus Gen4 1TB NVMe
Display(s) AOC U3277PWQU 32in 4K
Case Phanteks Enthoo Evolv mATX TG
Audio Device(s) Onboard SPDIF --> Logitech Z-5500
Power Supply Seasonic ATX 3.0 VERTEX-GX-1000
Mouse Razer Mamba Chroma
Keyboard Razer Cynosa V2 Chroma
Software W11 Pro 64 bit
Very inexperienced with Linux and have been playing around lately with Ubuntu 17.10 successfully recovering data from a bad HDD, quite impressed by it also.

First question is. I have an old OCZ Vertex 3 120GB that has been lying around forever and want to wipe it to factory settings and install Ubuntu on it (so I don't need to run Windows side by side on my current OS drive). I'm assuming the easiest way to do this is to do the following?
  1. Boot Ubuntu from USB installer
  2. Select 'Try Ubuntu before you install it'
  3. Open the Terminal and
  4. Use the Command-line to Simple Secure Erase i.e. hdparm --security-erase PASS /dev/sdX
My second question is, if the above will work do I then need to format the entire SSD in ext4 or does the installer by default format/partition the SSD when 'Erase disk and install Ubuntu' is selected?

25d1eb9e8b23d55b.jpg
 

Aquinus

Resident Wat-man
Joined
Jan 28, 2012
Messages
13,147 (2.93/day)
Location
Concord, NH, USA
System Name Apollo
Processor Intel Core i9 9880H
Motherboard Some proprietary Apple thing.
Memory 64GB DDR4-2667
Video Card(s) AMD Radeon Pro 5600M, 8GB HBM2
Storage 1TB Apple NVMe, 4TB External
Display(s) Laptop @ 3072x1920 + 2x LG 5k Ultrafine TB3 displays
Case MacBook Pro (16", 2019)
Audio Device(s) AirPods Pro, Sennheiser HD 380s w/ FIIO Alpen 2, or Logitech 2.1 Speakers
Power Supply 96w Power Adapter
Mouse Logitech MX Master 3
Keyboard Logitech G915, GL Clicky
Software MacOS 12.1
The installer will automatically partition the disk. It will probably make a swap partition the size of physical memory then use the rest of the space for "/" with ext4. That's what it does out of the box, more or less iirc. If you want something else, you need to tell it or you need to configure it before or afterwards (if it's not your boot device.) This formats the drive but, it does not zero it out beforehand. For someone booting from a software RAID, this will usually be customized to first mount "/boot" from a non-RAID device to load the kernel and driver into memory before mounting "/", stuff like that but, that's not important in most cases.
 
Joined
Sep 14, 2006
Messages
665 (0.10/day)
Location
QLD, Australia
Processor Ryzen 9 7950X3D
Motherboard Asus ROG X670E GENE MATX
Cooling Phanteks Glacier One 280MPH AIO
Memory G.Skill 48GB (2x24GB) F5-8000J4048F24GX2-TZ5RK Trident Z5 RGB 8000MHz DDR5
Video Card(s) ASUS TUF Gaming Radeon RX 7900 XTX OC Edition 24GB GDDR6
Storage Crucial T700 Gen5 2TB NVMe | Crucial P5 Plus Gen4 2TB NVMe | Crucial P5 Plus Gen4 1TB NVMe
Display(s) AOC U3277PWQU 32in 4K
Case Phanteks Enthoo Evolv mATX TG
Audio Device(s) Onboard SPDIF --> Logitech Z-5500
Power Supply Seasonic ATX 3.0 VERTEX-GX-1000
Mouse Razer Mamba Chroma
Keyboard Razer Cynosa V2 Chroma
Software W11 Pro 64 bit
Thanks for the response. Good to go then :toast:
 
Joined
Jan 17, 2010
Messages
12,286 (2.35/day)
Location
Oregon
System Name Juliette // HTPC
Processor Intel i7 9700K // AMD Ryzen 5 5600G
Motherboard ASUS Prime Z390X-A // ASRock B550 ITX-AC
Cooling Noctua NH-U12 Black // Stock
Memory Corsair DDR4 3600 32gb //G.SKILL Trident Z Royal Series 16GB (2 x 8GB) 3600
Video Card(s) ASUS RTX4070 OC// GTX 1650
Storage Samsung 970 EVO NVMe 1Tb, Intel 665p Series M.2 2280 1TB // Samsung 1Tb SSD
Display(s) ASUS VP348QGL 34" Quad HD 3440 x 1440 // 55" LG 4K SK8000 Series
Case Seasonic SYNCRO Q7// Silverstone Granada GD05
Audio Device(s) Focusrite Scarlett 4i4 // HDMI to Samsung HW-R650 sound bar
Power Supply Seasonic SYNCRO 750 W // CORSAIR Vengeance 650M
Mouse Cooler Master MM710 53G
Keyboard Logitech 920-009300 G512 SE
Software Windows 10 Pro // Windows 10 Pro

Aquinus

Resident Wat-man
Joined
Jan 28, 2012
Messages
13,147 (2.93/day)
Location
Concord, NH, USA
System Name Apollo
Processor Intel Core i9 9880H
Motherboard Some proprietary Apple thing.
Memory 64GB DDR4-2667
Video Card(s) AMD Radeon Pro 5600M, 8GB HBM2
Storage 1TB Apple NVMe, 4TB External
Display(s) Laptop @ 3072x1920 + 2x LG 5k Ultrafine TB3 displays
Case MacBook Pro (16", 2019)
Audio Device(s) AirPods Pro, Sennheiser HD 380s w/ FIIO Alpen 2, or Logitech 2.1 Speakers
Power Supply 96w Power Adapter
Mouse Logitech MX Master 3
Keyboard Logitech G915, GL Clicky
Software MacOS 12.1
To secure erase an SSD you need to use the manufactures utility
To secure erase just about anything in Linux by doing something like "sudo dd bs=1M if=/dev/zero of=/dev/sdX" where X is the number of the block device for your drive.
 

renegat

New Member
Joined
Feb 26, 2018
Messages
1 (0.00/day)
'Secure erase' in case of a SSD should never be done by zeroing!
Do not use ubuntu installer 'secure erase' or 'dd' on a SSD.
This is a tourture for the flash cells and massivly shortens life of the device.
One way is to use the provided tool of the manufacturer - which in most cases only works with windows.
The other way is to use hdparm under linux.
Secure Erase aka "memory cell clearing" of a SSD is done by just deleting the internal encyption key and gererating an new one so the formerly data cannot be read anymore. This is not done by the ubuntu installer!
 

qubit

Overclocked quantum bit
Joined
Dec 6, 2007
Messages
17,865 (2.98/day)
Location
Quantum Well UK
System Name Quantumville™
Processor Intel Core i7-2700K @ 4GHz
Motherboard Asus P8Z68-V PRO/GEN3
Cooling Noctua NH-D14
Memory 16GB (2 x 8GB Corsair Vengeance Black DDR3 PC3-12800 C9 1600MHz)
Video Card(s) MSI RTX 2080 SUPER Gaming X Trio
Storage Samsung 850 Pro 256GB | WD Black 4TB | WD Blue 6TB
Display(s) ASUS ROG Strix XG27UQR (4K, 144Hz, G-SYNC compatible) | Asus MG28UQ (4K, 60Hz, FreeSync compatible)
Case Cooler Master HAF 922
Audio Device(s) Creative Sound Blaster X-Fi Fatal1ty PCIe
Power Supply Corsair AX1600i
Mouse Microsoft Intellimouse Pro - Black Shadow
Keyboard Yes
Software Windows 10 Pro 64-bit
SSDs work completely differently to HDDs, so all you need to do to securely erase them is a full format, ie writes to every sector.
 
Joined
Sep 14, 2006
Messages
665 (0.10/day)
Location
QLD, Australia
Processor Ryzen 9 7950X3D
Motherboard Asus ROG X670E GENE MATX
Cooling Phanteks Glacier One 280MPH AIO
Memory G.Skill 48GB (2x24GB) F5-8000J4048F24GX2-TZ5RK Trident Z5 RGB 8000MHz DDR5
Video Card(s) ASUS TUF Gaming Radeon RX 7900 XTX OC Edition 24GB GDDR6
Storage Crucial T700 Gen5 2TB NVMe | Crucial P5 Plus Gen4 2TB NVMe | Crucial P5 Plus Gen4 1TB NVMe
Display(s) AOC U3277PWQU 32in 4K
Case Phanteks Enthoo Evolv mATX TG
Audio Device(s) Onboard SPDIF --> Logitech Z-5500
Power Supply Seasonic ATX 3.0 VERTEX-GX-1000
Mouse Razer Mamba Chroma
Keyboard Razer Cynosa V2 Chroma
Software W11 Pro 64 bit
All good, well took some trial and error. SSD was reported frozen, unlocked by enabling hot plugging, secure erased SSD then used gparted, installed Ubuntu 17.10 without any issues. Thanks guys.
 
Top