Red Hat Linux 7 Unleashed

Red Hat Linux 7 Unleashed

By William Ball

Complete Sample Configuration Files

Listing 16.1 contains a complete /etc/exports >file for a server.

Example 16.1. A Complete /etc/exports File

#
# /etc/exports for denon
#
# Share the home dirs:
/export/home        technics(rw) pioneer(rw) vestax(rw)
                      atus(rw) rane(rw)

#
# Share local software
#
/export/usr/local    technics(rw,no_root_squash)
                       vestax(rw,no_root_squash)
                       pioneer(rw,no_root_squash)
                       atus(rw,no_root_squash)
                       rane(rw,no_root_squash)

Listing 16.2 contains a complete /etc/fstab file for a client.

Example 16.2. A Complete /etc/fstab File

#
# /etc/fstab for technics
#
/dev/hdb2               /                       ext2    defaults        1 1
/dev/hda8               /home                   ext2    defaults        1 2
/dev/hda7               swap                    swap    defaults        0 0
/dev/fd0                /mnt/floppy             ext2    noauto          0 0
/dev/cdrom              /mnt/cdrom              iso9660 noauto,ro       0 0
none                    /proc                   proc    defaults        0 0
none                    /dev/pts                devpts  mode=0622       0 0

You can also manually mount a filesystem. This is especially important if you want to mount a floppy disk as an msdos filesystem. The following command will mount a floppy disk to /mnt/floppy. Remember to unmount the disk before removing it.


   mount /dev/fd0 /mnt/floppy

Unmounting is just a simple command:


   umount /mnt/floppy

Share ThisShare This

Informit Network