blob: d410469f2ea61f8a6126cf0c4c76b417a7f65f42 [file] [log] [blame]
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001 To install the second extended file system management programs,
Theodore Ts'o3839e651997-04-26 13:21:57 +00002just follow the steps:
3
Theodore Ts'o50e1e101997-04-26 13:58:21 +000041) Change directory into the top of the e2fsprogs source tree
Theodore Ts'o3839e651997-04-26 13:21:57 +00005
Theodore Ts'o50e1e101997-04-26 13:58:21 +000062) Create a build directory and cd into it:
Theodore Ts'o3839e651997-04-26 13:21:57 +00007
Theodore Ts'o50e1e101997-04-26 13:58:21 +00008 mkdir build; cd build
Theodore Ts'o3839e651997-04-26 13:21:57 +00009
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000103) Run the configure script
Theodore Ts'o3839e651997-04-26 13:21:57 +000011
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012 ../configure
Theodore Ts'o3839e651997-04-26 13:21:57 +000013
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050014 If you wish to turn on ELF shared libraries, add the option
15--enable-elf-shlibs. If you wish to build profiling libraries, add
16the option --enable-profile.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000017
184) Compile the programs
19
20 make
21
Theodore Ts'o5c576471997-04-29 15:29:49 +0000225) Check to make sure the installation built correctly:
23
24 make check
25
266) Install the programs
Theodore Ts'o3839e651997-04-26 13:21:57 +000027
28 Run `make install'
29
Theodore Ts'o5c576471997-04-29 15:29:49 +0000307) Install the include files and libraries
Theodore Ts'o3839e651997-04-26 13:21:57 +000031
32 You can run `make install-libs' to install the include files and
33libraries. Please note that this installation is not needed for the
34programs to work. It is only needed if you expect to develop other
Theodore Ts'o6f4a1091997-04-26 13:32:25 +000035programs using the libraries or if you want to compile other program
36using these libraries (like the 4.4BSD dump and restore port).
Theodore Ts'o3839e651997-04-26 13:21:57 +000037
Theodore Ts'o5c576471997-04-29 15:29:49 +0000388) Remove any pre-formatted man pages.
Theodore Ts'o3839e651997-04-26 13:21:57 +000039
Theodore Ts'o50e1e101997-04-26 13:58:21 +000040 Some distributions will have pre-formatted manual pages which
41will always be displayed in preference to newer man pages in /usr/man.
42If this is the case, you may need to manually remove them in order to
43see the correct manual pages. The shell script in
44install-utils/remove_preformat_manpages may be helpful in doing so.
45
Theodore Ts'o5c576471997-04-29 15:29:49 +0000469) Make sure your /etc/fstab file is correct.
Theodore Ts'o6f4a1091997-04-26 13:32:25 +000047
48 Some distributions install an /etc/fstab which is missing the
49fifth and sixth field of filesystem entry, which are the dump
50frequency, and the fsck pass number, respectively. The problem with
51this is that the getmntent() library routine interprets those missing
52fields as "0", and a pass number of 0 is documented as meaning that
53fsck should not check that particular filesystem. If your entries in
54your /etc/fstab file look liks this:
55
56/dev/hda4 / ext2 defaults
57
58you should add "1 1" at the end of each line, so that they look like this:
59
60/dev/hda4 / ext2 defaults 1 1
61
Theodore Ts'o50e1e101997-04-26 13:58:21 +000062 There is a script in install-utils/convfstab (donated by
Theodore Ts'o6f4a1091997-04-26 13:32:25 +000063Michael Weller) that may help you correct your /etc/fstab file.
64