We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ddf367 commit 01f21a1Copy full SHA for 01f21a1
pages/linux/tune2fs.md
@@ -6,16 +6,20 @@
6
7
- Set the max number of counts before a filesystem is checked to 2:
8
9
-`tune2fs -c 2 {{/dev/sdXN}}`
+`sudo tune2fs -c 2 {{/dev/sdXN}}`
10
11
- Set the filesystem label to MY_LABEL:
12
13
-`tune2fs -L 'MY_LABEL' {{/dev/sdXN}}`
+`sudo tune2fs -L 'MY_LABEL' {{/dev/sdXN}}`
14
15
- Enable discard and user-specified extended attributes for a filesystem:
16
17
-`tune2fs -o {{discard,user_xattr}} {{/dev/sdXN}}`
+`sudo tune2fs -o discard,user_xattr {{/dev/sdXN}}`
18
19
- Enable journaling for a filesystem:
20
21
-`tune2fs -o ^{{nobarrier}} {{/dev/sdXN}}`
+`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