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.

is a system utility that allows the user to establish and destroy transient mount or auto-mount points.

Use 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.

External references

systemd-mount(1)

37 questions
18
votes
2 answers

/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 noauto is already given, or is it totally…
Tom Hale
  • 28,728
  • 32
  • 139
  • 229
10
votes
1 answer

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 automatically. However, as it turns out, when you…
ummw
  • 325
  • 1
  • 3
  • 8
6
votes
1 answer

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-unlock.service/start local-fs.target: Found dependency…
RomuloPBenedetti
  • 879
  • 1
  • 9
  • 16
5
votes
1 answer

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 directory while I'm running the mount command. I'm…
yurmix
  • 291
  • 3
  • 10
4
votes
1 answer

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 [email protected]:/path/to/remote-dir ~/shared and then unmount…
Stewart
  • 12,628
  • 1
  • 37
  • 80
3
votes
1 answer

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 the label cache on /disks/cache any time I demand…
ape1
  • 41
  • 5
3
votes
1 answer

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 point as I would do with mount -l?
Adrian
  • 659
  • 1
  • 7
  • 29
3
votes
1 answer

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 I run mount -a, the missing bind is mounted. I…
virullius
  • 1,036
  • 2
  • 10
  • 19
2
votes
1 answer

How to mount folder with nonASCII (cyrillic) letters by systemd mount-unit?

I want to create systemd mount-unit equivalent for next fstab line /dev/sdc1 /жышы ext4 defaults 1 2 Something as жышы.mount [Unit] Description= /dev/sdc1 to…
2
votes
0 answers

BTRFS: error (device dm-0) in btrfs_run_delayed_refs:2150: errno=-5 10 failure

I have run this error while trying to boot my fedora linux 36 from my external SSD. I did boot it at home yesterday quite well, shut it down this morning. When I got to work today and tried booting it I got this error: BTRFS: error (device dm-0) in…
David Kariuki
  • 777
  • 5
  • 23
2
votes
1 answer

Unmount/mount drive when it's disconnected/connected, automatically

Is there a way for a systemd.mount unit to detect the state of a drive without having to reboot the computer, or reload the unit? If not, is there any other way to achieve this? I would like to automatically mount a drive when it is inserted, and…
seglaren
  • 41
  • 7
2
votes
1 answer

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 for mount units if their mount points don't already…
Melab
  • 3,808
  • 8
  • 29
  • 49
2
votes
1 answer

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 on demand. However, I have an interesting…
Diego Rivera
  • 121
  • 1
2
votes
1 answer

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 and added these lines to…
user2859982
  • 305
  • 1
  • 2
  • 13
1
vote
0 answers

Run backup script after systemd automounts specific USB device

I need to run a script after a specific USB stick is mounted, particulary, to perform a backup. I've seen many (and old) posts that mount devices inside udev rules, however modern OSes already have systemd preconfigured to automount flash drives. I…
whitenoisedb
  • 173
  • 1
  • 6
1
2 3