mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-28 22:24:55 +02:00
15 lines
353 B
Markdown
15 lines
353 B
Markdown
# 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}}`
|