Systemd - for what will 'remote-fs' needed?

Hi!

I want to know for what will 'remote-fs' in systemd needed/what does it?

remote-fs.target
remote-fs-pre.target

What does a remote file system do in Ubuntu?

Does it have the purpose to connect to my file system from outside?

Or is it for NFS?

Is it absolutely needed in systemd for the system or can I disable it with
disable/mask?

I ask because I tweak my system.

TL;DR this is needed for remote/network file-systems like SMB/CIFS, SSHFS, NFS and so on. Some users need to add them to /etc/fstab to allow their auto-mounting.

So you are talking about two systemd related files:

File Packages
/lib/systemd/system/remote-fs-pre.target systemd
/lib/systemd/system/remote-fs.target systemd

Where one can find their documentation? Let't try to get some info from running system:

$ cat /lib/systemd/system/remote-fs*.target | grep man | uniq 
Documentation=man:systemd.special(7)

So we should use man systemd.special locally or online to read the following:

...
remote-fs.target
Similar to local-fs.target, but for remote mount points.
systemd automatically adds dependencies of type After= for this target unit to all
SysV init script service units with an LSB header referring to the "$remote_fs" facility.
....
remote-fs-pre.target
This target unit is automatically ordered before all mount point units (see above) and
cryptsetup devices marked with the _netdev. It can be used to run certain units before
remote encrypted devices and mounts are established. Note that this unit is generally
not part of the initial transaction, unless the unit that wants to be ordered before
all remote mounts pulls it in via a Wants= type dependency. If the unit wants to be
pulled in by the first remote mount showing up, it should use network-online.target
(see above).

More stuff to read:

1 Like

thanks for the information @ Norbert_X

For system tweaking, is it safe to 'disable' and 'mask'
remote-fs.target
remote-fs-pre.target
?

I ask because I don't use NFS, Samba and so on.

thanks for the information.

I do not expect any speedup, but you can try to disable and mask them.

Ok, will try it later @ Norbert_X.

Is there here in the forum a list / overview which Systemd services are not urgently needed?

I ask because I want to tweak my system extremely.

For example, on the Internet there are many sites about services tweaking where you can read which services are not urgently needed on Windows XP/Win7,Win8,Win10 machines.

Does this also exist for Systemd services?

If so, where can I find this on the internet. So far I have not found anything about it.

Good place to start is

https://wiki.archlinux.org/title/Systemd

with links to original projects. Not sure about list/overview.

3 Likes