mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 00:22:09 +02:00
blkdiscard: add page (#3292)
This commit is contained in:
parent
cb3dde8502
commit
43be99e963
1 changed files with 15 additions and 0 deletions
15
pages/linux/blkdiscard.md
Normal file
15
pages/linux/blkdiscard.md
Normal file
|
@ -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}}`
|
Loading…
Add table
Reference in a new issue