Whamcloud - gitweb
AOSP: ANDROID: tune2fs: Support encrypt+casefold
[tools/e2fsprogs.git] / misc / tune2fs.8.in
1 .\" Revision 1.0 93/06/3 23:00  chk
2 .\" Initial revision
3 .\"
4 .\"
5 .TH TUNE2FS 8 "@E2FSPROGS_MONTH@ @E2FSPROGS_YEAR@" "E2fsprogs version @E2FSPROGS_VERSION@"
6 .SH NAME
7 tune2fs \- adjust tunable filesystem parameters on ext2/ext3/ext4 filesystems
8 .SH SYNOPSIS
9 .B tune2fs
10 [
11 .B \-l
12 ]
13 [
14 .B \-c
15 .I max-mount-counts
16 ]
17 [
18 .B \-e
19 .I errors-behavior
20 ]
21 [
22 .B \-f
23 ]
24 [
25 .B \-i
26 .I interval-between-checks
27 ]
28 [
29 .B \-I
30 .I new_inode_size
31 ]
32 [
33 .B \-j
34 ]
35 [
36 .B \-J
37 .I journal-options
38 ]
39 [
40 .B \-m
41 .I reserved-blocks-percentage
42 ]
43 [
44 .B \-o
45 .RI [^]mount-options [,...]
46 ]
47 [
48 .B \-r
49 .I reserved-blocks-count
50 ]
51 [
52 .B \-u
53 .I user
54 ]
55 [
56 .B \-g
57 .I group
58 ]
59 [
60 .B \-C
61 .I mount-count
62 ]
63 [
64 .B \-E
65 .I extended-options
66 ]
67 [
68 .B \-L
69 .I volume-label
70 ]
71 [
72 .B \-M
73 .I last-mounted-directory
74 ]
75 [
76 .B \-O
77 .RI [^] feature [,...]
78 ]
79 [
80 .B \-Q
81 .I quota-options
82 ]
83 [
84 .B \-T
85 .I time-last-checked
86 ]
87 [
88 .B \-U
89 .I UUID
90 ]
91 [
92 .B \-z
93 .I undo_file
94 ]
95 device
96 .SH DESCRIPTION
97 .B tune2fs
98 allows the system administrator to adjust various tunable filesystem
99 parameters on Linux ext2, ext3, or ext4 filesystems.  The current values
100 of these options can be displayed by using the
101 .B -l
102 option to
103 .BR tune2fs (8)
104 program, or by using the
105 .BR dumpe2fs (8)
106 program.
107 .PP
108 The
109 .I device
110 specifier can either be a filename (i.e., /dev/sda1), or a LABEL or UUID
111 specifier: "\fBLABEL=\fIvolume-label\fR" or "\fBUUID=\fIuuid\fR".  (i.e.,
112 LABEL=home or UUID=e40486c6-84d5-4f2f-b99c-032281799c9d).
113 .SH OPTIONS
114 .TP
115 .BI \-c " max-mount-counts"
116 Adjust the number of mounts after which the filesystem will be checked by
117 .BR e2fsck (8).
118 If
119 .I max-mount-counts
120 is 0 or \-1, the number of times the filesystem is mounted will be disregarded
121 by
122 .BR e2fsck (8)
123 and the kernel.
124 .sp
125 Staggering the mount-counts at which filesystems are forcibly
126 checked will avoid all filesystems being checked at one time
127 when using journaled filesystems.
128 .sp
129 Mount-count-dependent checking is disabled by default to avoid
130 unanticipated long reboots while e2fsck does its work.  However,
131 you may wish to consider the consequences of disabling
132 mount-count-dependent checking entirely.  Bad disk drives, cables,
133 memory, and kernel bugs could all corrupt a filesystem without
134 marking the filesystem dirty or in error.  If you are using
135 journaling on your filesystem, your filesystem will
136 .B never
137 be marked dirty, so it will not normally be checked.  A
138 filesystem error detected by the kernel will still force
139 an fsck on the next reboot, but it may already be too late
140 to prevent data loss at that point.
141 .sp
142 See also the
143 .B \-i
144 option for time-dependent checking.
145 .TP
146 .BI \-C " mount-count"
147 Set the number of times the filesystem has been mounted.
148 If set to a greater value than the max-mount-counts parameter
149 set by the
150 .B \-c
151 option,
152 .BR e2fsck (8)
153 will check the filesystem at the next reboot.
154 .TP
155 .BI \-e " error-behavior"
156 Change the behavior of the kernel code when errors are detected.
157 In all cases, a filesystem error will cause
158 .BR e2fsck (8)
159 to check the filesystem on the next boot.
160 .I error-behavior
161 can be one of the following:
162 .RS 1.2i
163 .TP 1.2i
164 .B continue
165 Continue normal execution.
166 .TP
167 .B remount-ro
168 Remount filesystem read-only.
169 .TP
170 .B panic
171 Cause a kernel panic.
172 .RE
173 .TP
174 .BI \-E " extended-options"
175 Set extended options for the filesystem.  Extended options are comma
176 separated, and may take an argument using the equals ('=') sign.
177 The following extended options are supported:
178 .RS 1.2i
179 .TP
180 .B clear_mmp
181 Reset the MMP block (if any) back to the clean state.  Use only if
182 absolutely certain the device is not currently mounted or being
183 fscked, or major filesystem corruption can result.  Needs '-f'.
184 .TP
185 .BI mmp_update_interval= interval
186 Adjust the initial MMP update interval to
187 .I interval
188 seconds.  Specifying an
189 .I interval
190 of 0 means to use the default interval.  The specified interval must
191 be less than 300 seconds.  Requires that the
192 .B mmp
193 feature be enabled.
194 .TP
195 .BI stride= stride-size
196 Configure the filesystem for a RAID array with
197 .I stride-size
198 filesystem blocks. This is the number of blocks read or written to disk
199 before moving to next disk. This mostly affects placement of filesystem
200 metadata like bitmaps at
201 .BR mke2fs (2)
202 time to avoid placing them on a single disk, which can hurt the performance.
203 It may also be used by block allocator.
204 .TP
205 .BI stripe_width= stripe-width
206 Configure the filesystem for a RAID array with
207 .I stripe-width
208 filesystem blocks per stripe. This is typically be stride-size * N, where
209 N is the number of data disks in the RAID (e.g. RAID 5 N+1, RAID 6 N+2).
210 This allows the block allocator to prevent read-modify-write of the
211 parity in a RAID stripe if possible when the data is written.
212 .TP
213 .BI hash_alg= hash-alg
214 Set the default hash algorithm used for filesystems with hashed b-tree
215 directories.  Valid algorithms accepted are:
216 .IR legacy ,
217 .IR half_md4 ,
218 and
219 .IR tea .
220 .TP
221 .BI encoding= encoding-name
222 Enable the
223 .I casefold
224 feature in the super block and set
225 .I encoding-name
226 as the encoding to be used.  If
227 .I encoding-name
228 is not specified, utf8 is used. The encoding cannot be altered if casefold
229 was previously enabled.
230 .TP
231 .BI encoding_flags= encoding-flags
232 Define parameters for file name character encoding operations.  If a
233 flag is not changed using this parameter, its default value is used.
234 .I encoding-flags
235 should be a comma-separated lists of flags to be enabled.  The flags cannot be
236 altered if casefold was previously enabled.
237
238 The only flag that can be set right now is
239 .I strict
240 which means that invalid strings should be rejected by the file system.
241 In the default configuration, the
242 .I strict
243 flag is disabled.
244 .TP
245 .BI mount_opts= mount_option_string
246 Set a set of default mount options which will be used when the file
247 system is mounted.  Unlike the bitmask-based default mount options which
248 can be specified with the
249 .B -o
250 option,
251 .I mount_option_string
252 is an arbitrary string with a maximum length of 63 bytes, which is
253 stored in the superblock.
254 .IP
255 The ext4 file system driver will first apply
256 the bitmask-based default options, and then parse the
257 .IR mount_option_string ,
258 before parsing the mount options passed from the
259 .BR mount (8)
260 program.
261 .IP
262 This superblock setting is only honored in 2.6.35+ kernels;
263 and not at all by the ext2 and ext3 file system drivers.
264 .TP
265 .B force_fsck
266 Set a flag in the filesystem superblock indicating that errors have been found.
267 This will force fsck to run at the next mount.
268 .TP
269 .B test_fs
270 Set a flag in the filesystem superblock indicating that it may be
271 mounted using experimental kernel code, such as the ext4dev filesystem.
272 .TP
273 .B ^test_fs
274 Clear the test_fs flag, indicating the filesystem should only be mounted
275 using production-level filesystem code.
276 .RE
277 .TP
278 .B \-f
279 Force the tune2fs operation to complete even in the face of errors.  This
280 option is useful when removing the
281 .B has_journal
282 filesystem feature from a filesystem which has
283 an external journal (or is corrupted
284 such that it appears to have an external journal), but that
285 external journal is not available.   If the filesystem appears to require
286 journal replay, the
287 .B \-f
288 flag must be specified twice to proceed.
289 .sp
290 .B WARNING:
291 Removing an external journal from a filesystem which was not cleanly unmounted
292 without first replaying the external journal can result in
293 severe data loss and filesystem corruption.
294 .TP
295 .BI \-g " group"
296 Set the group which can use the reserved filesystem blocks.
297 The
298 .I group
299 parameter can be a numerical gid or a group name.  If a group name is given,
300 it is converted to a numerical gid before it is stored in the superblock.
301 .TP
302 .B \-i " \fIinterval-between-checks\fR[\fBd\fR|\fBm\fR|\fBw\fR]"
303 Adjust the maximal time between two filesystem checks.
304 No suffix or
305 .B d
306 will interpret the number
307 .I interval-between-checks
308 as days,
309 .B m
310 as months, and
311 .B w
312 as weeks.  A value of zero will disable the time-dependent checking.
313 .sp
314 There are pros and cons to disabling these periodic checks; see the
315 discussion under the
316 .B \-c
317 (mount-count-dependent check) option for details.
318 .TP
319 .B \-I
320 Change the inode size used by the file system.   This requires rewriting
321 the inode table, so it requires that the file system is checked for
322 consistency first using
323 .BR e2fsck (8).
324 This operation can also take a while and the file system can be
325 corrupted and data lost if it is interrupted while in the middle of
326 converting the file system.  Backing up the file system before changing
327 inode size is recommended.
328 .IP
329 File systems with an inode size of 128 bytes do not support timestamps
330 beyond January 19, 2038.  Inodes which are 256 bytes or larger will
331 support extended timestamps, project id's, and the ability to store some
332 extended attributes in the inode table for improved performance.
333 .TP
334 .B \-j
335 Add an ext3 journal to the filesystem.  If the
336 .B \-J
337 option is not specified, the default journal parameters will be used to create
338 an appropriately sized journal (given the size of the filesystem)
339 stored within the filesystem.  Note that you must be using a kernel
340 which has ext3 support in order to actually make use of the journal.
341 .IP
342 If this option is used to create a journal on a mounted filesystem, an
343 immutable file,
344 .BR .journal ,
345 will be created in the top-level directory of the filesystem, as it is
346 the only safe way to create the journal inode while the filesystem is
347 mounted.  While the ext3 journal is visible, it is not safe to
348 delete it, or modify it while the filesystem is mounted; for this
349 reason the file is marked immutable.
350 While checking unmounted filesystems,
351 .BR e2fsck (8)
352 will automatically move
353 .B .journal
354 files to the invisible, reserved journal inode.  For all filesystems
355 except for the root filesystem,  this should happen automatically and
356 naturally during the next reboot cycle.  Since the root filesystem is
357 mounted read-only,
358 .BR e2fsck (8)
359 must be run from a rescue floppy in order to effect this transition.
360 .IP
361 On some distributions, such as Debian, if an initial ramdisk is used,
362 the initrd scripts will automatically convert an ext2 root filesystem
363 to ext3 if the
364 .B /etc/fstab
365 file specifies the ext3 filesystem for the root filesystem in order to
366 avoid requiring the use of a rescue floppy to add an ext3 journal to
367 the root filesystem.
368 .TP
369 .BR \-J " journal-options"
370 Override the default ext3 journal parameters. Journal options are comma
371 separated, and may take an argument using the equals ('=')  sign.
372 The following journal options are supported:
373 .RS 1.2i
374 .TP
375 .BI size= journal-size
376 Create a journal stored in the filesystem of size
377 .I journal-size
378 megabytes.   The size of the journal must be at least 1024 filesystem blocks
379 (i.e., 1MB if using 1k blocks, 4MB if using 4k blocks, etc.)
380 and may be no more than 10,240,000 filesystem blocks.
381 There must be enough free space in the filesystem to create a journal of
382 that size.
383 .TP
384 .BI location =journal-location
385 Specify the location of the journal.  The argument
386 .I journal-location
387 can either be specified as a block number, or if the number has a units
388 suffix (e.g., 'M', 'G', etc.) interpret it as the offset from the
389 beginning of the file system.
390 @JDEV@.TP
391 @JDEV@.BI device= external-journal
392 @JDEV@Attach the filesystem to the journal block device located on
393 @JDEV@.IR external-journal .
394 @JDEV@The external
395 @JDEV@journal must have been already created using the command
396 @JDEV@.IP
397 @JDEV@.B mke2fs -O journal_dev
398 @JDEV@.I external-journal
399 @JDEV@.IP
400 @JDEV@Note that
401 @JDEV@.I external-journal
402 @JDEV@must be formatted with the same block
403 @JDEV@size as filesystems which will be using it.
404 @JDEV@In addition, while there is support for attaching
405 @JDEV@multiple filesystems to a single external journal,
406 @JDEV@the Linux kernel and
407 @JDEV@.BR e2fsck (8)
408 @JDEV@do not currently support shared external journals yet.
409 @JDEV@.IP
410 @JDEV@Instead of specifying a device name directly,
411 @JDEV@.I external-journal
412 @JDEV@can also be specified by either
413 @JDEV@.BI LABEL= label
414 @JDEV@or
415 @JDEV@.BI UUID= UUID
416 @JDEV@to locate the external journal by either the volume label or UUID
417 @JDEV@stored in the ext2 superblock at the start of the journal.  Use
418 @JDEV@.BR dumpe2fs (8)
419 @JDEV@to display a journal device's volume label and UUID.  See also the
420 @JDEV@.B -L
421 @JDEV@option of
422 @JDEV@.BR tune2fs (8).
423 .RE
424 @JDEV@.IP
425 @JDEV@Only one of the
426 @JDEV@.BR size " or " device
427 @JDEV@options can be given for a filesystem.
428 .TP
429 .B \-l
430 List the contents of the filesystem superblock, including the current
431 values of the parameters that can be set via this program.
432 .TP
433 .BI \-L " volume-label"
434 Set the volume label of the filesystem.
435 Ext2 filesystem labels can be at most 16 characters long; if
436 .I volume-label
437 is longer than 16 characters,
438 .B tune2fs
439 will truncate it and print a warning.  The volume label can be used
440 by
441 .BR mount (8),
442 .BR fsck (8),
443 and
444 .BR /etc/fstab (5)
445 (and possibly others) by specifying
446 .BI LABEL= volume-label
447 instead of a block special device name like
448 .BR /dev/hda5 .
449 .TP
450 .BI \-m " reserved-blocks-percentage"
451 Set the percentage of the filesystem which may only be allocated
452 by privileged processes.   Reserving some number of filesystem blocks
453 for use by privileged processes is done
454 to avoid filesystem fragmentation, and to allow system
455 daemons, such as
456 .BR syslogd (8),
457 to continue to function correctly after non-privileged processes are
458 prevented from writing to the filesystem.  Normally, the default percentage
459 of reserved blocks is 5%.
460 .TP
461 .BI \-M " last-mounted-directory"
462 Set the last-mounted directory for the filesystem.
463 .TP
464 .BR \-o " [^]\fImount-option\fR[,...]"
465 Set or clear the indicated default mount options in the filesystem.
466 Default mount options can be overridden by mount options specified
467 either in
468 .BR /etc/fstab (5)
469 or on the command line arguments to
470 .BR mount (8).
471 Older kernels may not support this feature; in particular,
472 kernels which predate 2.4.20 will almost certainly ignore the
473 default mount options field in the superblock.
474 .IP
475 More than one mount option can be cleared or set by separating
476 features with commas.  Mount options prefixed with a
477 caret character ('^') will be cleared in the filesystem's superblock;
478 mount options without a prefix character or prefixed with a plus
479 character ('+') will be added to the filesystem.
480 .IP
481 The following mount options can be set or cleared using
482 .BR tune2fs :
483 .RS 1.2i
484 .TP
485 .B debug
486 Enable debugging code for this filesystem.
487 .TP
488 .B bsdgroups
489 Emulate BSD behavior when creating new files: they will take the group-id
490 of the directory in which they were created.  The standard System V behavior
491 is the default, where newly created files take on the fsgid of the current
492 process, unless the directory has the setgid bit set, in which case it takes
493 the gid from the parent directory, and also gets the setgid bit set if it is
494 a directory itself.
495 .TP
496 .B user_xattr
497 Enable user-specified extended attributes.
498 .TP
499 .B acl
500 Enable Posix Access Control Lists.
501 .TP
502 .B uid16
503 Disables 32-bit UIDs and GIDs.  This is for interoperability with
504 older kernels which only store and expect 16-bit values.
505 .TP
506 .B journal_data
507 When the filesystem is mounted with journalling enabled, all data
508 (not just metadata) is committed into the journal prior to being written
509 into the main filesystem.
510 .TP
511 .B journal_data_ordered
512 When the filesystem is mounted with journalling enabled, all data is forced
513 directly out to the main file system prior to its metadata being committed
514 to the journal.
515 .TP
516 .B journal_data_writeback
517 When the filesystem is mounted with journalling enabled, data may be
518 written into the main filesystem after its metadata has been committed
519 to the journal.  This may increase throughput, however, it may allow old
520 data to appear in files after a crash and journal recovery.
521 .TP
522 .B nobarrier
523 The file system will be mounted with barrier operations in the journal
524 disabled.  (This option is currently only supported by the ext4 file
525 system driver in 2.6.35+ kernels.)
526 .TP
527 .B block_validity
528 The file system will be mounted with the block_validity option enabled,
529 which causes extra checks to be performed after reading or writing from
530 the file system.  This prevents corrupted metadata blocks from causing
531 file system damage by overwriting parts of the inode table or block
532 group descriptors.  This comes at the cost of increased memory and CPU
533 overhead, so it is enabled only for debugging purposes.  (This option is
534 currently only supported by the ext4 file system driver in 2.6.35+
535 kernels.)
536 .TP
537 .B discard
538 The file system will be mounted with the discard mount option.  This will
539 cause the file system driver to attempt to use the trim/discard feature
540 of some storage devices (such as SSD's and thin-provisioned drives
541 available in some enterprise storage arrays) to inform the storage
542 device that blocks belonging to deleted files can be reused for other
543 purposes.  (This option is currently only supported by the ext4 file
544 system driver in 2.6.35+ kernels.)
545 .TP
546 .B nodelalloc
547 The file system will be mounted with the nodelalloc mount option.  This
548 will disable the delayed allocation feature.  (This option is currently
549 only supported by the ext4 file system driver in 2.6.35+ kernels.)
550 .RE
551 .TP
552 .BR \-O " [^]\fIfeature\fR[,...]"
553 Set or clear the indicated filesystem features (options) in the filesystem.
554 More than one filesystem feature can be cleared or set by separating
555 features with commas.  Filesystem features prefixed with a
556 caret character ('^') will be cleared in the filesystem's superblock;
557 filesystem features without a prefix character or prefixed with a plus
558 character ('+') will be added to the filesystem.  For a detailed
559 description of the file system features, please see the man page
560 .BR ext4 (5).
561 .IP
562 The following filesystem features can be set or cleared using
563 .BR tune2fs :
564 .RS 1.2i
565 .TP
566 .B 64bit
567 Enable the file system to be larger than 2^32 blocks.
568 .TP
569 .B casefold
570 Enable support for file system level casefolding.
571 .B Tune2fs
572 currently only supports setting this filesystem feature.
573 .TP
574 .B dir_index
575 Use hashed b-trees to speed up lookups for large directories.
576 .TP
577 .B dir_nlink
578 Allow more than 65000 subdirectories per directory.
579 .TP
580 .B ea_inode
581 Allow the value of each extended attribute to be placed in the data blocks of a
582 separate inode if necessary, increasing the limit on the size and number of
583 extended attributes per file.
584 .B Tune2fs
585 currently only supports setting this filesystem feature.
586 .TP
587 .B encrypt
588 Enable support for file system level encryption.
589 .B Tune2fs
590 currently only supports setting this filesystem feature.
591 .TP
592 .B extent
593 Enable the use of extent trees to store the location of data blocks in inodes.
594 .B Tune2fs
595 currently only supports setting this filesystem feature.
596 .TP
597 .B extra_isize
598 Enable the extended inode fields used by ext4.
599 .TP
600 .B filetype
601 Store file type information in directory entries.
602 .TP
603 .B flex_bg
604 Allow bitmaps and inode tables for a block group to be placed
605 anywhere on the storage media.  \fBTune2fs\fR will not reorganize
606 the location of the inode tables and allocation bitmaps, as
607 .BR mke2fs (8)
608 will do when it creates a freshly formatted file system with
609 .B flex_bg
610 enabled.
611 .TP
612 .B has_journal
613 Use a journal to ensure filesystem consistency even across unclean shutdowns.
614 Setting the filesystem feature is equivalent to using the
615 .B \-j
616 option.
617 .TP
618 .B large_dir
619 Increase the limit on the number of files per directory.
620 .B Tune2fs
621 currently only supports setting this filesystem feature.
622 .TP
623 .B huge_file
624 Support files larger than 2 terabytes in size.
625 .TP
626 .B large_file
627 Filesystem can contain files that are greater than 2GB.
628 .TP
629 .B metadata_csum
630 Store a checksum to protect the contents in each metadata block.
631 .TP
632 .B metadata_csum_seed
633 Allow the filesystem to store the metadata checksum seed in the
634 superblock, enabling the administrator to change the UUID of a filesystem
635 using the
636 .B metadata_csum
637 feature while it is mounted.
638 .TP
639 .B mmp
640 Enable or disable multiple mount protection (MMP) feature.
641 .TP
642 .B project
643 Enable project ID tracking.  This is used for project quota tracking.
644 .TP
645 .B quota
646 Enable internal file system quota inodes.
647 .TP
648 .B read-only
649 Force the kernel to mount the file system read-only.
650 .TP
651 .B resize_inode
652 Reserve space so the block group descriptor table may grow in the
653 future.
654 .B Tune2fs
655 only supports clearing this filesystem feature.
656 .TP
657 .B sparse_super
658 Limit the number of backup superblocks to save space on large filesystems.
659 .B Tune2fs
660 currently only supports setting this filesystem feature.
661 .TP
662 .B uninit_bg
663 Allow the kernel to initialize bitmaps and inode tables lazily, and to
664 keep a high watermark for the unused inodes in a filesystem, to reduce
665 .BR e2fsck (8)
666 time.  The first e2fsck run after enabling this feature will take the
667 full time, but subsequent e2fsck runs will take only a fraction of the
668 original time, depending on how full the file system is.
669 .TP
670 .B verity
671 Enable support for verity protected files.
672 .B Tune2fs
673 currently only supports setting this filesystem feature.
674 .RE
675 .IP
676 After setting or clearing
677 .BR sparse_super ,
678 .BR uninit_bg ,
679 .BR filetype ,
680 or
681 .B resize_inode
682 filesystem features,
683 the file system may require being checked using
684 .BR e2fsck (8)
685 to return the filesystem to a consistent state.
686 .B Tune2fs
687 will print a message requesting that the system administrator run
688 .BR e2fsck (8)
689 if necessary.  After setting the
690 .B dir_index
691 feature,
692 .B e2fsck -D
693 can be run to convert existing directories to the hashed B-tree format.
694 Enabling certain filesystem features may prevent the filesystem from being
695 mounted by kernels which do not support those features.  In particular, the
696 .B uninit_bg
697 and
698 .B flex_bg
699 features are only supported by the ext4 filesystem.
700 .TP
701 .BI \-r " reserved-blocks-count"
702 Set the number of reserved filesystem blocks.
703 .TP
704 .BI \-Q " quota-options"
705 Sets 'quota' feature on the superblock and works on the quota files for the
706 given quota type. Quota options could be one or more of the following:
707 .RS 1.2i
708 .TP
709 .B [^]usrquota
710 Sets/clears user quota inode in the superblock.
711 .TP
712 .B [^]grpquota
713 Sets/clears group quota inode in the superblock.
714 .TP
715 .B [^]prjquota
716 Sets/clears project quota inode in the superblock.
717 .RE
718 .TP
719 .BI \-T " time-last-checked"
720 Set the time the filesystem was last checked using
721 .BR  e2fsck .
722 The time is interpreted using the current (local) timezone.
723 This can be useful in scripts which use a Logical Volume Manager to make
724 a consistent snapshot of a filesystem, and then check the filesystem
725 during off hours to make sure it hasn't been corrupted due to
726 hardware problems, etc.  If the filesystem was clean, then this option can
727 be used to set the last checked time on the original filesystem.  The format
728 of
729 .I time-last-checked
730 is the international date format, with an optional time specifier, i.e.
731 YYYYMMDD[HH[MM[SS]]].   The keyword
732 .B now
733 is also accepted, in which case the last checked time will be set to the
734 current time.
735 .TP
736 .BI \-u " user"
737 Set the user who can use the reserved filesystem blocks.
738 .I user
739 can be a numerical uid or a user name.  If a user name is given, it
740 is converted to a numerical uid before it is stored in the superblock.
741 .TP
742 .BI \-U " UUID"
743 Set the universally unique identifier (UUID) of the filesystem to
744 .IR UUID .
745 The format of the UUID is a series of hex digits separated by hyphens,
746 like this:
747 "c1b9d5a2-f162-11cf-9ece-0020afc76f16".
748 The
749 .I UUID
750 parameter may also be one of the following:
751 .RS 1.2i
752 .TP
753 .I clear
754 clear the filesystem UUID
755 .TP
756 .I random
757 generate a new randomly-generated UUID
758 .TP
759 .I time
760 generate a new time-based UUID
761 .RE
762 .IP
763 The UUID may be used by
764 .BR mount (8),
765 .BR fsck (8),
766 and
767 .BR /etc/fstab (5)
768 (and possibly others) by specifying
769 .BI UUID= uuid
770 instead of a block special device name like
771 .BR /dev/hda1 .
772 .IP
773 See
774 .BR uuidgen (8)
775 for more information.
776 If the system does not have a good random number generator such as
777 .I /dev/random
778 or
779 .IR /dev/urandom ,
780 .B tune2fs
781 will automatically use a time-based UUID instead of a randomly-generated UUID.
782 .TP
783 .BI \-z " undo_file"
784 Before overwriting a file system block, write the old contents of the block to
785 an undo file.  This undo file can be used with e2undo(8) to restore the old
786 contents of the file system should something go wrong.  If the empty string is
787 passed as the undo_file argument, the undo file will be written to a file named
788 tune2fs-\fIdevice\fR.e2undo in the directory specified via the
789 \fIE2FSPROGS_UNDO_DIR\fR environment variable.
790
791 WARNING: The undo file cannot be used to recover from a power or system crash.
792 .SH BUGS
793 We haven't found any bugs yet.  That doesn't mean there aren't any...
794 .SH AUTHOR
795 .B tune2fs
796 was written by Remy Card <Remy.Card@linux.org>.  It is currently being
797 maintained by Theodore Ts'o <tytso@alum.mit.edu>.
798 .B tune2fs
799 uses the ext2fs library written by Theodore Ts'o <tytso@mit.edu>.
800 This manual page was written by Christian Kuhtz <chk@data-hh.Hanse.DE>.
801 Time-dependent checking was added by Uwe Ohse <uwe@tirka.gun.de>.
802 .SH AVAILABILITY
803 .B tune2fs
804 is part of the e2fsprogs package and is available from
805 http://e2fsprogs.sourceforge.net.
806 .SH SEE ALSO
807 .BR debugfs (8),
808 .BR dumpe2fs (8),
809 .BR e2fsck (8),
810 .BR mke2fs (8),
811 .BR ext4 (5)