e2fsprogs/ext2ed
Theodore Ts'o b5ffeadece Integrate ext2ed into the e2fsprogs build system, and make minimal changes so
that it will compile on modern systems.  The top-level makefile does not recurse
into the ext2ed directory for now, pending determination of whether the original
author is still maintaining ext2ed.

The documentation files have been renamed to remove the version from the filename.
In addition, the SGML files have been converted from LinuxDoc to DocBook.

The way root_bindir, root_sbindir, and root_libdir have been changed so that 
if root_prefix is not set, the values set by the configure command-line options to
set the directory names using --bindir, --sbindir, --libdir will affect the
root_bindir, et.al Makefile variables.
2002-05-11 19:17:00 -04:00
..
doc Integrate ext2ed into the e2fsprogs build system, and make minimal changes so 2002-05-11 19:17:00 -04:00
COPYRIGHT Check in ext2ed version 0.1 2002-05-11 13:00:22 -04:00
ChangeLog Integrate ext2ed into the e2fsprogs build system, and make minimal changes so 2002-05-11 19:17:00 -04:00
Makefile.in Integrate ext2ed into the e2fsprogs build system, and make minimal changes so 2002-05-11 19:17:00 -04:00
README Checked in changes from ext2ed version 0.2. 2002-05-11 13:03:25 -04:00
blockbitmap_com.c Check in ext2ed version 0.1 2002-05-11 13:00:22 -04:00
dir_com.c Checked in changes from ext2ed version 0.2. 2002-05-11 13:03:25 -04:00
disk.c Check in ext2ed version 0.1 2002-05-11 13:00:22 -04:00
ext2.descriptors Check in ext2ed version 0.1 2002-05-11 13:00:22 -04:00
ext2_com.c Check in ext2ed version 0.1 2002-05-11 13:00:22 -04:00
ext2ed.8.in Integrate ext2ed into the e2fsprogs build system, and make minimal changes so 2002-05-11 19:17:00 -04:00
ext2ed.conf.in Integrate ext2ed into the e2fsprogs build system, and make minimal changes so 2002-05-11 19:17:00 -04:00
ext2ed.h Integrate ext2ed into the e2fsprogs build system, and make minimal changes so 2002-05-11 19:17:00 -04:00
file_com.c Check in ext2ed version 0.1 2002-05-11 13:00:22 -04:00
general_com.c Checked in changes from ext2ed version 0.2. 2002-05-11 13:03:25 -04:00
group_com.c Check in ext2ed version 0.1 2002-05-11 13:00:22 -04:00
init.c Integrate ext2ed into the e2fsprogs build system, and make minimal changes so 2002-05-11 19:17:00 -04:00
inode_com.c Checked in changes from ext2ed version 0.2. 2002-05-11 13:03:25 -04:00
inodebitmap_com.c Check in ext2ed version 0.1 2002-05-11 13:00:22 -04:00
main.c Checked in changes from ext2ed version 0.2. 2002-05-11 13:03:25 -04:00
super_com.c Check in ext2ed version 0.1 2002-05-11 13:00:22 -04:00
win.c Checked in changes from ext2ed version 0.2. 2002-05-11 13:03:25 -04:00

README

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 missunderstanding between ncurses and
readline.

I first applied patches from Redhat 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 percompiled 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