]> git.ipfire.org Git - thirdparty/e2fsprogs.git/blame - misc/e2image.8.in
pass1.c (process_block): Change the limit of directory size from
[thirdparty/e2fsprogs.git] / misc / e2image.8.in
CommitLineData
348e43dc
TT
1.\" -*- nroff -*-
2.\" Copyright 2001 by Theodore Ts'o. All Rights Reserved.
3.\" This file may be copied under the terms of the GNU Public License.
4.\"
5.TH E2IMAGE 8 "@E2FSPROGS_MONTH@ @E2FSPROGS_YEAR@" "E2fsprogs version @E2FSPROGS_VERSION@"
6.SH NAME
a7ac1df3 7e2image \- Save critical ext2/ext3 filesystem data to a file
348e43dc
TT
8.SH SYNOPSIS
9.B e2image
6304baf2
TT
10[
11.B \-r
12]
348e43dc
TT
13.I device
14.I image-file
15.SH DESCRIPTION
0edb4d85 16The
348e43dc 17.B e2image
0edb4d85 18program will save critical filesystem data on the ext2 filesystem located on
0edb4d85
TT
19.I device
20to a file specified by
21.IR image-file .
22The image file may be examined by
23.B dumpe2fs
24and
25.BR debugfs ,
26by using the
27.B \-i
28option to those programs. This can be used by an expert in assisting
29the recovery of catastrophically corrupted filesystems. In the future,
30e2fsck will be enhanced to be able to use the image file to help
31recover a badly damaged filesystem.
32.PP
1c1e0049
TT
33If
34.I image-file
35is -, then the output of
36.B e2image
8ac59297
TT
37will be sent to standard output, so that the output can be piped to
38another program, such as
39.BR gzip (1).
40(Note that is currently only supported when
41creating a raw image file using the
42.B \-r
43option, since the process of creating a normal image file currently
44requires random-access access to the file, which can not be done using a
45pipe. This restriction will hopefully be lifted in a future version of
46.BR e2image .)
1c1e0049 47.PP
6304baf2
TT
48The
49.B \-r
1c1e0049
TT
50option will create a raw image file instead of a normal image file.
51A raw image file differs
6304baf2
TT
52from a normal image file in two ways. First, the filesystem metadata is
53placed in the proper position so that e2fsck, dumpe2fs, debugfs,
54etc. can be run directly on the raw image file. In order to minimize
55the amount of disk space consumed by a raw image file, the file is
56created as a sparse file. (Beware of copying or
57compressing/decompressing this file with utilities that don't understand
58how to create sparse files; the file will become as large as the
59filesystem itself!) Secondly, the raw image file also includes indirect
1c1e0049 60blocks and data blocks, which the current image file does not have,
6304baf2
TT
61although this may change in the future.
62.PP
0edb4d85
TT
63It is a very good idea to periodically (at boot time and
64every week or so) to create image files for all of
65filesystems on a system, as well as saving the partition
66layout (which can be generated using the using
67.B fdisk -l
68command). Ideally the image file should be stored on some filesystem
69other that
70the filesystem whose data it contains, to ensure that its data is
71accessible in the case where the filesystem has been badly damaged.
72.PP
73To save disk space,
74.B e2image
75creates the image file as a sparse file.
76Hence, if the image file
77needs to be copied to another location, it should
78either be compressed first or copied using the
79.B \--sparse=always
80option to GNU version of
81.BR cp .
82.PP
83The size of an ext2 image file depends primarily on the size of the
84filesystems and how many inodes are in use. For a typical 10 gigabyte
85filesystem, with 200,000 inodes in use out of 1.2 million inodes, the
86image file be approximately 35 megabytes; a 4 gigabyte filesystem with
8715,000 inodes in use out of 550,000 inodes will result in a 3 megabyte
88image file. Image files tend to be quite
6304baf2 89compressible; an image file taking up 32 megabytes of space on
0edb4d85 90disk will generally compress down to 3 or 4 megabytes.
348e43dc
TT
91.PP
92.SH AUTHOR
0edb4d85 93.B e2image
348e43dc
TT
94was written by Theodore Ts'o (tytso@mit.edu).
95.SH AVAILABILITY
96.B e2image
97is part of the e2fsprogs package and is available from anonymous
98http://e2fsprogs.sourceforge.net.
99.SH SEE ALSO
100.BR dumpe2fs (8),
101.BR debugfs (8)
102