tldr/pages/linux/blkdiscard.md

17 lines
407 B
Markdown
Raw Permalink Normal View History

2019-10-03 21:37:08 +01:00
# blkdiscard
> Discards device sectors on storage devices. Useful for SSDs.
> More information: <https://manned.org/blkdiscard>.
2019-10-03 21:37:08 +01:00
- 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 100 MB of a device:
2019-10-03 21:37:08 +01:00
`blkdiscard --length {{100MB}} /dev/{{device}}`