Questions tagged [systemd-mount]

For questions pertaining to systemd-mount, a system utility that allows the user to establish and destroy transient mount or auto-mount points. Use this tag for questions about systemd-mount itself, using systemd-mount, or questions about issues arising from establishing and destroying transient mount or auto-mount points in systems where this task is performed by systemd-mount.

Filter by
Sorted by
Tagged with
1
vote
0answers
52 views

Conditional mounts with systemd

I wish to utilize several conditions to either do a bind mount or an NFS mount as described below. I have seen (limited) discussion on simple conditional mounts, but I have not seen any examples for ...
0
votes
0answers
18 views

Remove automatically create mount point when mount unit is stopped/unmounted

I've been laboring under the false assumption that mount points which are automatically created by systemd would also be automatically deleted, too. When I learned that systemd creates mount points ...
1
vote
1answer
31 views

mount point available in desktop Removable Media using shell command line

How mount a mount point available in desktop/file manager under Removable Media category but has not ever been clicked so not been recognized from shell yet, by use of command line? Then only if this ...
0
votes
1answer
321 views

Mount vs automount systemd units: which one to use for what?

After doing some research about systemd units, I found two different kinds of mount unit: the .mount and the .automount. At first, it seemed logical to me that the automount unit would mount a mount ...
1
vote
0answers
19 views

On systemd-based systems how can I control mount options based on properties of the volume to be mounted?

In particular I would like to be able to control umask/dmask based on properties such as the file system type being mounted. Is there a way to control mount options based on the file system type with ...
1
vote
0answers
124 views

Systemd: How to unmount network mounts automatically on suspend

I have a few Ubuntu 19.04 (soon to be 19.10) systems running systemd, and they all mount NAS-served mounts using systemd units. I'm also using automount units to make sure the mounts are only mounted ...
1
vote
1answer
181 views

Difference between mounting approaches

As far as I know, there are 3 ways to mount a filesystem in Linux. using the mount command writing a unit file and then activating it with systemctl using systemd-mount Can anyone please ...
1
vote
2answers
241 views

sshfs in fstab: addressing same server through different networks

Host and Client Ubuntu 19.04. OpenSSH I have a SSH server in my home LAN that I mount to my laptop using the LAN network address. When I'm at my weekend hideaway, I have to change my fstab to mount ...
3
votes
1answer
1k views

How can I solve this ordering cycle in a mount unit?

Systemd-analyze is giving me different result depending on how much times I execute it, I'm doing Systemd-analyze verify mnt-HDDs.mount and getting: local-fs.target: Found ordering cycle on HDDs-...
2
votes
1answer
526 views

list systemd RuntimeDirectory mounts

I have a systemd service with this declaration: RuntimeDirectory=plex RuntimeDirectoryMode=750 which creates the in memory directory /run/plex. How would I list the capabilities of this mount ...
2
votes
1answer
2k views

How to check whether systemd is unmounting my device? (and why?)

This is a followup to another question. I figured out something is unmounting my device right after I mount it. This device is being used by a database (Vertica), which is down and not using the ...
2
votes
1answer
664 views

systemd mount cycle for bind mount of cifs mount

I have a CIFS mount of a single volume which then has 2 subdirectories bind mounted. Upon boot, systemd complains of an "ordering cycle" and fails to mount 1 of the binds but the other works fine. If ...
1
vote
1answer
144 views

Why there's not listed rootfs in /proc/mounts?

I have a running server but there's no rootfs in /proc/mounts. Why? How to fix this permanently?
1
vote
0answers
1k views

Systemd service to run a script when a USB HDD is plugged in

I'm trying to run a backup script when a USB HDD is plugged in, I'm using Ubuntu 16.04. The backup script is also supposed to unmount (and possibly poweroff) the disk when done. I have no entries in ...
1
vote
1answer
531 views

setting up user-mounted filesystems

$ mount /mnt/ Unprivileged user can not mount NTFS block devices using the external FUSE library. Either mount the volume as root, or rebuild NTFS-3G with integrated FUSE support and make it setuid ...
2
votes
1answer
1k views

Systemd keeps trying to mount non present fstab-defined disk even without automount

I have 2 drives that I normally use with my Raspberry Pi, but I usually only have one plugged in, though I may need to use the other one at times, they have 500 GB and 4 TB, I created the mount points ...
0
votes
1answer
54 views

Why is a Windows partition mounted while Linux is in use?

Since I haven't booted into Windows in over a month and use Linux frequently (without restarting except to boot back into Linux immediately), why did I discover it mounted? If I hadn't been looking ...
7
votes
2answers
32k views

/etc/fstab: meaning of “nofail” if “noauto” is already specified

From my understanding of /etc/systemd options, noauto means that the device will not be mounted at boot time (or with mount -a). Is there any situation where adding nofail changes the behaviour if ...