Guides › Drivers and hardware

Secure erase a drive

Wipe everything on a drive with the drive's own erase before you sell it, give it away or throw it out.

When you delete files or format a drive, the old data is often still there and special programs can bring it back. A secure erase asks the drive itself to wipe every part of it, including the spare areas that a normal format never touches. After a secure erase, no program can get your files back.

Use it before you sell, give away, send back or throw out a drive. You do it in the Disks app.

Warning A secure erase removes everything on the whole drive, for good. There is no Bin and no undo. Copy anything you want to keep to another drive first.

Before you start

  • You need an administrator's password. If your account is not an administrator, ask the person who is.
  • Secure erase works on whole drives. It works on NVMe drives (the small, fast drives that plug straight into the board) and on SATA drives (most other internal drives).
  • It does not work on the drive Sovereign OS is running from. To erase that drive, start Sovereign OS from a USB stick first. See Start from a USB stick.
  • It does not work on USB sticks, memory cards or drives in a USB case. Use Format in Disks for those.
  • It does not work on a drive that is part of a RAID array. Take it out of the array first. See Software RAID.
  • Keep the PC plugged in. Some erases take hours.

Erase a drive

  1. Open Disks. You can press Logo key + X and click Disks, or search for Disks in Start.
  2. On the left, click the drive you want to erase. Check the model and size at the top so you are sure it is the right one.
  3. Under Whole disk, click Secure erase. Disks asks the drive how it can be erased. This takes a moment.
  4. The window shows the drive's model, the last four characters of its serial number and its size. It also says how the drive will be erased and how long the drive says it takes. If the drive offers more than one way, you can pick one in the How list. The first one is a good choice.
  5. Click Next.
  6. Read the warning. It names the drive again. Type the drive's name exactly as shown (for example nvme0 or sata1) in the box. The Erase button only works when the name matches.
  7. Click Erase.
  8. The Allow this change? window opens. Pick an administrator and type their password, then click Yes. It asks every time, even if an administrator allowed something else a moment ago.
  9. Disks closes any volumes on the drive and starts the erase. A bar shows how far it is. Leave the PC on until it says Erased.
  10. Click OK. The drive is empty now, without partitions. To use it again, click Initialize as GPT and make a new partition.

If a volume on the drive is open in Files or another app, the erase does not start. Close the files and try again.

The ways a drive can erase itself

Which ways you see depends on the drive.

WayWhat the drive doesHow long
Sanitize, crypto eraseThrows away the secret key it uses to scramble everything it stores, so the data can never be read againSeconds
Sanitize, block eraseErases every block of its memory, including spare onesUsually minutes
Format with crypto eraseThrows away the key for this part of the driveSeconds
Format with secure eraseErases this part of the driveSeconds to minutes
Enhanced secure eraseErases everything, including spare and moved areas (SATA drives)Minutes to hours
Secure eraseErases every block programs can use (SATA drives)Minutes to hours

Some NVMe drives are split into parts called namespaces. A sanitize always erases every part of the drive. Disks tells you when the erase reaches more than the part you picked, and it refuses if any part holds the running system.

If the drive is frozen

Many PCs lock the security settings of SATA drives when they start. Disks then says the drive is frozen and does not erase it. To unfreeze it:

  1. Put the PC to sleep: open Start, click the power button at the bottom right of Start, then click Sleep.
  2. Wake the PC again.
  3. In Disks, click Check again.

If it is still frozen, and the drive can be unplugged safely while the PC runs, unplug its cable and plug it in again, then click Check again.

Stop waiting for a sanitize

During a sanitize, the window has a Stop waiting button. It only stops Disks from watching. The drive keeps erasing by itself and finishes even after a restart. You can't use the drive until it is done.

A SATA erase can't be stopped once it starts. Don't turn off the PC while it runs.

While any secure erase runs, the PC does not go to sleep, hibernate, shut down or restart. If you ask it to, a notice says so; try again once the erase has finished. If the battery runs almost empty during an erase, a notice asks you to plug in the charger, because losing power stops the erase. Only a part at a dangerous temperature can still turn the PC off. You can close Disks; the erase goes on.

If something goes wrong

  • "This drive has no secure erase that Sovereign OS can start." The drive or its connection does not offer one. Use Format in Disks instead, and know that a format does not reach the drive's spare areas.
  • "This drive holds the running system." You are running Sovereign OS from this drive. Start from a USB stick to erase it.
  • "The drive is locked with a password this PC doesn't know." Another computer set a drive password. Remove it on that computer first.
  • "The drive already has a password, set by another system." The same: remove the password on the computer that set it.
  • The PC lost power during a SATA erase. The drive may be locked when the PC starts again. Run Secure erase again: Disks unlocks the drive with the temporary password it set and erases it. The temporary password is SovereignOS erase, in case you need it in another tool.
  • "The drive is not the one you confirmed." The drive was unplugged, or another drive was plugged in where it was, after you looked at it. Nothing was erased. Click Secure erase again and check the drive.
  • "The format was cut short." The drive was reset during a format (for example after it stopped answering). It may be partly erased. Run Secure erase again.
  • "The drive reports an earlier sanitize, not this one." The drive did not show this sanitize running. Nothing was erased for certain; try again.
  • "The drive reported that the sanitize failed." Nothing was erased for certain. Try again, or pick the other way in the How list.

Good to know

  • Every secure erase is written to the Event Log under Storage, with the drive's model, serial number and who started it.
  • Secure erase has not yet been tried on real drives. It follows the NVMe and ATA standards and was tested against models of drives.

Still stuck? Search the help center or contact support.