1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 14:42:07 +02:00
tldr/pages/linux/blkdiscard.md
2024-06-11 10:17:57 +05:30

407 B

blkdiscard

Discards device sectors on storage devices. Useful for SSDs. More information: https://manned.org/blkdiscard.

  • 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:

blkdiscard --length {{100MB}} {{/dev/device}}