Skip to main content

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
1 answer
28 views

How to wait for USB drive indefinite

I would like to use external USB flash drive to store encryption key. Whenever the drive is attached during boot - it should decrypt Luks container and continue boot If there is not USB drive with ...
onorua's user avatar
  • 111
2 votes
2 answers
118 views

CIFS fs does not wait for network despite _netdev?

I am running a Debian12 with systemd. The server's network is configured through (fixed lease) dhcp. I am trying to mount a CIFS remote filesystem on boot. So I added the follwoing entries in /etc/...
Christian's user avatar
0 votes
1 answer
42 views

systemd service fails to use `tail` to output to console

I fail to configure my systemd service properly (systemd 249.11-0ubuntu3.12). It should start a tail process which outputs to the console. Ubuntu running as Proxmox VM. When booting, the service is ...
Twonky's user avatar
  • 171
0 votes
0 answers
102 views

CIFS mount share with IPv6 link-local address on Ubuntu

I'm trying to mount a Windows share on a headless Linux computer with the following systemd unit file: [Unit] Description=mount network drive from harvester OBC Requires=network-online.target ...
Joooeey's user avatar
  • 123
1 vote
1 answer
250 views

Systemd service starting before filesystem mount after power loss

I'm encountering an issue with a systemd service starting before a local partition is mounted, particularly after a power loss event. I've investigated and found that this problem arises due to a ...
matt's user avatar
  • 113
1 vote
1 answer
48 views

At boot, if X, then mount A, else mount B

Context is as in this other question of mine. TL,DR: most of my home folder is on an external drive that I carry along with me and mount at my various workplaces and at home. Mount is done as unionfs /...
L. Levrel's user avatar
  • 1,503
1 vote
0 answers
192 views

How to shutdown service before systemd starts unmounting

I have a systemd service that uses After=local-fs.target to ensure that all mount points are established (if possible) before the service is started. Not being too familiar with the systemd ...
Simon Kraemer's user avatar
1 vote
1 answer
270 views

What is parsing/applying /etc/fstab entries

According to manual I thought that systemd-remount-fs.service is responsible for parsing and applying /etc/fstab entries. So I tried to test it: I removed ExecStart part (ExecStart=/lib/systemd/...
SAMPro's user avatar
  • 227
0 votes
0 answers
85 views

systemd tries to mount nfs share before correct interface is up

On a Rocky8.8 server I want to mount an nfs share defined in etc/fstab. admin1:/srv/export/opt/cluster /opt/cluster nfs _netdev 0 0 The server have two network cards: eno1 (...
Yann Sagon's user avatar
2 votes
1 answer
233 views

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 /жышы [Mount] What=/dev/sdc1 Where=/жышы ...
Alexander Dyadyun's user avatar
1 vote
1 answer
127 views

Dynamically select which partition to mount based on root partition

I have got two readonly root partitions (say roota and rootb) which operating system is installed. This is for a basic A/B partition update scheme and after updating my system these partitions are ...
lupus's user avatar
  • 13
2 votes
0 answers
379 views

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 ...
David Kariuki's user avatar
1 vote
0 answers
242 views

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 ...
whitenoisedb's user avatar
1 vote
1 answer
115 views

Local filesystem mounted as remote by systemd in OL8.6

Two RAID SSDs partitioned as follows. Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 65536 bytes / 65536 bytes Disklabel type: ...
A. Murray's user avatar
2 votes
1 answer
2k views

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 ...
seglaren's user avatar
0 votes
2 answers
456 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 ...
Stephen Boston's user avatar
0 votes
1 answer
254 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 ...
ebsf's user avatar
  • 331
1 vote
0 answers
328 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, ...
ChrispyChris's user avatar
1 vote
0 answers
248 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 ...
Milamber's user avatar
0 votes
2 answers
1k 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-...
user3017714's user avatar
3 votes
2 answers
3k 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 ...
ape1's user avatar
  • 41
1 vote
1 answer
692 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 ...
mous16's user avatar
  • 11
3 votes
1 answer
2k 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 ...
Yuri's user avatar
  • 31
1 vote
1 answer
4k 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 ...
Richard Neumann's user avatar
4 votes
1 answer
2k 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 [email protected]:/...
Stewart's user avatar
  • 14.2k
0 votes
1 answer
1k 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 ...
ebsf's user avatar
  • 331
1 vote
0 answers
67 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 ...
zozo6015's user avatar
  • 111
1 vote
0 answers
2k 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 ...
MountainX's user avatar
  • 18.2k
2 votes
1 answer
2k 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 ...
Melab's user avatar
  • 4,158
1 vote
1 answer
249 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
15 votes
1 answer
20k 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 ...
ummw's user avatar
  • 375
1 vote
0 answers
59 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 ...
0xC0000022L's user avatar
  • 16.8k
2 votes
1 answer
678 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 ...
Diego Rivera's user avatar
1 vote
1 answer
2k 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 ...
Navid's user avatar
  • 136
1 vote
2 answers
1k 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 ...
Stephen Boston's user avatar
8 votes
1 answer
10k 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-...
RomuloPBenedetti's user avatar
3 votes
1 answer
2k 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 ...
Adrian's user avatar
  • 701
5 votes
1 answer
5k 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 ...
yurmix's user avatar
  • 311
4 votes
1 answer
2k 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 ...
virullius's user avatar
  • 1,146
1 vote
1 answer
295 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?
jonas's user avatar
  • 11
1 vote
0 answers
2k 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 ...
koichirose's user avatar
1 vote
1 answer
1k 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 ...
user45927's user avatar
  • 111
2 votes
1 answer
2k 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 ...
user2859982's user avatar
0 votes
1 answer
68 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 ...
Lusus Naturae's user avatar
21 votes
2 answers
64k 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 ...
Tom Hale's user avatar
  • 31.2k