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