Remove unnecessary escape before tab in man pages

Also fixed a number of other minor nits in the resize2fs and e2image
man pages.

Addresses-Debian-Bug: #674453, #674694

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
bitmap-optimize
Theodore Ts'o 2012-05-27 22:03:39 -04:00
parent 9b01faa8b2
commit 4780e8707e
2 changed files with 54 additions and 54 deletions

View File

@ -15,11 +15,11 @@ e2image \- Save critical ext2/ext3/ext4 filesystem metadata to a file
.SH DESCRIPTION .SH DESCRIPTION
The The
.B e2image .B e2image
program will save critical ext2, ext3, or ext4 filesystem metadata located on program will save critical ext2, ext3, or ext4 filesystem metadata located on
.I device .I device
to a file specified by to a file specified by
.IR image-file . .IR image-file .
The image file may be examined by The image file may be examined by
.B dumpe2fs .B dumpe2fs
and and
.BR debugfs , .BR debugfs ,
@ -30,15 +30,15 @@ recovering catastrophically corrupted filesystems. In the future,
e2fsck will be enhanced to be able to use the image file to help e2fsck will be enhanced to be able to use the image file to help
recover a badly damaged filesystem. recover a badly damaged filesystem.
.PP .PP
If If
.I image-file .I image-file
is \-, then the output of is \-, then the output of
.B e2image .B e2image
will be sent to standard output, so that the output can be piped to will be sent to standard output, so that the output can be piped to
another program, such as another program, such as
.BR gzip (1). .BR gzip (1).
(Note that this is currently only supported when (Note that this is currently only supported when
creating a raw image file using the creating a raw image file using the
.B \-r .B \-r
option, since the process of creating a normal image file, or QCOW2 option, since the process of creating a normal image file, or QCOW2
image currently image currently
@ -48,21 +48,21 @@ pipe. This restriction will hopefully be lifted in a future version of
.PP .PP
It is a very good idea to create image files for all of It is a very good idea to create image files for all of
filesystems on a system and save the partition filesystems on a system and save the partition
layout (which can be generated using the layout (which can be generated using the
.B fdisk \-l .B fdisk \-l
command) at regular intervals --- at boot time, and/or every week or so. command) at regular intervals --- at boot time, and/or every week or so.
The image file should be stored on some filesystem other than The image file should be stored on some filesystem other than
the filesystem whose data it contains, to ensure that this data is the filesystem whose data it contains, to ensure that this data is
accessible in the case where the filesystem has been badly damaged. accessible in the case where the filesystem has been badly damaged.
.PP .PP
To save disk space, To save disk space,
.B e2image .B e2image
creates the image file as a sparse file, or in QCOW2 format. creates the image file as a sparse file, or in QCOW2 format.
Hence, if the sparse image file Hence, if the sparse image file
needs to be copied to another location, it should needs to be copied to another location, it should
either be compressed first or copied using the either be compressed first or copied using the
.B \-\-sparse=always .B \-\-sparse=always
option to the GNU version of option to the GNU version of
.BR cp . .BR cp .
This does not apply to the QCOW2 image, which is not sparse. This does not apply to the QCOW2 image, which is not sparse.
.PP .PP
@ -77,15 +77,15 @@ disk will generally compress down to 3 or 4 megabytes.
.PP .PP
.SH RESTORING FILESYSTEM METADATA USING AN IMAGE FILE .SH RESTORING FILESYSTEM METADATA USING AN IMAGE FILE
.PP .PP
The The
.B \-I .B \-I
option will cause e2image to install the metadata stored in the image option will cause e2image to install the metadata stored in the image
file back to the device. It can be used to restore the filesystem metadata file back to the device. It can be used to restore the filesystem metadata
back to the device in emergency situations. back to the device in emergency situations.
.PP .PP
.B WARNING!!!! .B WARNING!!!!
The The
.B \-I .B \-I
option should only be used as a desperation measure when other option should only be used as a desperation measure when other
alternatives have failed. If the filesystem has changed since the image alternatives have failed. If the filesystem has changed since the image
file was created, data file was created, data
@ -95,13 +95,13 @@ backup of the filesystem first, in case you wish to try other recovery
strategies afterwards. strategies afterwards.
.PP .PP
.SH RAW IMAGE FILES .SH RAW IMAGE FILES
The The
.B \-r .B \-r
option will create a raw image file instead of a normal image file. option will create a raw image file instead of a normal image file.
A raw image file differs A raw image file differs
from a normal image file in two ways. First, the filesystem metadata is from a normal image file in two ways. First, the filesystem metadata is
placed in the proper position so that e2fsck, dumpe2fs, debugfs, placed in the proper position so that e2fsck, dumpe2fs, debugfs,
etc. can be run directly on the raw image file. In order to minimize etc.\& can be run directly on the raw image file. In order to minimize
the amount of disk space consumed by a raw image file, the file is the amount of disk space consumed by a raw image file, the file is
created as a sparse file. (Beware of copying or created as a sparse file. (Beware of copying or
compressing/decompressing this file with utilities that don't understand compressing/decompressing this file with utilities that don't understand
@ -115,18 +115,18 @@ as part of bug reports to e2fsprogs. When used in this capacity, the
recommended command is as follows (replace hda1 with the appropriate device): recommended command is as follows (replace hda1 with the appropriate device):
.PP .PP
.br .br
\ \fBe2image \-r /dev/hda1 \- | bzip2 > hda1.e2i.bz2\fR \fBe2image \-r /dev/hda1 \- | bzip2 > hda1.e2i.bz2\fR
.PP .PP
This will only send the metadata information, without any data blocks. This will only send the metadata information, without any data blocks.
However, the filenames in the directory blocks can still reveal However, the filenames in the directory blocks can still reveal
information about the contents of the filesystem that the bug reporter information about the contents of the filesystem that the bug reporter
may wish to keep confidential. To address this concern, the may wish to keep confidential. To address this concern, the
.B \-s .B \-s
option can be specified. This will cause option can be specified. This will cause
.B e2image .B e2image
to scramble directory entries and zero out any unused portions to scramble directory entries and zero out any unused portions
of the directory blocks before writing the image file. However, of the directory blocks before writing the image file. However,
the the
.B \-s .B \-s
option will prevent analysis of problems related to hash-tree indexed option will prevent analysis of problems related to hash-tree indexed
directories. directories.
@ -172,11 +172,11 @@ such as for example
.BR qemu-img . .BR qemu-img .
.PP .PP
.SH AUTHOR .SH AUTHOR
.B e2image .B e2image
was written by Theodore Ts'o (tytso@mit.edu). was written by Theodore Ts'o (tytso@mit.edu).
.SH AVAILABILITY .SH AVAILABILITY
.B e2image .B e2image
is part of the e2fsprogs package and is available from is part of the e2fsprogs package and is available from
http://e2fsprogs.sourceforge.net. http://e2fsprogs.sourceforge.net.
.SH SEE ALSO .SH SEE ALSO
.BR dumpe2fs (8), .BR dumpe2fs (8),

View File

@ -11,7 +11,7 @@ resize2fs \- ext2/ext3/ext4 file system resizer
.B \-fFpPM .B \-fFpPM
] ]
[ [
.B \-d .B \-d
.I debug-flags .I debug-flags
] ]
[ [
@ -23,31 +23,31 @@ resize2fs \- ext2/ext3/ext4 file system resizer
.I size .I size
] ]
.SH DESCRIPTION .SH DESCRIPTION
The The
.B resize2fs .B resize2fs
program will resize ext2, ext3, or ext4 file systems. It can be used to program will resize ext2, ext3, or ext4 file systems. It can be used to
enlarge or shrink an unmounted file system located on enlarge or shrink an unmounted file system located on
.IR device . .IR device .
If the filesystem is mounted, it can be used to expand the size of the If the filesystem is mounted, it can be used to expand the size of the
mounted filesystem, assuming the kernel supports on-line resizing. (As mounted filesystem, assuming the kernel supports on-line resizing. (As
of this writing, the Linux 2.6 kernel supports on-line resize for of this writing, the Linux 2.6 kernel supports on-line resize for
filesystems mounted using ext3 and ext4.). filesystems mounted using ext3 and ext4.).
.PP .PP
The The
.I size .I size
parameter specifies the requested new size of the filesystem. parameter specifies the requested new size of the filesystem.
If no units are specified, the units of the If no units are specified, the units of the
.I size .I size
parameter shall be the filesystem blocksize of the filesystem. parameter shall be the filesystem blocksize of the filesystem.
Optionally, the Optionally, the
.I size .I size
parameter may be suffixed by one of the following the units parameter may be suffixed by one of the following the units
designators: 's', 'K', 'M', or 'G', designators: 's', 'K', 'M', or 'G',
for 512 byte sectors, kilobytes, megabytes, or gigabytes, respectively. for 512 byte sectors, kilobytes, megabytes, or gigabytes, respectively.
The The
.I size .I size
of the filesystem may never be larger than the size of the partition. of the filesystem may never be larger than the size of the partition.
If If
.I size .I size
parameter is not specified, it will default to the size of the partition. parameter is not specified, it will default to the size of the partition.
.PP .PP
@ -63,50 +63,50 @@ The
.B resize2fs .B resize2fs
program does not manipulate the size of partitions. If you wish to enlarge program does not manipulate the size of partitions. If you wish to enlarge
a filesystem, you must make sure you can expand the size of the a filesystem, you must make sure you can expand the size of the
underlying partition first. This can be done using underlying partition first. This can be done using
.BR fdisk (8) .BR fdisk (8)
by deleting the partition and recreating it with a larger size or using by deleting the partition and recreating it with a larger size or using
.BR lvextend (8), .BR lvextend (8),
if you're using the logical volume manager if you're using the logical volume manager
.BR lvm (8). .BR lvm (8).
When When
recreating the partition, make sure you create it with the same starting recreating the partition, make sure you create it with the same starting
disk cylinder as before! Otherwise, the resize operation will disk cylinder as before! Otherwise, the resize operation will
certainly not work, and you may lose your entire filesystem. certainly not work, and you may lose your entire filesystem.
After running After running
.BR fdisk (8), .BR fdisk (8),
run resize2fs to resize the ext2 filesystem run resize2fs to resize the ext2 filesystem
to use all of the space in the newly enlarged partition. to use all of the space in the newly enlarged partition.
.PP .PP
If you wish to shrink an ext2 partition, first use If you wish to shrink an ext2 partition, first use
.B resize2fs .B resize2fs
to shrink the size of filesystem. Then you may use to shrink the size of filesystem. Then you may use
.BR fdisk (8) .BR fdisk (8)
to shrink the size of the partition. When shrinking the size of to shrink the size of the partition. When shrinking the size of
the partition, make sure you do not make it smaller than the new size the partition, make sure you do not make it smaller than the new size
of the ext2 filesystem! of the ext2 filesystem!
.SH OPTIONS .SH OPTIONS
.TP .TP
.B \-d \fIdebug-flags .B \-d \fIdebug-flags
Turns on various resize2fs debugging features, if they have been compiled Turns on various resize2fs debugging features, if they have been compiled
into the binary. into the binary.
.I debug-flags .I debug-flags
should be computed by adding the numbers of the desired features should be computed by adding the numbers of the desired features
from the following list: from the following list:
.br .br
\ 2\ \-\ Debug block relocations 2 \-\ Debug block relocations
.br .br
\ 4\ \-\ Debug inode relocations 4 \-\ Debug inode relocations
.br .br
\ 8\ \-\ Debug moving the inode table 8 \-\ Debug moving the inode table
.TP .TP
.B \-f .B \-f
Forces resize2fs to proceed with the filesystem resize operation, overriding Forces resize2fs to proceed with the filesystem resize operation, overriding
some safety checks which resize2fs normally enforces. some safety checks which resize2fs normally enforces.
.TP .TP
.B \-F .B \-F
Flush the filesystem device's buffer caches before beginning. Only Flush the filesystem device's buffer caches before beginning. Only
really useful for doing really useful for doing
.B resize2fs .B resize2fs
time trials. time trials.
.TP .TP
@ -116,7 +116,7 @@ Shrink the filesystem to the minimum size.
.B \-p .B \-p
Prints out a percentage completion bars for each Prints out a percentage completion bars for each
.B resize2fs .B resize2fs
operation during an offline resize, so that the user can keep track operation during an offline resize, so that the user can keep track
of what the program is doing. of what the program is doing.
.TP .TP
.B \-P .B \-P
@ -136,7 +136,7 @@ incorrect, especially for filesystems with 1k and 2k blocksizes.
was written by Theodore Ts'o <tytso@mit.edu>. was written by Theodore Ts'o <tytso@mit.edu>.
.SH COPYRIGHT .SH COPYRIGHT
Resize2fs is Copyright 1998 by Theodore Ts'o and PowerQuest, Inc. All Resize2fs is Copyright 1998 by Theodore Ts'o and PowerQuest, Inc. All
rights reserved. rights reserved.
As of April, 2000 As of April, 2000
.B Resize2fs .B Resize2fs
may be redistributed under the terms of the GPL. may be redistributed under the terms of the GPL.
@ -144,5 +144,5 @@ may be redistributed under the terms of the GPL.
.BR fdisk (8), .BR fdisk (8),
.BR e2fsck (8), .BR e2fsck (8),
.BR mke2fs (8), .BR mke2fs (8),
.BR lvm (8), .BR lvm (8),
.BR lvextend (8) .BR lvextend (8)