TransWikia.com

How to quickly wipe a disk?

Unix & Linux Asked by tomwassing on November 14, 2021

How can I quickly wipe a disk (filesystem/partitions) without overwriting all content with random data? For example shred could accomplish what I want but takes to much time.

4 Answers

ATA Secure Erase is available on non-SSD drives, too. See https://askubuntu.com/questions/42266/what-is-the-recommended-way-to-empty-a-ssd on how to request the operation.

Answered by Hermann on November 14, 2021

The fastest (and also the safest) is to encrypt the whole disk when it is new. Then, to erase, just erase the encryption key. Done in half a second, unfeasible to recover any data.

Answered by ImHere on November 14, 2021

A really quick and easy option for magnetic disks is a degaussing bulk eraser. 20 seconds and your data is gone forever.

Answered by roaima on November 14, 2021

If you don't care about actually destroying the data on the disk, you can probably do something like dd if=/dev/urandom of=/dev/sdc bs=1M count=2 to fry the first couple of megabytes (which would include the MBR and partition table).

Be super-duper sure about which block device you point at as there are no taksey-backsies on this command

Answered by DopeGhoti on November 14, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP