MOUNT.NFS(8)

πŸ’– MOUNT.NFS(8) πŸ’–

okay bestie, gather round β€” this is the manual page for mount.nfs and mount.nfs4, aka the girlies that mount a Network File System. Yes, that NFS. The one your sysadmin keeps yelling about. She's iconic, she's ancient, she's serving. ✨


🌸 NAME 🌸

mount.nfs, mount.nfs4 β€” mount a Network File System


πŸŽ€ SYNOPSIS πŸŽ€

mount.nfs remotetarget dir [-rvVwfnsh ] [-o options]

πŸ¦‹ DESCRIPTION πŸ¦‹

So mount.nfs is literally part of the nfs(5) utilities package, and what that package does is provide NFS client functionality. That's the whole vibe. 🫢

She's meant to be used by the mount(8) command for mounting NFS shares β€” like, that's her main character job. But plot twist: this subcommand can also be used as a standalone command, just with limited functionality. So she can do it on her own, but not at full power. Respect the limits, bestie. πŸ’…

remotetarget is a server share, usually looking like servername:/path/to/share. And dir is the directory on which the file system is to be mounted. Simple. Clean. Slay.

Now here's the tea about kernel versions 🍡 β€” under Linux 2.6.32 and later kernel versions, mount.nfs can mount all NFS file system versions. But under earlier Linux kernel versions, you have to use mount.nfs4 for mounting NFSv4 file systems, while mount.nfs must be used for NFSv3. Not optional. Not negotiable. The kernel said what it said. 😭


✨ OPTIONS ✨

  • -r β€” Mount file system readonly. Look, don't touch. πŸ‘€
  • -v β€” Be verbose. She's gonna talk, she's gonna tell you everything that's happening. πŸ’¬
  • -V β€” Print version. Just the version, nothing else. Quick lil flex. ⭐
  • -w β€” Mount file system read-write. Now you can touch. πŸ”₯
  • -f β€” Fake mount. Don't actually call the mount system call. It's giving pretend, it's giving dress rehearsal, nothing real happens. πŸ™ˆ
  • -n β€” Do not update /etc/mtab. By default, an entry is created in /etc/mtab for every mounted file system. Use this option to skip making an entry. Ghosting the mtab, honestly. πŸ’€
  • -s β€” Tolerate sloppy mount options rather than fail. She's forgiving. She's gracious. She's letting it slide. 😌
  • -h β€” Print help message. Bestie needs assistance? Say less. 🫢
  • nfsoptions β€” Refer to nfs(5) or mount(8) manual pages. That's where the real lore lives, iykyk. πŸ“–

πŸ‘‘ NOTE πŸ‘‘

For further information please refer nfs(5) and mount(8) manual pages. That's the homework. Do the reading. No skipping. πŸ’œ


πŸ“ FILES πŸ“

  • /etc/fstab β€” file system table
  • /etc/mtab β€” table of mounted file systems
  • /etc/nfsmount.conf β€” Configuration file for NFS mounts

🌈 SEE ALSO 🌈

nfs(5), nfsmount.conf(5), mount(8),


πŸ’… AUTHOR πŸ’…

Amit Gud <agud@redhat.com>


and that's the whole page, bestie. every flag, every file, every warning β€” all of it. no cap. 🧚

signing off with love from the System Manager's Manual, dated 5 Jun 2006 β€” yeah she's been on the internet longer than some of us have been alive and she still eats every time. πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from