mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-06 18:56:54 +00:00
Update cheatsheets
This commit is contained in:
@@ -10,28 +10,28 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Check a btrfs filesystem:
|
||||
|
||||
`sudo btrfs check {{path/to/partition}}`
|
||||
`sudo btrfs {{[c|check]}} {{path/to/partition}}`
|
||||
|
||||
- Check and repair a btrfs filesystem (dangerous):
|
||||
|
||||
`sudo btrfs check --repair {{path/to/partition}}`
|
||||
`sudo btrfs {{[c|check]}} --repair {{path/to/partition}}`
|
||||
|
||||
- Show the progress of the check:
|
||||
|
||||
`sudo btrfs check {{[-p|--progress]}} {{path/to/partition}}`
|
||||
`sudo btrfs {{[c|check]}} {{[-p|--progress]}} {{path/to/partition}}`
|
||||
|
||||
- Verify the checksum of each data block (if the filesystem is good):
|
||||
|
||||
`sudo btrfs check --check-data-csum {{path/to/partition}}`
|
||||
`sudo btrfs {{[c|check]}} --check-data-csum {{path/to/partition}}`
|
||||
|
||||
- Use the `n`-th superblock (`n` can be 0, 1 or 2):
|
||||
|
||||
`sudo btrfs check {{[-s|--super]}} {{n}} {{path/to/partition}}`
|
||||
`sudo btrfs {{[c|check]}} {{[-s|--super]}} {{n}} {{path/to/partition}}`
|
||||
|
||||
- Rebuild the checksum tree:
|
||||
|
||||
`sudo btrfs check --repair --init-csum-tree {{path/to/partition}}`
|
||||
`sudo btrfs {{[c|check]}} --repair --init-csum-tree {{path/to/partition}}`
|
||||
|
||||
- Rebuild the extent tree:
|
||||
|
||||
`sudo btrfs check --repair --init-extent-tree {{path/to/partition}}`
|
||||
`sudo btrfs {{[c|check]}} --repair --init-extent-tree {{path/to/partition}}`
|
||||
|
||||
Reference in New Issue
Block a user