Update cheatsheets

This commit is contained in:
ivuorinen
2025-11-01 00:21:57 +00:00
parent a94cb9991c
commit 2a88b0bbe0
12 changed files with 231 additions and 17 deletions

View File

@@ -11,16 +11,20 @@ source: https://github.com/tldr-pages/tldr.git
- Set the max number of counts before a filesystem is checked to 2:
`tune2fs -c 2 {{/dev/sdXN}}`
`sudo tune2fs -c 2 {{/dev/sdXN}}`
- Set the filesystem label to MY_LABEL:
`tune2fs -L 'MY_LABEL' {{/dev/sdXN}}`
`sudo tune2fs -L 'MY_LABEL' {{/dev/sdXN}}`
- Enable discard and user-specified extended attributes for a filesystem:
`tune2fs -o {{discard,user_xattr}} {{/dev/sdXN}}`
`sudo tune2fs -o discard,user_xattr {{/dev/sdXN}}`
- Enable journaling for a filesystem:
`tune2fs -o ^{{nobarrier}} {{/dev/sdXN}}`
`sudo tune2fs -o has_journal {{/dev/sdXN}}`
- Assign a new randomly-generated UUID to a filesystem:
`sudo tune2fs -U random {{/dev/sdXN}}`