- Table of Contents
- Copyright
- About the Lead Authors
- About the Contributing Authors
- Acknowledgments
- Tell Us What You Think!
- Introduction
- I. Red Hat Linux Installation and User Services
- Chapter 1. Introduction to Red Hat Linux
- Chapter 2. Installation of Your Red Hat System
- Chapter 3. LILO and Other Boot Managers
- Chapter 4. Configuring the X Window System, Version 11
- Chapter 5. Window Managers
- Chapter 6. Connecting to the Internet
- Chapter 7. IRC, ICQ, and Chat Clients
- Chapter 8. Using Multimedia and Graphics Clients
- II. Configuring Services
- Chapter 9. System Startup and Shutdown
- Chapter 10. SMTP and Protocols
- Chapter 11. FTP
- Chapter 12. Apache Server
- Chapter 13. Internet News
- Chapter 14. Domain Name Service and Dynamic Host Configuration Protocol
- Chapter 15. NIS: Network Information Service
- Chapter 16. NFS: Network Filesystem
- Installing NFS
- Starting and Stopping the NFS Daemons
- Configuring NFS Servers and Clients
- Exporting Filesystems with linuxconf
- Complete Sample Configuration Files
- Summary
- Chapter 17. Samba
- III. System Administration and Management
- Chapter 18. Linux Filesystems, Disks, and Other Devices
- Chapter 19. Printing with Linux
- Chapter 20. TCP/IP Network Management
- Chapter 21. Linux System Administration
- Chapter 22. Backup and Restore
- Chapter 23. System Security
- IV. Red Hat Development and Productivity
- Chapter 24. Linux C/C++ Programming Tools
- Chapter 25. Shell Scripting
- Chapter 26. Automating Tasks
- Chapter 27. Configuring and Building Kernels
- Chapter 28. Emulators, Tools, and Window Clients
- V. Appendixes
- A. The Linux Documentation Project
- B. Top Linux Commands and Utilities
- C. The GNU General Public License
- D. Red Hat Linux RPM Package Listings
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
Summary | Next Section

Account Sign In
View your cart