Whamcloud - gitweb
Many files:
[tools/e2fsprogs.git] / INSTALL
1         To install the second extended file system management programs,
2 just follow the steps:
3
4 1) Change directory into the top of the e2fsprogs source tree
5
6 2) Create a build directory and cd into it:
7
8         mkdir build; cd build
9
10 3)  Run the configure script
11
12         ../configure
13
14         If you wish to turn on DLL shared libraries, add the option
15 flag --enable-dll-shlibs.  If you wish to turn on ELF shared
16 libraries, add the option --enable-elf-shlibs.  If you wish to build
17 profiling libraries, add the option --enable-profile.
18
19 4)  Compile the programs
20
21         make
22
23 5) Install the programs
24
25         Run `make install'
26
27 6) Install the include files and libraries
28
29         You can run `make install-libs' to install the include files and
30 libraries.  Please note that this installation is not needed for the
31 programs to work.  It is only needed if you expect to develop other
32 programs using the libraries or if you want to compile other program
33 using these libraries (like the 4.4BSD dump and restore port).
34
35 7) Remove any pre-formatted man pages.  
36
37         Some distributions will have pre-formatted manual pages which
38 will always be displayed in preference to newer man pages in /usr/man.
39 If this is the case, you may need to manually remove them in order to
40 see the correct manual pages.  The shell script in
41 install-utils/remove_preformat_manpages may be helpful in doing so.
42
43 8) Make sure your /etc/fstab file is correct.
44
45         Some distributions install an /etc/fstab which is missing the
46 fifth and sixth field of filesystem entry, which are the dump
47 frequency, and the fsck pass number, respectively.  The problem with
48 this is that the getmntent() library routine interprets those missing
49 fields as "0", and a pass number of 0 is documented as meaning that
50 fsck should not check that particular filesystem.  If your entries in
51 your /etc/fstab file look liks this:
52
53 /dev/hda4       /        ext2        defaults
54
55 you should add "1 1" at the end of each line, so that they look like this:
56
57 /dev/hda4       /        ext2        defaults   1       1
58
59         There is a script in install-utils/convfstab (donated by
60 Michael Weller) that may help you correct your /etc/fstab file.
61