NFS mount via systemd
cloudnull.io
external-link
Sometimes you feel like fstab, sometimes you don't. If you're running modern Linux and are wanting to invest all of your brain power in a systemd thing-a-me and you're wishing there's was systemd way to mount a file-system(s), you're in luck! In this post I'm going to quickly cover
azron
link
fedilink
32Y

Nice post. Why did you choose to go with systemd over fstab? What advantages did it give you?

I don’t get it either, especially when it is even easier to use systemd-automount from fstab than creating units for.

in fstab:

server:/share /path/to/share nfs nfsvers=4,acl,users,rw,x-systemd.automount,x-systemd.mount-timeout=7,_netdev 0 0

while with units, it’s two files with path encoded in the filenames + installation. It makes “sense” but it is not convenient IMHO.

CHEF-KOCH
creator
link
fedilink
12Y

I am not the author of this shared article, but I had similar question some years ago, which was answered here. I hope that helps. Of course lots of things are in the meantime addressed.

azron
link
fedilink
1
edit-2
2Y

Thanks for the post. It seems to conclude that using fstab is the best way to go.

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

  • 0 users online
  • 5 users / day
  • 20 users / week
  • 27 users / month
  • 16 users / 6 months
  • 20 subscribers
  • 684 Posts
  • 1.7K Comments
  • Modlog