1997-04-26 21:58:21 +08:00
|
|
|
To install the second extended file system management programs,
|
1997-04-26 21:21:57 +08:00
|
|
|
just follow the steps:
|
|
|
|
|
1997-04-26 21:58:21 +08:00
|
|
|
1) Change directory into the top of the e2fsprogs source tree
|
1997-04-26 21:21:57 +08:00
|
|
|
|
1997-04-26 21:58:21 +08:00
|
|
|
2) Create a build directory and cd into it:
|
1997-04-26 21:21:57 +08:00
|
|
|
|
1997-04-26 21:58:21 +08:00
|
|
|
mkdir build; cd build
|
1997-04-26 21:21:57 +08:00
|
|
|
|
1997-04-26 21:58:21 +08:00
|
|
|
3) Run the configure script
|
1997-04-26 21:21:57 +08:00
|
|
|
|
1997-04-26 21:58:21 +08:00
|
|
|
../configure
|
1997-04-26 21:21:57 +08:00
|
|
|
|
2004-11-20 06:06:47 +08:00
|
|
|
If you wish to turn on ELF shared libraries, add the option
|
|
|
|
--enable-elf-shlibs. If you wish to build profiling libraries, add
|
|
|
|
the option --enable-profile.
|
1997-04-26 21:58:21 +08:00
|
|
|
|
2008-07-10 21:08:44 +08:00
|
|
|
Note that if you are building on an older system (i.e., a 2.4
|
|
|
|
kernel and/or glibc 2.2), the use of thread local storage will probably
|
|
|
|
cause programs that use the uuid library to core dump. To disable
|
|
|
|
thread local storage, use the configure option --disable-tls.
|
|
|
|
|
1997-04-26 21:58:21 +08:00
|
|
|
4) Compile the programs
|
|
|
|
|
|
|
|
make
|
|
|
|
|
1997-04-29 23:29:49 +08:00
|
|
|
5) Check to make sure the installation built correctly:
|
|
|
|
|
|
|
|
make check
|
|
|
|
|
|
|
|
6) Install the programs
|
1997-04-26 21:21:57 +08:00
|
|
|
|
|
|
|
Run `make install'
|
|
|
|
|
1997-04-29 23:29:49 +08:00
|
|
|
7) Install the include files and libraries
|
1997-04-26 21:21:57 +08:00
|
|
|
|
|
|
|
You can run `make install-libs' to install the include files and
|
|
|
|
libraries. Please note that this installation is not needed for the
|
|
|
|
programs to work. It is only needed if you expect to develop other
|
1997-04-26 21:32:25 +08:00
|
|
|
programs using the libraries or if you want to compile other program
|
|
|
|
using these libraries (like the 4.4BSD dump and restore port).
|
|
|
|
|
1997-04-29 23:29:49 +08:00
|
|
|
8) Remove any pre-formatted man pages.
|
1997-04-26 21:58:21 +08:00
|
|
|
|
|
|
|
Some distributions will have pre-formatted manual pages which
|
|
|
|
will always be displayed in preference to newer man pages in /usr/man.
|
|
|
|
If this is the case, you may need to manually remove them in order to
|
|
|
|
see the correct manual pages. The shell script in
|
|
|
|
install-utils/remove_preformat_manpages may be helpful in doing so.
|
1997-04-26 21:32:25 +08:00
|
|
|
|
1997-04-29 23:29:49 +08:00
|
|
|
9) Make sure your /etc/fstab file is correct.
|
1997-04-26 21:32:25 +08:00
|
|
|
|
|
|
|
Some distributions install an /etc/fstab which is missing the
|
|
|
|
fifth and sixth field of filesystem entry, which are the dump
|
|
|
|
frequency, and the fsck pass number, respectively. The problem with
|
|
|
|
this is that the getmntent() library routine interprets those missing
|
|
|
|
fields as "0", and a pass number of 0 is documented as meaning that
|
|
|
|
fsck should not check that particular filesystem. If your entries in
|
|
|
|
your /etc/fstab file look liks this:
|
|
|
|
|
|
|
|
/dev/hda4 / ext2 defaults
|
|
|
|
|
|
|
|
you should add "1 1" at the end of each line, so that they look like this:
|
|
|
|
|
|
|
|
/dev/hda4 / ext2 defaults 1 1
|
1997-04-26 21:21:57 +08:00
|
|
|
|
1997-04-26 21:58:21 +08:00
|
|
|
There is a script in install-utils/convfstab (donated by
|
1997-04-26 21:32:25 +08:00
|
|
|
Michael Weller) that may help you correct your /etc/fstab file.
|
1997-04-26 21:21:57 +08:00
|
|
|
|