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
0 votes
2 answers
44 views

systemd service to start after mount of ram drive

I have a inotify-based service that backs up my LAN's git directory to the Dropbox. I tried keeping the git directory in the Dropbox but I have multiple git clients so often get error files there. In ...
user avatar
0 votes
1 answer
41 views

How to Activate a Mount of a Remote Share When Its Machine Connects?

How can one activate a mount of a remote SMB share when the remote machine connects? This is more about discerning a local event triggered by the connection of a particular remote machine, than it is ...
user avatar
  • 189
0 votes
0 answers
23 views

Problems getting read-write for GROUP with SystemD (and fuse.sshfs) Samba remote connection

SUMMARY I'm having trouble establishing a remote connection to a SAMBA share where a non owner, but member of the GROUP can write to. I'm using SAMBA in a Container (config detail further down) and ...
user avatar
1 vote
0 answers
31 views

Systemd Automount Failing on Program Execution

I set up a systemd automount for an external drive by UUID. I basically just wanted the drive to mount whenever it's accessed. It was working fine but I noticed some issues when loading Evince first, ...
user avatar
0 votes
0 answers
64 views

systemd automounter not unmounting idle filesystems

This question will read similar to another question that I've asked, since some of the details are similar, and the time it started happening is the same. But the specific problem which I want to ...
user avatar
1 vote
0 answers
80 views

Something is triggering automount. I want to stop it

I'm trying to figure out what is triggering some of my automounts. From what I can tell, every time I log in via GDM, I see some of my automounts mounted (which I don't want). My automounts are ...
user avatar
0 votes
0 answers
19 views

Why won't my partition mount when resuming from hibernation?

I am hibernating from Pop OS on a dual boot system, so far successfully. I have one partition (music, etc) that's shared between systems, so I automatically unmount it before hibernation to avoid ...
user avatar
0 votes
2 answers
642 views

mount options ignored - debian 11 bullseye on raspberry with ext. usb drive

I'm trying to mount an external usb drive to raspberry pi 4b with debian 11 bullseye. Whatever I've tried so far to set mount options gets ignored. /etc/fstab UUID="9f32de87-6800-4585-a5c5-...
user avatar
1 vote
1 answer
353 views

How to tell systemctl to automatically unmount a drive if it's idle and remove directory after unmounting?

I have this entry in fstab: LABEL=cache /disks/cache ext4 rw,user,x-mount.mkdir,relatime,noauto,errors=remount-ro,x-systemd.idle-timeout=120min 0 0 What I expoect to do is: to mount the disk with ...
user avatar
  • 21
1 vote
0 answers
174 views

systemd-mount and automatic deletion of mount point on USB removal

On a systemd based embedded system, built with yocto, I'm trying to use systemd-mount for automatically mounting USB drives whenever those are plugged in. Following the official manual, I created a ...
user avatar
  • 11
1 vote
1 answer
241 views

Why is /etc/fstab preferred over systemd unit files?

The systemd.mount(5) man page says (emphasis mine): Mount units may either be configured via unit files, or via /etc/fstab (see fstab(5) for details). Mounts listed in /etc/fstab will be converted ...
user avatar
  • 11
1 vote
1 answer
806 views

/boot partition not mounted on boot

I have a server running on a RAID-1 mdraid on two SSDs with / encrypted. After booting the machine, /boot, which is also the EFI partition is not being mounted automatically, which it should be. State ...
user avatar
3 votes
1 answer
678 views

Using systemd to mount remote filesystems in user-bus

I'd like to mount a directory from a remote machine in my /home/stew/shared. After installing sshfs and using ssh-copy-id to my remote machine, I can do this: stew@stewbian:~$ sshfs stew@192.168.1.9:/...
user avatar
  • 9,585
0 votes
1 answer
440 views

Multiple Instances of Unit= in Path or Timer Unit?

Can multiple instances of Unit= exist in a systemd.path or systemd.timer unit? Or, must one instead specify multiple instances of the path or timer unit, each with a single instance of Unit=? I ...
user avatar
  • 189
1 vote
0 answers
47 views

Having issues mounting disks from script

I have a script that is triggered by udev rules that is partitioning the newly added disk and it creates a systemd unit file for it and supposed to mount it. However the mount part does not seam to ...
user avatar
  • 111
1 vote
0 answers
968 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 ...
user avatar
  • 15.7k
2 votes
1 answer
561 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 ...
user avatar
  • 3,528
1 vote
1 answer
112 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 ...
user avatar
4 votes
1 answer
7k 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 ...
user avatar
  • 165
1 vote
0 answers
30 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 ...
user avatar
  • 15.3k
2 votes
0 answers
285 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 ...
user avatar
1 vote
1 answer
587 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 ...
user avatar
  • 116
1 vote
2 answers
713 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 ...
user avatar
5 votes
1 answer
4k 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-...
user avatar
3 votes
1 answer
1k 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 ...
user avatar
  • 607
4 votes
1 answer
3k 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 ...
user avatar
  • 263
2 votes
1 answer
1k 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 ...
user avatar
  • 946
1 vote
1 answer
197 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?
user avatar
  • 11
1 vote
0 answers
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 ...
user avatar
1 vote
1 answer
841 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 ...
user avatar
  • 111
2 votes
1 answer
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 ...
user avatar
0 votes
1 answer
57 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 ...
user avatar
15 votes
2 answers
48k 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 ...
user avatar
  • 25.4k