summaryrefslogtreecommitdiffstats
path: root/ext2ed/README
blob: 1f473cf4b119697d4b34888ac5ff63a7092ba1a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
ext2ed - The extended-2 filesystem editor, version e2fsprogs


This version of ext2ed has been modified and updated by Theodore Ts'o
for inclusion with the e2fsprogs package.  It now builds with modern
ncurses and I've fixed various small bugs, particular in the redrawing
and resizing functions.

It is currently not built by default -- the top-level e2fsprogs
Makefile doesn't recurse into this directory.  This is because ext2ed
has a number of VERY SERIOUS shortcomings:

1)  It doesn't work on filesystems bigger than 2GB

2)  It assumes that all's the world an Intel, and assumes that
	everything is in Intel (little-endian) byte order.

Fixing either of these problems would be non-trivial, and so I at this
point DO NOT RECOMMEND that distributions try to include this program,
even as modified and updated in e2fsprogs.  This especially goes for
Debian, where the Debian maintainer for e2fsprogs has a history of
making authorized changes to e2fsprogs to include programs that aren't
supported, and then starts bugging me with bug reports.  YES I KNOW.
THIS PROGRAM HAS HORRIBLE SHORTCOMINGS.  IT IS INCLUDED HERE ONLY
BECAUSE IT'S A CONVENIENT WAY FOR (FOR E2FSPROGS DEVELOPERS ON INTEL
MACHINES) TO GENERATE TEST CASES BY SELECTIVELY CORRUPTING
FILESYSTEMS.  I WILL NOT SUPPORT THIS PROGRAM FOR USE BY GENERAL USERS
SO PLEASE DO NOT INCLUDE IT IN A DISTRIBUTION.

I have currently disabled the use of GNU Readline in this program,
because readline and ncurses really don't play well together at all.
Readline assumes that it can write arbitrary text to the screen
(especially when it tries to print out a completion list), which just
doesn't work with ncurses.  Fixing this so they would work together
would require wholesale changes to readline.   

				Theodore Ts'o
				tytso@MIT.EDU
				May 12, 2001

----------------------------------------------------------------------------

ext2ed - The extended-2 filesystem editor, version 0.2
------------------------------------------------------

This is version 0.2 of ext2ed - The extended-2 filesystem editor.

Modifications on Apr 5 2001
This is minor bug fixes to ext2ed, as of April 2001.
It supports modern ext2 version that has file type in directory structure
and fixes the misunderstanding between ncurses and
readline.

I first applied patches from Red Hat except the one for readline that 
rewrote a readline behavior.

Globals diffs between version 0.1 and 0.2 is stored in file :
	diff-ext2ed.1.2

Christian Bac <Christian.Bac@nt-evry.fr>

----------------------------------------------------------------------------

Documentation
-------------

ext2ed's documentation consists of three documents:

1.	The user's guide.
2.	Technical overview of the ext2 filesystem.
3.	The EXT2ED design and implementation document.

Those documents are available in the doc directory, in linuxdoc-sgml and
postscript formats.

The documentation is also available online at:

http://tochnapc2.technion.ac.il

under the ext2ed section.

Installation
------------

ext2ed requires the kernel sources and the readline and ncurses packages.
Please edit the makefile if you are using an "old" version of ncurses (See the
details below) or if gcc can't find the various header files and libraries.

To install, simply issue a 'make' command to compile and a 'make install'
command to install. I have also included an already compiled linux a.out
binary.

ext2ed and ncurses
------------------

ext2ed uses the ncurses library for terminal output. It is very important
that ncurses will be properly installed on your system:

1.	Old versions of ncurses (around 1.8.5) need the OLD_NCURSES compile
	time option in EXT2ED.

	At least from 1.9.2c, this flag should not be used. I would recommend
	upgrading the ncurses library to the newer versions.

2.	ncurses uses its own terminfo database rather then the termcap file.
	It is important that the terminfo database will be found by ncurses.
	If this is not the case, you will see on startup some lines which
	refer to /etc/termcap. This will mean that there is a problem with
	the terminfo database.

3.	Newer versions of ncurses (and the 1.3 series of the kernel) describe
	the linux console in the entry 'linux' and not 'console', as it was
	before. If you run ext2ed in the linux console, you should either
	set your TERM environment variable to 'linux' or link
	l/linux to c/console in the terminfo database.

4.	The precompiled binary was linked with ncurses 1.9.4 and will search
	for the terminfo database on /usr/local/lib/terminfo. If you are
	using it, and your 1.9.4 compatible terminfo database is not on the
	directory above, use the TERMINFO environment variable to specify
	an alternate location.

Running ext2ed
--------------

For those of you who don't like reading lengthy articles, here are a few
basic guidelines:

1.	Don't use ext2ed to change a mounted filesystem !

	Using ext2ed in read-only mode on a mounted filesystem can be allowed
	by using the configuration file option 'AllowMountedRead on'. However,
	note that the displayed data will be unreliable.

2.	ext2ed currently can't handle filesystems bigger than 2 GB. I am
	sorry for the inconvenience. This will hopefully be fixed in future
	releases.

3. 	Before running ext2ed, edit the configuration file
	/var/lib/ext2ed/ext2ed.conf to suit your needs. The various
	configuration options are documented there.

4.	Use the 'setdevice' command to open an ext2 filesystem.
	e.g. 'setdevice /dev/hda1'.

5.	If the filesystem is an ext2 filesystem and ext2ed fails to
	autodetect this, use the 'ForceExt2 on' configuration file option.

6.	The filesystem will always be opened in read-only mode. Feel free to
	experiment, but take care with the 'enablewrite' command.

-----------------------------------------------------------------------------

Feel free to send me feedback with anything regarding to ext2ed.

Enjoy,

Gadi Oxman <tgud@tochnapc2.technion.ac.il>
Haifa, August 23 1995