xref: /aosp_15_r20/external/e2fsprogs/INSTALL (revision 6a54128f25917bfc36a8a6e9d722c04a0b4641b6)
1*6a54128fSAndroid Build Coastguard Worker	To install the second extended file system management programs,
2*6a54128fSAndroid Build Coastguard Workerjust follow the steps:
3*6a54128fSAndroid Build Coastguard Worker
4*6a54128fSAndroid Build Coastguard Worker1) Change directory into the top of the e2fsprogs source tree
5*6a54128fSAndroid Build Coastguard Worker
6*6a54128fSAndroid Build Coastguard Worker2) Create a build directory and cd into it:
7*6a54128fSAndroid Build Coastguard Worker
8*6a54128fSAndroid Build Coastguard Worker	mkdir build; cd build
9*6a54128fSAndroid Build Coastguard Worker
10*6a54128fSAndroid Build Coastguard Worker3)  Run the configure script
11*6a54128fSAndroid Build Coastguard Worker
12*6a54128fSAndroid Build Coastguard Worker	../configure
13*6a54128fSAndroid Build Coastguard Worker
14*6a54128fSAndroid Build Coastguard Worker	If you wish to turn on ELF shared libraries, add the option
15*6a54128fSAndroid Build Coastguard Worker--enable-elf-shlibs.  If you wish to build profiling libraries, add
16*6a54128fSAndroid Build Coastguard Workerthe option --enable-profile.
17*6a54128fSAndroid Build Coastguard Worker
18*6a54128fSAndroid Build Coastguard Worker	Note that if you are building on an older system (i.e., a 2.4
19*6a54128fSAndroid Build Coastguard Workerkernel and/or glibc 2.2), the use of thread local storage will probably
20*6a54128fSAndroid Build Coastguard Workercause programs that use the uuid library to core dump.  To disable
21*6a54128fSAndroid Build Coastguard Workerthread local storage, use the configure option --disable-tls.
22*6a54128fSAndroid Build Coastguard Worker
23*6a54128fSAndroid Build Coastguard Worker4)  Compile the programs
24*6a54128fSAndroid Build Coastguard Worker
25*6a54128fSAndroid Build Coastguard Worker	make
26*6a54128fSAndroid Build Coastguard Worker
27*6a54128fSAndroid Build Coastguard Worker5)   Check to make sure the installation built correctly:
28*6a54128fSAndroid Build Coastguard Worker
29*6a54128fSAndroid Build Coastguard Worker	make check
30*6a54128fSAndroid Build Coastguard Worker
31*6a54128fSAndroid Build Coastguard Worker6)  Install the programs
32*6a54128fSAndroid Build Coastguard Worker
33*6a54128fSAndroid Build Coastguard Worker	Run `make install'
34*6a54128fSAndroid Build Coastguard Worker
35*6a54128fSAndroid Build Coastguard Worker7)  Install the include files and libraries
36*6a54128fSAndroid Build Coastguard Worker
37*6a54128fSAndroid Build Coastguard Worker	You can run `make install-libs' to install the include files and
38*6a54128fSAndroid Build Coastguard Workerlibraries.  Please note that this installation is not needed for the
39*6a54128fSAndroid Build Coastguard Workerprograms to work.  It is only needed if you expect to develop other
40*6a54128fSAndroid Build Coastguard Workerprograms using the libraries or if you want to compile other program
41*6a54128fSAndroid Build Coastguard Workerusing these libraries (like the 4.4BSD dump and restore port).
42*6a54128fSAndroid Build Coastguard Worker
43*6a54128fSAndroid Build Coastguard Worker8)  Remove any pre-formatted man pages.
44*6a54128fSAndroid Build Coastguard Worker
45*6a54128fSAndroid Build Coastguard Worker	Some distributions will have pre-formatted manual pages which
46*6a54128fSAndroid Build Coastguard Workerwill always be displayed in preference to newer man pages in /usr/man.
47*6a54128fSAndroid Build Coastguard WorkerIf this is the case, you may need to manually remove them in order to
48*6a54128fSAndroid Build Coastguard Workersee the correct manual pages.  The shell script in
49*6a54128fSAndroid Build Coastguard Workerinstall-utils/remove_preformat_manpages may be helpful in doing so.
50*6a54128fSAndroid Build Coastguard Worker
51*6a54128fSAndroid Build Coastguard Worker9)  Make sure your /etc/fstab file is correct.
52*6a54128fSAndroid Build Coastguard Worker
53*6a54128fSAndroid Build Coastguard Worker	Some distributions install an /etc/fstab which is missing the
54*6a54128fSAndroid Build Coastguard Workerfifth and sixth field of filesystem entry, which are the dump
55*6a54128fSAndroid Build Coastguard Workerfrequency, and the fsck pass number, respectively.  The problem with
56*6a54128fSAndroid Build Coastguard Workerthis is that the getmntent() library routine interprets those missing
57*6a54128fSAndroid Build Coastguard Workerfields as "0", and a pass number of 0 is documented as meaning that
58*6a54128fSAndroid Build Coastguard Workerfsck should not check that particular filesystem.  If your entries in
59*6a54128fSAndroid Build Coastguard Workeryour /etc/fstab file look like this:
60*6a54128fSAndroid Build Coastguard Worker
61*6a54128fSAndroid Build Coastguard Worker/dev/hda4       /        ext2        defaults
62*6a54128fSAndroid Build Coastguard Worker
63*6a54128fSAndroid Build Coastguard Workeryou should add "1 1" at the end of each line, so that they look like this:
64*6a54128fSAndroid Build Coastguard Worker
65*6a54128fSAndroid Build Coastguard Worker/dev/hda4       /        ext2        defaults	1	1
66*6a54128fSAndroid Build Coastguard Worker
67*6a54128fSAndroid Build Coastguard Worker	There is a script in install-utils/convfstab (donated by
68*6a54128fSAndroid Build Coastguard WorkerMichael Weller) that may help you correct your /etc/fstab file.
69*6a54128fSAndroid Build Coastguard Worker
70