Mounting NFS File Systems (2024)

In this command, shadowman.example.com is thehostname of the NFS fileserver, /misc/export is thedirectory that shadowman is exporting, and/misc/local is the location to mount the file systemon the local machine. After the mount command runs(and if the client has proper permissions from theshadowman.example.com NFS server) the client usercan execute the command ls /misc/local to display alisting of the files in /misc/export onshadowman.example.com.

Mounting NFS File Systems using /etc/fstab

An alternate way to mount an NFS share from another machine is to add a line to the /etc/fstab file. The line must state the hostname of the NFS server, the directory on the server being exported, and the directory on the local machine where the NFS share is to be mounted. You must be root to modify the /etc/fstab file.

The general syntax for the line in /etc/fstab is as follows:

server:/usr/local/pub /pub nfs rsize=8192,wsize=8192,timeo=14,intr

The mount point /pub must exist on the client machine. After adding this line to /etc/fstab on the client system, type the command mount /pub at a shell prompt, and the mount point /pub will be mounted from the server.

Mounting NFS File Systems using autofs

A third option for mounting an NFS share is the use of autofs. Autofs uses the automount daemon to manage your mount points by only mounting them dynamically when they are accessed.

Autofs consults the master map configuration file /etc/auto.master to determine which mount points are defined. It then starts an automount process with the appropriate parameters for each mount point. Each line in the master map defines a mount point and a separate map file that defines the file systems to be mounted under this mount point. For example, the /etc/auto.misc file might define mount points in the /misc directory; this relationship would be defined in the /etc/auto.master file.

Each entry in auto.master has three fields. The first field is the mount point. The second field is the location of the map file, and the third field is optional. The third field can contain information such as a timeout value.

For example, to mount the directory /project52 on the remote machine penguin.host.net at the mount point /misc/myproject on your machine, add the following line to auto.master:

/misc /etc/auto.misc --timeout 60

Add the following line to /etc/auto.misc:

myproject -rw,soft,intr,rsize=8192,wsize=8192 penguin.host.net:/project52

The first field in /etc/auto.misc is the name of the /misc subdirectory. This directory is created dynamically by automount. It should not actually exist on the client machine. The second field contains mount options such as rw for read and write access. The third field is the location of the NFS export including the hostname and directory.

Mounting NFS File Systems (1)Note

The directory /misc must exist on the local file system. There should be no subdirectories in /misc on the local file system.

Autofs is a service. To start the service, at a shell prompt, type the following commands:

/sbin/service autofs restart

To view the active mount points, type the following command at a shell prompt:

/sbin/service autofs status

If you modify the /etc/auto.master configuration file while autofs is running, you must tell the automount daemon(s) to reload by typing the following command at a shell prompt:

/sbin/service autofs reload

To learn how to configure autofs to start at boot time, refer to Chapter 13 for information on managing services.

Mounting NFS File Systems (2024)
Top Articles
Can I keep cash wrongly put in my bank?
Hedge Fund Definition: Types, Strategies, Risks
Maxtrack Live
Victor Spizzirri Linkedin
Craigslist Home Health Care Jobs
jazmen00 x & jazmen00 mega| Discover
Stretchmark Camouflage Highland Park
East Cocalico Police Department
Shorthand: The Write Way to Speed Up Communication
Cosentyx® 75 mg Injektionslösung in einer Fertigspritze - PatientenInfo-Service
Palace Pizza Joplin
Housing Intranet Unt
Epaper Pudari
Osrs Blessed Axe
Seafood Bucket Cajun Style Seafood Restaurant in South Salt Lake - Restaurant menu and reviews
Trini Sandwich Crossword Clue
I Wanna Dance with Somebody : séances à Paris et en Île-de-France - L'Officiel des spectacles
Nba Rotogrinders Starting Lineups
My.tcctrack
History of Osceola County
Van Buren County Arrests.org
Healthier Homes | Coronavirus Protocol | Stanley Steemer - Stanley Steemer | The Steem Team
Www Craigslist Com Bakersfield
Phoebus uses last-second touchdown to stun Salem for Class 4 football title
Rust Belt Revival Auctions
Inbanithi Age
Divina Rapsing
4Oxfun
New Stores Coming To Canton Ohio 2022
Ou Football Brainiacs
Ewg Eucerin
Happy Shuttle Cancun Review
Sony Wf-1000Xm4 Controls
N.J. Hogenkamp Sons Funeral Home | Saint Henry, Ohio
Napa Autocare Locator
Cvb Location Code Lookup
3400 Grams In Pounds
Koninklijk Theater Tuschinski
What Does Code 898 Mean On Irs Transcript
Dr Adj Redist Cadv Prin Amex Charge
Callie Gullickson Eye Patches
Seven Rotten Tomatoes
Actor and beloved baritone James Earl Jones dies at 93
If You're Getting Your Nails Done, You Absolutely Need to Tip—Here's How Much
Paul Shelesh
Blackwolf Run Pro Shop
Sallisaw Bin Store
RubberDucks Front Office
Minterns German Shepherds
Who Is Nina Yankovic? Daughter of Musician Weird Al Yankovic
Is TinyZone TV Safe?
Sunset On November 5 2023
Latest Posts
Article information

Author: Edwin Metz

Last Updated:

Views: 6023

Rating: 4.8 / 5 (78 voted)

Reviews: 85% of readers found this page helpful

Author information

Name: Edwin Metz

Birthday: 1997-04-16

Address: 51593 Leanne Light, Kuphalmouth, DE 50012-5183

Phone: +639107620957

Job: Corporate Banking Technician

Hobby: Reading, scrapbook, role-playing games, Fishing, Fishing, Scuba diving, Beekeeping

Introduction: My name is Edwin Metz, I am a fair, energetic, helpful, brave, outstanding, nice, helpful person who loves writing and wants to share my knowledge and understanding with you.