Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 1 | .\" Revision 1.0 93/06/3 23:00 chk |
| 2 | .\" Initial revision |
| 3 | .\" |
| 4 | .\" |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 5 | .TH TUNE2FS 8 "@E2FSPROGS_MONTH@ @E2FSPROGS_YEAR@" "E2fsprogs version @E2FSPROGS_VERSION@" |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 6 | .SH NAME |
| 7 | tune2fs \- adjust tunable filesystem parameters on second extended filesystems |
| 8 | .SH SYNOPSIS |
| 9 | .B tune2fs |
| 10 | [ |
Theodore Ts'o | caf8ce4 | 1999-10-21 19:56:34 +0000 | [diff] [blame] | 11 | .B \-l |
Theodore Ts'o | f3db356 | 1997-04-26 13:34:30 +0000 | [diff] [blame] | 12 | ] |
| 13 | [ |
Theodore Ts'o | caf8ce4 | 1999-10-21 19:56:34 +0000 | [diff] [blame] | 14 | .B \-c |
Theodore Ts'o | f3db356 | 1997-04-26 13:34:30 +0000 | [diff] [blame] | 15 | .I max-mount-counts |
| 16 | ] |
| 17 | [ |
Theodore Ts'o | caf8ce4 | 1999-10-21 19:56:34 +0000 | [diff] [blame] | 18 | .B \-e |
Theodore Ts'o | f3db356 | 1997-04-26 13:34:30 +0000 | [diff] [blame] | 19 | .I errors-behavior |
| 20 | ] |
| 21 | [ |
Theodore Ts'o | caf8ce4 | 1999-10-21 19:56:34 +0000 | [diff] [blame] | 22 | .B \-i |
Theodore Ts'o | f3db356 | 1997-04-26 13:34:30 +0000 | [diff] [blame] | 23 | .I interval-between-checks |
| 24 | ] |
| 25 | [ |
Theodore Ts'o | caf8ce4 | 1999-10-21 19:56:34 +0000 | [diff] [blame] | 26 | .B \-m |
Theodore Ts'o | f3db356 | 1997-04-26 13:34:30 +0000 | [diff] [blame] | 27 | .I reserved-blocks-percentage |
| 28 | ] |
| 29 | [ |
Theodore Ts'o | caf8ce4 | 1999-10-21 19:56:34 +0000 | [diff] [blame] | 30 | .B \-r |
Theodore Ts'o | f3db356 | 1997-04-26 13:34:30 +0000 | [diff] [blame] | 31 | .I reserved-blocks-count |
| 32 | ] |
| 33 | [ |
Theodore Ts'o | caf8ce4 | 1999-10-21 19:56:34 +0000 | [diff] [blame] | 34 | .B \-s |
| 35 | .I sparse-super-flag |
Theodore Ts'o | 521e368 | 1997-04-29 17:48:10 +0000 | [diff] [blame] | 36 | ] |
| 37 | [ |
Theodore Ts'o | caf8ce4 | 1999-10-21 19:56:34 +0000 | [diff] [blame] | 38 | .B \-u |
Theodore Ts'o | f3db356 | 1997-04-26 13:34:30 +0000 | [diff] [blame] | 39 | .I user |
| 40 | ] |
| 41 | [ |
Theodore Ts'o | caf8ce4 | 1999-10-21 19:56:34 +0000 | [diff] [blame] | 42 | .B \-g |
Theodore Ts'o | f3db356 | 1997-04-26 13:34:30 +0000 | [diff] [blame] | 43 | .I group |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 44 | ] |
Theodore Ts'o | 1e3472c | 1997-04-29 14:53:37 +0000 | [diff] [blame] | 45 | [ |
Theodore Ts'o | caf8ce4 | 1999-10-21 19:56:34 +0000 | [diff] [blame] | 46 | .B \-C |
Theodore Ts'o | 1e3472c | 1997-04-29 14:53:37 +0000 | [diff] [blame] | 47 | .I mount-count |
| 48 | ] |
| 49 | [ |
Theodore Ts'o | caf8ce4 | 1999-10-21 19:56:34 +0000 | [diff] [blame] | 50 | .B \-L |
Theodore Ts'o | 1e3472c | 1997-04-29 14:53:37 +0000 | [diff] [blame] | 51 | .I volume-name |
| 52 | ] |
| 53 | [ |
Theodore Ts'o | caf8ce4 | 1999-10-21 19:56:34 +0000 | [diff] [blame] | 54 | .B \-M |
Theodore Ts'o | 1e3472c | 1997-04-29 14:53:37 +0000 | [diff] [blame] | 55 | .I last-mounted-directory |
| 56 | ] |
| 57 | [ |
Theodore Ts'o | 896938d | 1999-10-23 01:04:50 +0000 | [diff] [blame] | 58 | .B \-O |
| 59 | \fR[^]\fIfeature\fR[,...] |
| 60 | ] |
| 61 | [ |
Theodore Ts'o | caf8ce4 | 1999-10-21 19:56:34 +0000 | [diff] [blame] | 62 | .B \-U |
Theodore Ts'o | 1e3472c | 1997-04-29 14:53:37 +0000 | [diff] [blame] | 63 | .I UUID |
| 64 | ] |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 65 | device |
| 66 | .SH DESCRIPTION |
| 67 | .BI tune2fs |
| 68 | adjusts tunable filesystem parameters on a Linux second extended filesystem. |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 69 | .SH OPTIONS |
| 70 | .TP |
Theodore Ts'o | caf8ce4 | 1999-10-21 19:56:34 +0000 | [diff] [blame] | 71 | .BI \-c " max-mount-counts" |
Theodore Ts'o | 45d9e2f | 2000-07-07 03:12:54 +0000 | [diff] [blame] | 72 | adjust the maximal mounts count between two filesystem checks. If |
| 73 | .I max-mount-counts |
| 74 | is -1 then the number of times the filesystem is mounted will be disregarded |
| 75 | by e2fsck and the kernel. |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 76 | .TP |
Theodore Ts'o | caf8ce4 | 1999-10-21 19:56:34 +0000 | [diff] [blame] | 77 | .BI \-e " error-behavior" |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 78 | change the behavior of the kernel code when errors are detected. |
Theodore Ts'o | 583ccdc | 1997-05-09 03:06:31 +0000 | [diff] [blame] | 79 | .I error-behavior |
| 80 | can be one of the following: |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 81 | .br |
| 82 | \ continue\ \ Continue normal execution. |
| 83 | .br |
Theodore Ts'o | caf8ce4 | 1999-10-21 19:56:34 +0000 | [diff] [blame] | 84 | \ remount-ro\ Remount filesystem read-only. |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 85 | .br |
Theodore Ts'o | 583ccdc | 1997-05-09 03:06:31 +0000 | [diff] [blame] | 86 | \ panic\ \ Cause a kernel panic. |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 87 | .TP |
Theodore Ts'o | caf8ce4 | 1999-10-21 19:56:34 +0000 | [diff] [blame] | 88 | .BI \-g " group" |
Theodore Ts'o | f3db356 | 1997-04-26 13:34:30 +0000 | [diff] [blame] | 89 | set the user group which can benefit from the reserved blocks. |
| 90 | .br |
| 91 | .I group |
Theodore Ts'o | e1c6b2f | 2000-12-02 06:19:33 +0000 | [diff] [blame^] | 92 | can be a numerical gid or a group name. If a group name is given, |
| 93 | it is converted to a numerical gid before it is stored in the superblock. |
Theodore Ts'o | f3db356 | 1997-04-26 13:34:30 +0000 | [diff] [blame] | 94 | .TP |
Theodore Ts'o | caf8ce4 | 1999-10-21 19:56:34 +0000 | [diff] [blame] | 95 | .BI \-i " interval-between-checks\fR[\fBd\fR|\fBm\fR|\fBw\fR]" |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 96 | adjust the maximal time between two filesystem checks. |
Theodore Ts'o | caf8ce4 | 1999-10-21 19:56:34 +0000 | [diff] [blame] | 97 | No postfix or |
| 98 | .B d |
| 99 | result in days, |
| 100 | .B m |
| 101 | in months, and |
| 102 | .B w |
| 103 | in weeks. A value of zero will disable the timedependent checking. |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 104 | .TP |
Theodore Ts'o | caf8ce4 | 1999-10-21 19:56:34 +0000 | [diff] [blame] | 105 | .B \-l |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 106 | list the contents of the filesystem superblock. |
| 107 | .TP |
Theodore Ts'o | caf8ce4 | 1999-10-21 19:56:34 +0000 | [diff] [blame] | 108 | .BI \-m " reserved-blocks-percentage" |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 109 | adjust the reserved blocks percentage on the given device. |
Theodore Ts'o | f3db356 | 1997-04-26 13:34:30 +0000 | [diff] [blame] | 110 | .TP |
Theodore Ts'o | caf8ce4 | 1999-10-21 19:56:34 +0000 | [diff] [blame] | 111 | .BI \-r " reserved-blocks-count" |
Theodore Ts'o | f3db356 | 1997-04-26 13:34:30 +0000 | [diff] [blame] | 112 | adjust the reserved blocks count on the given device. |
| 113 | .TP |
Theodore Ts'o | caf8ce4 | 1999-10-21 19:56:34 +0000 | [diff] [blame] | 114 | .BI \-s " sparse_super_flag" |
Theodore Ts'o | 583ccdc | 1997-05-09 03:06:31 +0000 | [diff] [blame] | 115 | set or reset the sparse_superblock flag. The sparse_superblock feature |
Theodore Ts'o | 521e368 | 1997-04-29 17:48:10 +0000 | [diff] [blame] | 116 | saves space on really big filesystems. |
Theodore Ts'o | a29f4d3 | 1997-04-29 21:26:48 +0000 | [diff] [blame] | 117 | .B Warning: |
| 118 | The Linux 2.0 kernel does not properly support this feature. Neither do |
| 119 | all Linux 2.1 kernels; please don't use this unless you know what you're |
| 120 | doing! |
Theodore Ts'o | 521e368 | 1997-04-29 17:48:10 +0000 | [diff] [blame] | 121 | .TP |
Theodore Ts'o | caf8ce4 | 1999-10-21 19:56:34 +0000 | [diff] [blame] | 122 | .BI \-u " user" |
Theodore Ts'o | f3db356 | 1997-04-26 13:34:30 +0000 | [diff] [blame] | 123 | set the user who can benefit from the reserved blocks. |
| 124 | .I user |
Theodore Ts'o | e1c6b2f | 2000-12-02 06:19:33 +0000 | [diff] [blame^] | 125 | can be a numerical uid or a user name. If a user name is given, it |
| 126 | is converted to a numerical uid before it is stored in the superblock. |
Theodore Ts'o | 1dde43f | 1998-11-14 04:18:28 +0000 | [diff] [blame] | 127 | .TP |
Theodore Ts'o | caf8ce4 | 1999-10-21 19:56:34 +0000 | [diff] [blame] | 128 | .BI \-C " mount-count" |
Theodore Ts'o | 1e3472c | 1997-04-29 14:53:37 +0000 | [diff] [blame] | 129 | set the number of times the filesystem has been mounted. |
| 130 | .TP |
Theodore Ts'o | caf8ce4 | 1999-10-21 19:56:34 +0000 | [diff] [blame] | 131 | .BI \-L " volume-label" |
Theodore Ts'o | a789d84 | 1998-03-30 01:20:55 +0000 | [diff] [blame] | 132 | set the volume label of the filesystem. |
| 133 | Ext2 filesystem labels can be at most 16 characters long; if |
| 134 | .I volume-label |
| 135 | is longer than 16 characters, |
| 136 | .B tune2fs |
| 137 | will truncate it and print a warning message. |
Theodore Ts'o | 1e3472c | 1997-04-29 14:53:37 +0000 | [diff] [blame] | 138 | .TP |
Theodore Ts'o | caf8ce4 | 1999-10-21 19:56:34 +0000 | [diff] [blame] | 139 | .BI \-M " last-mounted-directory" |
Theodore Ts'o | 583ccdc | 1997-05-09 03:06:31 +0000 | [diff] [blame] | 140 | set the last-mounted directory for the filesystem. |
Theodore Ts'o | 1e3472c | 1997-04-29 14:53:37 +0000 | [diff] [blame] | 141 | .TP |
Theodore Ts'o | 896938d | 1999-10-23 01:04:50 +0000 | [diff] [blame] | 142 | .BI \-O " \fR[^]\fIfeature\fR[,...]" |
| 143 | set or clear the indicated filesystem features (options) in the filesystem. |
| 144 | .I Feature |
| 145 | can be one of the following supported filesystem options: |
Theodore Ts'o | bfd2193 | 1999-11-23 13:48:58 +0000 | [diff] [blame] | 146 | .IR sparse_super , |
Theodore Ts'o | e1a0a3e | 2000-02-11 05:00:19 +0000 | [diff] [blame] | 147 | which will cause the filesystem to use sparse superblocks, and |
Theodore Ts'o | 896938d | 1999-10-23 01:04:50 +0000 | [diff] [blame] | 148 | .IR filetype , |
| 149 | which will cause the filesystem to store file type information in |
| 150 | directory entries. After setting or clearing either filesystem feature, |
| 151 | e2fsck must be run on the filesystem. |
| 152 | .TP |
Theodore Ts'o | caf8ce4 | 1999-10-21 19:56:34 +0000 | [diff] [blame] | 153 | .BI \-U " UUID" |
Theodore Ts'o | 1e3472c | 1997-04-29 14:53:37 +0000 | [diff] [blame] | 154 | set the UUID of the filesystem. A sample UUID looks like this: |
Theodore Ts'o | caf8ce4 | 1999-10-21 19:56:34 +0000 | [diff] [blame] | 155 | "c1b9d5a2-f162-11cf-9ece-0020afc76f16". The uuid may also be |
| 156 | .IR null , |
| 157 | which will set the filesystem UUID to the null UUID. The uuid may also be |
| 158 | .IR random , |
| 159 | which will generate a new random UUID for the filesystem. |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 160 | .SH BUGS |
Theodore Ts'o | 583ccdc | 1997-05-09 03:06:31 +0000 | [diff] [blame] | 161 | We haven't found any bugs yet. Perhaps there are bugs but it's unlikely. |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 162 | .SH WARNING |
Theodore Ts'o | caf8ce4 | 1999-10-21 19:56:34 +0000 | [diff] [blame] | 163 | Never use tune2fs to change parameters of a read/write mounted filesystem! |
| 164 | .B Use this utility |
| 165 | .B at your own risk. |
| 166 | You're modifying a filesystem! |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 167 | .SH AUTHOR |
| 168 | .B tune2fs |
Theodore Ts'o | ffe4cab | 2000-04-03 13:27:41 +0000 | [diff] [blame] | 169 | was written by Remy Card <Remy.Card@linux.org>. |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 170 | .B tune2fs |
Theodore Ts'o | a418d3a | 1997-04-26 14:00:26 +0000 | [diff] [blame] | 171 | uses the ext2fs library written by Theodore Ts'o <tytso@mit.edu>. |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 172 | This manual page was written by Christian Kuhtz <chk@data-hh.Hanse.DE>. |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 173 | Timedependent checking was added by Uwe Ohse <uwe@tirka.gun.de>. |
| 174 | .SH AVAILABILITY |
| 175 | .B tune2fs |
Theodore Ts'o | a789d84 | 1998-03-30 01:20:55 +0000 | [diff] [blame] | 176 | is part of the e2fsprogs package and is available for anonymous |
| 177 | ftp from tsx-11.mit.edu in /pub/linux/packages/ext2fs. |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 178 | .SH SEE ALSO |
| 179 | .BR dumpe2fs (8), |
| 180 | .BR e2fsck (8), |
| 181 | .BR mke2fs (8) |