Skip to content

Instantly share code, notes, and snippets.

@FoxNeo
Created September 11, 2021 16:09
Show Gist options
  • Select an option

  • Save FoxNeo/ffe8e8271ec935db48cbb15eb244c4aa to your computer and use it in GitHub Desktop.

Select an option

Save FoxNeo/ffe8e8271ec935db48cbb15eb244c4aa to your computer and use it in GitHub Desktop.

Format SSD correct all sectors

Use the program blkdiscard

How to use blkdiscard

Find first the absolut path to the SSD for example /dev/sda3

$ sudo fdisk -l

Then use blkdiscard to delete all sectors in SSD

$ sudo blkdiscard /dev/sda3

Manual Pages: https://man7.org/linux/man-pages/man8/blkdiscard.8.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment