diff --git a/pages/linux/blkdiscard.md b/pages/linux/blkdiscard.md new file mode 100644 index 0000000000..aef677e046 --- /dev/null +++ b/pages/linux/blkdiscard.md @@ -0,0 +1,15 @@ +# blkdiscard + +> Discards device sectors on storage devices. Useful for SSDs. + +- Discard all sectors on a device, removing all data: + +`blkdiscard /dev/{{device}}` + +- Securely discard all blocks on a device, removing all data: + +`blkdiscard --secure /dev/{{device}}` + +- Discard the first 100MB of a device: + +`blkdiscard --length {{100MB}} /dev/{{device}}`