Skip to content

Commit 01f21a1

Browse files
authored
tune2fs: update page (#19071)
1 parent 8ddf367 commit 01f21a1

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

pages/linux/tune2fs.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,20 @@
66
77
- Set the max number of counts before a filesystem is checked to 2:
88

9-
`tune2fs -c 2 {{/dev/sdXN}}`
9+
`sudo tune2fs -c 2 {{/dev/sdXN}}`
1010

1111
- Set the filesystem label to MY_LABEL:
1212

13-
`tune2fs -L 'MY_LABEL' {{/dev/sdXN}}`
13+
`sudo tune2fs -L 'MY_LABEL' {{/dev/sdXN}}`
1414

1515
- Enable discard and user-specified extended attributes for a filesystem:
1616

17-
`tune2fs -o {{discard,user_xattr}} {{/dev/sdXN}}`
17+
`sudo tune2fs -o discard,user_xattr {{/dev/sdXN}}`
1818

1919
- Enable journaling for a filesystem:
2020

21-
`tune2fs -o ^{{nobarrier}} {{/dev/sdXN}}`
21+
`sudo tune2fs -o has_journal {{/dev/sdXN}}`
22+
23+
- Assign a new randomly-generated UUID to a filesystem:
24+
25+
`sudo tune2fs -U random {{/dev/sdXN}}`

0 commit comments

Comments
 (0)