The Ftape Installation Guide - Installation
NOTE: You have to be `
root
' to install the driver. Either you login as root or do a `su
' at the shell prompt.
The makefile contains an `install
' target. Before actually running
`make install
' you should check MCONFIG for correctness of
the installation prefixes. The following table lists the makefile
variables and their default values(1):
/lib/modules/kernel_version/misc
'
/usr/bin/
'
/sbin/
'
/usr/man/
'
/usr/doc/
'
/usr/info/
'
Just typing
make install
in the top directory of the ftape sources will result in the following actions:
`./ftape/lowlevel/ftape.o
', `./ftape/zftape/zftape.o
', `./ftape/compressor/zft-compressor.o
',
under MODULESDIR
which defaults to `/lib/modules/kernel_version/misc/
'.
./contrib/swapout/swapout
' as
`SBINDIR/swapout
'
`./contrib/ftformat/ftformat
'
and the man page
`./contrib/ftformat/ftformat.man
'
as
`SBINDIR/ftformat
' `MANDIR/man8/ftformat.8
'
./contrib/vtblc/vtblc
' as
`SBINDIR/vtblc
'
./contrib/gnumt/mt
' and the man page
`./contrib/gnumt/mt.1
' as
`BINDIR/ftmt
' `MANDIR/man1/ftmt.1
'
Please note the prefix `ft
' which prevents overwriting of the
existing mt
program.
./contrib/scripts/listtape.pl
' or
`./contrib/scripts/listtape.sh
' as
`BINDIR/listtape
'
The makefile `./contrib/scripts/Makefile
' tries to figure out
itself whether (and where) you have installed perl
. If
perl
can't be found, listtape.sh
(a Bourne shell script)
is installed instead.
`INFODIR/
'
Note the `make install
' tries also to create an appropriate entry
in the `dir
' file in the INFODIR directory.
`DOCDIR/ftape/
'
depmod -a
' is run to update the modules dependencies
(zftape depends on ftape being loaded beforehand).
/dev/
' directory.
This is done by running the script MAKEDEV.ftape. The tape devices
are character devices that use a major device number of `27
'
(see File System Interface). The script MAKEDEV.ftape produces
the following entries in the `/dev/
' directory (output from
`ls -l /dev/*ft*
'). Please note the file access permissions of the
devices which will inhibit the use of the tape driver by non-root
users. You may want to change them to suite your needs (see `man 1
chmod
', `man 1 chown
'). Note also that MAKEDEV.ftape doesn't
change or delete `/dev/ftape
' and `/dev/nftape
'. Also, if
MAKEDEV.ftape discovers that the devices it attempts to create
already exist then it will prompt the user and whether it should
overwrite those devices.
crw------- 1 root root 27, 4 Mar 25 13:10 /dev/nqft0 crw------- 1 root root 27, 5 Mar 25 13:10 /dev/nqft1 crw------- 1 root root 27, 6 Mar 25 13:10 /dev/nqft2 crw------- 1 root root 27, 7 Mar 25 13:10 /dev/nqft3 crw------- 1 root root 27, 36 Mar 25 13:10 /dev/nrawft0 crw------- 1 root root 27, 37 Mar 25 13:10 /dev/nrawft1 crw------- 1 root root 27, 38 Mar 25 13:10 /dev/nrawft2 crw------- 1 root root 27, 39 Mar 25 13:10 /dev/nrawft3 lrwxrwxrwx 1 root root 5 Mar 25 13:10 /dev/nrft0 -> nqft0 lrwxrwxrwx 1 root root 5 Mar 25 13:10 /dev/nrft1 -> nqft1 lrwxrwxrwx 1 root root 5 Mar 25 13:10 /dev/nrft2 -> nqft2 lrwxrwxrwx 1 root root 5 Mar 25 13:10 /dev/nrft3 -> nqft3 crw------- 1 root root 27, 20 Mar 25 13:10 /dev/nzqft0 crw------- 1 root root 27, 21 Mar 25 13:10 /dev/nzqft1 crw------- 1 root root 27, 22 Mar 25 13:10 /dev/nzqft2 crw------- 1 root root 27, 23 Mar 25 13:10 /dev/nzqft3 crw------- 1 root root 27, 0 Mar 25 13:10 /dev/qft0 crw------- 1 root root 27, 1 Mar 25 13:10 /dev/qft1 crw------- 1 root root 27, 2 Mar 25 13:10 /dev/qft2 crw------- 1 root root 27, 3 Mar 25 13:10 /dev/qft3 crw------- 1 root root 27, 32 Mar 25 13:10 /dev/rawft0 crw------- 1 root root 27, 33 Mar 25 13:10 /dev/rawft1 crw------- 1 root root 27, 34 Mar 25 13:10 /dev/rawft2 crw------- 1 root root 27, 35 Mar 25 13:10 /dev/rawft3 lrwxrwxrwx 1 root root 4 Mar 25 13:10 /dev/rft0 -> qft0 lrwxrwxrwx 1 root root 4 Mar 25 13:10 /dev/rft1 -> qft1 lrwxrwxrwx 1 root root 4 Mar 25 13:10 /dev/rft2 -> qft2 lrwxrwxrwx 1 root root 4 Mar 25 13:10 /dev/rft3 -> qft3 crw------- 1 root root 27, 16 Mar 25 13:10 /dev/zqft0 crw------- 1 root root 27, 17 Mar 25 13:10 /dev/zqft1 crw------- 1 root root 27, 18 Mar 25 13:10 /dev/zqft2 crw------- 1 root root 27, 19 Mar 25 13:10 /dev/zqft3
(1) Note that
kernel_version stands for the version of the kernel ftape was
compiled for which is determined by parsing the file
`
', see
MCONFIGLINUX_LOCATION
/include/linux/versions.h
Use these buttons to jump to the top menu