]> git.ipfire.org Git - thirdparty/e2fsprogs.git/blame - misc/e2image.8.in
pass1.c, pass2.c, problem.c, problem.h: Fix bug introduced by
[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
7e2image \- Save critical ext2 filesystem data to a file
8.SH SYNOPSIS
9.B e2image
10.I device
11.I image-file
12.SH DESCRIPTION
0edb4d85 13The
348e43dc 14.B e2image
0edb4d85 15program will save critical filesystem data on the ext2 filesystem located on
348e43dc 16display or change the filesystem label on the ext2 filesystem located on
0edb4d85
TT
17.I device
18to a file specified by
19.IR image-file .
20The image file may be examined by
21.B dumpe2fs
22and
23.BR debugfs ,
24by using the
25.B \-i
26option to those programs. This can be used by an expert in assisting
27the recovery of catastrophically corrupted filesystems. In the future,
28e2fsck will be enhanced to be able to use the image file to help
29recover a badly damaged filesystem.
30.PP
31It is a very good idea to periodically (at boot time and
32every week or so) to create image files for all of
33filesystems on a system, as well as saving the partition
34layout (which can be generated using the using
35.B fdisk -l
36command). Ideally the image file should be stored on some filesystem
37other that
38the filesystem whose data it contains, to ensure that its data is
39accessible in the case where the filesystem has been badly damaged.
40.PP
41To save disk space,
42.B e2image
43creates the image file as a sparse file.
44Hence, if the image file
45needs to be copied to another location, it should
46either be compressed first or copied using the
47.B \--sparse=always
48option to GNU version of
49.BR cp .
50.PP
51The size of an ext2 image file depends primarily on the size of the
52filesystems and how many inodes are in use. For a typical 10 gigabyte
53filesystem, with 200,000 inodes in use out of 1.2 million inodes, the
54image file be approximately 35 megabytes; a 4 gigabyte filesystem with
5515,000 inodes in use out of 550,000 inodes will result in a 3 megabyte
56image file. Image files tend to be quite
57compressible; a sparse image file taking up 32 megabytes of space on
58disk will generally compress down to 3 or 4 megabytes.
348e43dc
TT
59.PP
60.SH AUTHOR
0edb4d85 61.B e2image
348e43dc
TT
62was written by Theodore Ts'o (tytso@mit.edu).
63.SH AVAILABILITY
64.B e2image
65is part of the e2fsprogs package and is available from anonymous
66http://e2fsprogs.sourceforge.net.
67.SH SEE ALSO
68.BR dumpe2fs (8),
69.BR debugfs (8)
70