]> git.ipfire.org Git - thirdparty/e2fsprogs.git/blob - misc/tune2fs.8.in
Merge branch 'maint' into next
[thirdparty/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 mount_opts= mount_option_string
222 Set a set of default mount options which will be used when the file
223 system is mounted. Unlike the bitmask-based default mount options which
224 can be specified with the
225 .B -o
226 option,
227 .I mount_option_string
228 is an arbitrary string with a maximum length of 63 bytes, which is
229 stored in the superblock.
230 .IP
231 The ext4 file system driver will first apply
232 the bitmask-based default options, and then parse the
233 .IR mount_option_string ,
234 before parsing the mount options passed from the
235 .BR mount (8)
236 program.
237 .IP
238 This superblock setting is only honored in 2.6.35+ kernels;
239 and not at all by the ext2 and ext3 file system drivers.
240 .TP
241 .B force_fsck
242 Set a flag in the filesystem superblock indicating that errors have been found.
243 This will force fsck to run at the next mount.
244 .TP
245 .B test_fs
246 Set a flag in the filesystem superblock indicating that it may be
247 mounted using experimental kernel code, such as the ext4dev filesystem.
248 .TP
249 .B ^test_fs
250 Clear the test_fs flag, indicating the filesystem should only be mounted
251 using production-level filesystem code.
252 .RE
253 .TP
254 .B \-f
255 Force the tune2fs operation to complete even in the face of errors. This
256 option is useful when removing the
257 .B has_journal
258 filesystem feature from a filesystem which has
259 an external journal (or is corrupted
260 such that it appears to have an external journal), but that
261 external journal is not available. If the filesystem appears to require
262 journal replay, the
263 .B \-f
264 flag must be specified twice to proceed.
265 .sp
266 .B WARNING:
267 Removing an external journal from a filesystem which was not cleanly unmounted
268 without first replaying the external journal can result in
269 severe data loss and filesystem corruption.
270 .TP
271 .BI \-g " group"
272 Set the group which can use the reserved filesystem blocks.
273 The
274 .I group
275 parameter can be a numerical gid or a group name. If a group name is given,
276 it is converted to a numerical gid before it is stored in the superblock.
277 .TP
278 .B \-i " \fIinterval-between-checks\fR[\fBd\fR|\fBm\fR|\fBw\fR]"
279 Adjust the maximal time between two filesystem checks.
280 No suffix or
281 .B d
282 will interpret the number
283 .I interval-between-checks
284 as days,
285 .B m
286 as months, and
287 .B w
288 as weeks. A value of zero will disable the time-dependent checking.
289 .sp
290 There are pros and cons to disabling these periodic checks; see the
291 discussion under the
292 .B \-c
293 (mount-count-dependent check) option for details.
294 .TP
295 .B \-I
296 Change the inode size used by the file system. This requires rewriting
297 the inode table, so it requires that the file system is checked for
298 consistency first using
299 .BR e2fsck (8).
300 This operation can also take a while and the file system can be
301 corrupted and data lost if it is interrupted while in the middle of
302 converting the file system.
303 .TP
304 .B \-j
305 Add an ext3 journal to the filesystem. If the
306 .B \-J
307 option is not specified, the default journal parameters will be used to create
308 an appropriately sized journal (given the size of the filesystem)
309 stored within the filesystem. Note that you must be using a kernel
310 which has ext3 support in order to actually make use of the journal.
311 .IP
312 If this option is used to create a journal on a mounted filesystem, an
313 immutable file,
314 .BR .journal ,
315 will be created in the top-level directory of the filesystem, as it is
316 the only safe way to create the journal inode while the filesystem is
317 mounted. While the ext3 journal is visible, it is not safe to
318 delete it, or modify it while the filesystem is mounted; for this
319 reason the file is marked immutable.
320 While checking unmounted filesystems,
321 .BR e2fsck (8)
322 will automatically move
323 .B .journal
324 files to the invisible, reserved journal inode. For all filesystems
325 except for the root filesystem, this should happen automatically and
326 naturally during the next reboot cycle. Since the root filesystem is
327 mounted read-only,
328 .BR e2fsck (8)
329 must be run from a rescue floppy in order to effect this transition.
330 .IP
331 On some distributions, such as Debian, if an initial ramdisk is used,
332 the initrd scripts will automatically convert an ext2 root filesystem
333 to ext3 if the
334 .B /etc/fstab
335 file specifies the ext3 filesystem for the root filesystem in order to
336 avoid requiring the use of a rescue floppy to add an ext3 journal to
337 the root filesystem.
338 .TP
339 .BR \-J " journal-options"
340 Override the default ext3 journal parameters. Journal options are comma
341 separated, and may take an argument using the equals ('=') sign.
342 The following journal options are supported:
343 .RS 1.2i
344 .TP
345 .BI size= journal-size
346 Create a journal stored in the filesystem of size
347 .I journal-size
348 megabytes. The size of the journal must be at least 1024 filesystem blocks
349 (i.e., 1MB if using 1k blocks, 4MB if using 4k blocks, etc.)
350 and may be no more than 10,240,000 filesystem blocks.
351 There must be enough free space in the filesystem to create a journal of
352 that size.
353 .TP
354 .BI location =journal-location
355 Specify the location of the journal. The argument
356 .I journal-location
357 can either be specified as a block number, or if the number has a units
358 suffix (e.g., 'M', 'G', etc.) interpret it as the offset from the
359 beginning of the file system.
360 @JDEV@.TP
361 @JDEV@.BI device= external-journal
362 @JDEV@Attach the filesystem to the journal block device located on
363 @JDEV@.IR external-journal .
364 @JDEV@The external
365 @JDEV@journal must have been already created using the command
366 @JDEV@.IP
367 @JDEV@.B mke2fs -O journal_dev
368 @JDEV@.I external-journal
369 @JDEV@.IP
370 @JDEV@Note that
371 @JDEV@.I external-journal
372 @JDEV@must be formatted with the same block
373 @JDEV@size as filesystems which will be using it.
374 @JDEV@In addition, while there is support for attaching
375 @JDEV@multiple filesystems to a single external journal,
376 @JDEV@the Linux kernel and
377 @JDEV@.BR e2fsck (8)
378 @JDEV@do not currently support shared external journals yet.
379 @JDEV@.IP
380 @JDEV@Instead of specifying a device name directly,
381 @JDEV@.I external-journal
382 @JDEV@can also be specified by either
383 @JDEV@.BI LABEL= label
384 @JDEV@or
385 @JDEV@.BI UUID= UUID
386 @JDEV@to locate the external journal by either the volume label or UUID
387 @JDEV@stored in the ext2 superblock at the start of the journal. Use
388 @JDEV@.BR dumpe2fs (8)
389 @JDEV@to display a journal device's volume label and UUID. See also the
390 @JDEV@.B -L
391 @JDEV@option of
392 @JDEV@.BR tune2fs (8).
393 .RE
394 @JDEV@.IP
395 @JDEV@Only one of the
396 @JDEV@.BR size " or " device
397 @JDEV@options can be given for a filesystem.
398 .TP
399 .B \-l
400 List the contents of the filesystem superblock, including the current
401 values of the parameters that can be set via this program.
402 .TP
403 .BI \-L " volume-label"
404 Set the volume label of the filesystem.
405 Ext2 filesystem labels can be at most 16 characters long; if
406 .I volume-label
407 is longer than 16 characters,
408 .B tune2fs
409 will truncate it and print a warning. The volume label can be used
410 by
411 .BR mount (8),
412 .BR fsck (8),
413 and
414 .BR /etc/fstab (5)
415 (and possibly others) by specifying
416 .BI LABEL= volume-label
417 instead of a block special device name like
418 .BR /dev/hda5 .
419 .TP
420 .BI \-m " reserved-blocks-percentage"
421 Set the percentage of the filesystem which may only be allocated
422 by privileged processes. Reserving some number of filesystem blocks
423 for use by privileged processes is done
424 to avoid filesystem fragmentation, and to allow system
425 daemons, such as
426 .BR syslogd (8),
427 to continue to function correctly after non-privileged processes are
428 prevented from writing to the filesystem. Normally, the default percentage
429 of reserved blocks is 5%.
430 .TP
431 .BI \-M " last-mounted-directory"
432 Set the last-mounted directory for the filesystem.
433 .TP
434 .BR \-o " [^]\fImount-option\fR[,...]"
435 Set or clear the indicated default mount options in the filesystem.
436 Default mount options can be overridden by mount options specified
437 either in
438 .BR /etc/fstab (5)
439 or on the command line arguments to
440 .BR mount (8).
441 Older kernels may not support this feature; in particular,
442 kernels which predate 2.4.20 will almost certainly ignore the
443 default mount options field in the superblock.
444 .IP
445 More than one mount option can be cleared or set by separating
446 features with commas. Mount options prefixed with a
447 caret character ('^') will be cleared in the filesystem's superblock;
448 mount options without a prefix character or prefixed with a plus
449 character ('+') will be added to the filesystem.
450 .IP
451 The following mount options can be set or cleared using
452 .BR tune2fs :
453 .RS 1.2i
454 .TP
455 .B debug
456 Enable debugging code for this filesystem.
457 .TP
458 .B bsdgroups
459 Emulate BSD behavior when creating new files: they will take the group-id
460 of the directory in which they were created. The standard System V behavior
461 is the default, where newly created files take on the fsgid of the current
462 process, unless the directory has the setgid bit set, in which case it takes
463 the gid from the parent directory, and also gets the setgid bit set if it is
464 a directory itself.
465 .TP
466 .B user_xattr
467 Enable user-specified extended attributes.
468 .TP
469 .B acl
470 Enable Posix Access Control Lists.
471 .TP
472 .B uid16
473 Disables 32-bit UIDs and GIDs. This is for interoperability with
474 older kernels which only store and expect 16-bit values.
475 .TP
476 .B journal_data
477 When the filesystem is mounted with journalling enabled, all data
478 (not just metadata) is committed into the journal prior to being written
479 into the main filesystem.
480 .TP
481 .B journal_data_ordered
482 When the filesystem is mounted with journalling enabled, all data is forced
483 directly out to the main file system prior to its metadata being committed
484 to the journal.
485 .TP
486 .B journal_data_writeback
487 When the filesystem is mounted with journalling enabled, data may be
488 written into the main filesystem after its metadata has been committed
489 to the journal. This may increase throughput, however, it may allow old
490 data to appear in files after a crash and journal recovery.
491 .TP
492 .B nobarrier
493 The file system will be mounted with barrier operations in the journal
494 disabled. (This option is currently only supported by the ext4 file
495 system driver in 2.6.35+ kernels.)
496 .TP
497 .B block_validity
498 The file system will be mounted with the block_validity option enabled,
499 which causes extra checks to be performed after reading or writing from
500 the file system. This prevents corrupted metadata blocks from causing
501 file system damage by overwriting parts of the inode table or block
502 group descriptors. This comes at the cost of increased memory and CPU
503 overhead, so it is enabled only for debugging purposes. (This option is
504 currently only supported by the ext4 file system driver in 2.6.35+
505 kernels.)
506 .TP
507 .B discard
508 The file system will be mounted with the discard mount option. This will
509 cause the file system driver to attempt to use the trim/discard feature
510 of some storage devices (such as SSD's and thin-provisioned drives
511 available in some enterprise storage arrays) to inform the storage
512 device that blocks belonging to deleted files can be reused for other
513 purposes. (This option is currently only supported by the ext4 file
514 system driver in 2.6.35+ kernels.)
515 .TP
516 .B nodelalloc
517 The file system will be mounted with the nodelalloc mount option. This
518 will disable the delayed allocation feature. (This option is currently
519 only supported by the ext4 file system driver in 2.6.35+ kernels.)
520 .RE
521 .TP
522 .BR \-O " [^]\fIfeature\fR[,...]"
523 Set or clear the indicated filesystem features (options) in the filesystem.
524 More than one filesystem feature can be cleared or set by separating
525 features with commas. Filesystem features prefixed with a
526 caret character ('^') will be cleared in the filesystem's superblock;
527 filesystem features without a prefix character or prefixed with a plus
528 character ('+') will be added to the filesystem. For a detailed
529 description of the file system features, please see the man page
530 .BR ext4 (5).
531 .IP
532 The following filesystem features can be set or cleared using
533 .BR tune2fs :
534 .RS 1.2i
535 .TP
536 .B 64bit
537 Enable the file system to be larger than 2^32 blocks.
538 .TP
539 .B dir_index
540 Use hashed b-trees to speed up lookups for large directories.
541 .TP
542 .B dir_nlink
543 Allow more than 65000 subdirectories per directory.
544 .TP
545 .B ea_inode
546 Allow the value of each extended attribute to be placed in the data blocks of a
547 separate inode if necessary, increasing the limit on the size and number of
548 extended attributes per file.
549 .B Tune2fs
550 currently only supports setting this filesystem feature.
551 .TP
552 .B encrypt
553 Enable file system level encryption.
554 .B Tune2fs
555 currently only supports setting this filesystem feature.
556 .TP
557 .B extent
558 Enable the use of extent trees to store the location of data blocks in inodes.
559 .B Tune2fs
560 currently only supports setting this filesystem feature.
561 .TP
562 .B extra_isize
563 Enable the extended inode fields used by ext4.
564 .TP
565 .B filetype
566 Store file type information in directory entries.
567 .TP
568 .B flex_bg
569 Allow bitmaps and inode tables for a block group to be placed
570 anywhere on the storage media. \fBTune2fs\fR will not reorganize
571 the location of the inode tables and allocation bitmaps, as
572 .BR mke2fs (8)
573 will do when it creates a freshly formatted file system with
574 .B flex_bg
575 enabled.
576 .TP
577 .B has_journal
578 Use a journal to ensure filesystem consistency even across unclean shutdowns.
579 Setting the filesystem feature is equivalent to using the
580 .B \-j
581 option.
582 .TP
583 .B large_dir
584 Increase the limit on the number of files per directory.
585 .B Tune2fs
586 currently only supports setting this filesystem feature.
587 .TP
588 .B huge_file
589 Support files larger than 2 terabytes in size.
590 .TP
591 .B large_file
592 Filesystem can contain files that are greater than 2GB.
593 .TP
594 .B metadata_csum
595 Store a checksum to protect the contents in each metadata block.
596 .TP
597 .B metadata_csum_seed
598 Allow the filesystem to store the metadata checksum seed in the
599 superblock, enabling the administrator to change the UUID of a filesystem
600 using the
601 .B metadata_csum
602 feature while it is mounted.
603 .TP
604 .B mmp
605 Enable or disable multiple mount protection (MMP) feature.
606 .TP
607 .B project
608 Enable project ID tracking. This is used for project quota tracking.
609 .TP
610 .B quota
611 Enable internal file system quota inodes.
612 .TP
613 .B read-only
614 Force the kernel to mount the file system read-only.
615 .TP
616 .B resize_inode
617 Reserve space so the block group descriptor table may grow in the
618 future.
619 .B Tune2fs
620 only supports clearing this filesystem feature.
621 .TP
622 .B sparse_super
623 Limit the number of backup superblocks to save space on large filesystems.
624 .B Tune2fs
625 currently only supports setting this filesystem feature.
626 .TP
627 .B uninit_bg
628 Allow the kernel to initialize bitmaps and inode tables lazily, and to
629 keep a high watermark for the unused inodes in a filesystem, to reduce
630 .BR e2fsck (8)
631 time. The first e2fsck run after enabling this feature will take the
632 full time, but subsequent e2fsck runs will take only a fraction of the
633 original time, depending on how full the file system is.
634 .RE
635 .IP
636 After setting or clearing
637 .BR sparse_super ,
638 .BR uninit_bg ,
639 .BR filetype ,
640 or
641 .B resize_inode
642 filesystem features,
643 the file system may require being checked using
644 .BR e2fsck (8)
645 to return the filesystem to a consistent state.
646 .B Tune2fs
647 will print a message requesting that the system administrator run
648 .BR e2fsck (8)
649 if necessary. After setting the
650 .B dir_index
651 feature,
652 .B e2fsck -D
653 can be run to convert existing directories to the hashed B-tree format.
654 Enabling certain filesystem features may prevent the filesystem from being
655 mounted by kernels which do not support those features. In particular, the
656 .B uninit_bg
657 and
658 .B flex_bg
659 features are only supported by the ext4 filesystem.
660 .TP
661 .BI \-r " reserved-blocks-count"
662 Set the number of reserved filesystem blocks.
663 .TP
664 .BI \-Q " quota-options"
665 Sets 'quota' feature on the superblock and works on the quota files for the
666 given quota type. Quota options could be one or more of the following:
667 .RS 1.2i
668 .TP
669 .B [^]usrquota
670 Sets/clears user quota inode in the superblock.
671 .TP
672 .B [^]grpquota
673 Sets/clears group quota inode in the superblock.
674 .TP
675 .B [^]prjquota
676 Sets/clears project quota inode in the superblock.
677 .RE
678 .TP
679 .BI \-T " time-last-checked"
680 Set the time the filesystem was last checked using
681 .BR e2fsck .
682 The time is interpreted using the current (local) timezone.
683 This can be useful in scripts which use a Logical Volume Manager to make
684 a consistent snapshot of a filesystem, and then check the filesystem
685 during off hours to make sure it hasn't been corrupted due to
686 hardware problems, etc. If the filesystem was clean, then this option can
687 be used to set the last checked time on the original filesystem. The format
688 of
689 .I time-last-checked
690 is the international date format, with an optional time specifier, i.e.
691 YYYYMMDD[HH[MM[SS]]]. The keyword
692 .B now
693 is also accepted, in which case the last checked time will be set to the
694 current time.
695 .TP
696 .BI \-u " user"
697 Set the user who can use the reserved filesystem blocks.
698 .I user
699 can be a numerical uid or a user name. If a user name is given, it
700 is converted to a numerical uid before it is stored in the superblock.
701 .TP
702 .BI \-U " UUID"
703 Set the universally unique identifier (UUID) of the filesystem to
704 .IR UUID .
705 The format of the UUID is a series of hex digits separated by hyphens,
706 like this:
707 "c1b9d5a2-f162-11cf-9ece-0020afc76f16".
708 The
709 .I UUID
710 parameter may also be one of the following:
711 .RS 1.2i
712 .TP
713 .I clear
714 clear the filesystem UUID
715 .TP
716 .I random
717 generate a new randomly-generated UUID
718 .TP
719 .I time
720 generate a new time-based UUID
721 .RE
722 .IP
723 The UUID may be used by
724 .BR mount (8),
725 .BR fsck (8),
726 and
727 .BR /etc/fstab (5)
728 (and possibly others) by specifying
729 .BI UUID= uuid
730 instead of a block special device name like
731 .BR /dev/hda1 .
732 .IP
733 See
734 .BR uuidgen (8)
735 for more information.
736 If the system does not have a good random number generator such as
737 .I /dev/random
738 or
739 .IR /dev/urandom ,
740 .B tune2fs
741 will automatically use a time-based UUID instead of a randomly-generated UUID.
742 .TP
743 .BI \-z " undo_file"
744 Before overwriting a file system block, write the old contents of the block to
745 an undo file. This undo file can be used with e2undo(8) to restore the old
746 contents of the file system should something go wrong. If the empty string is
747 passed as the undo_file argument, the undo file will be written to a file named
748 tune2fs-\fIdevice\fR.e2undo in the directory specified via the
749 \fIE2FSPROGS_UNDO_DIR\fR environment variable.
750
751 WARNING: The undo file cannot be used to recover from a power or system crash.
752 .SH BUGS
753 We haven't found any bugs yet. That doesn't mean there aren't any...
754 .SH AUTHOR
755 .B tune2fs
756 was written by Remy Card <Remy.Card@linux.org>. It is currently being
757 maintained by Theodore Ts'o <tytso@alum.mit.edu>.
758 .B tune2fs
759 uses the ext2fs library written by Theodore Ts'o <tytso@mit.edu>.
760 This manual page was written by Christian Kuhtz <chk@data-hh.Hanse.DE>.
761 Time-dependent checking was added by Uwe Ohse <uwe@tirka.gun.de>.
762 .SH AVAILABILITY
763 .B tune2fs
764 is part of the e2fsprogs package and is available from
765 http://e2fsprogs.sourceforge.net.
766 .SH SEE ALSO
767 .BR debugfs (8),
768 .BR dumpe2fs (8),
769 .BR e2fsck (8),
770 .BR mke2fs (8),
771 .BR ext4 (5)