You are not logged in.

#1 2024-07-13 21:15:20

fortuna
Member
Registered: 2021-02-09
Posts: 78

[SOLVED] How to get rid of mounts created by systemd?

Since the latest update of systemd I get these mounts:

fortuna@laptop:~$ mount | grep systemd-
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=39,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=961)
tmpfs on /run/credentials/systemd-journald.service type tmpfs (ro,nosuid,nodev,noexec,relatime,nosymfollow,size=1024k,nr_inodes=1024,mode=700,inode64,noswap)
tmpfs on /run/credentials/systemd-udev-load-credentials.service type tmpfs (ro,nosuid,nodev,noexec,relatime,nosymfollow,size=1024k,nr_inodes=1024,mode=700,inode64,noswap)
tmpfs on /run/credentials/systemd-tmpfiles-setup-dev-early.service type tmpfs (ro,nosuid,nodev,noexec,relatime,nosymfollow,size=1024k,nr_inodes=1024,mode=700,inode64,noswap)
tmpfs on /run/credentials/systemd-sysctl.service type tmpfs (ro,nosuid,nodev,noexec,relatime,nosymfollow,size=1024k,nr_inodes=1024,mode=700,inode64,noswap)
tmpfs on /run/credentials/systemd-sysusers.service type tmpfs (ro,nosuid,nodev,noexec,relatime,nosymfollow,size=1024k,nr_inodes=1024,mode=700,inode64,noswap)
tmpfs on /run/credentials/systemd-tmpfiles-setup-dev.service type tmpfs (ro,nosuid,nodev,noexec,relatime,nosymfollow,size=1024k,nr_inodes=1024,mode=700,inode64,noswap)
tmpfs on /run/credentials/systemd-tmpfiles-setup.service type tmpfs (ro,nosuid,nodev,noexec,relatime,nosymfollow,size=1024k,nr_inodes=1024,mode=700,inode64,noswap)
tmpfs on /run/credentials/systemd-vconsole-setup.service type tmpfs (ro,nosuid,nodev,noexec,relatime,nosymfollow,size=1024k,nr_inodes=1024,mode=700,inode64,noswap)

This irrelevant output makes it difficult to filter the mounts that are important to me.

Is this normal behavior? Are these mounts necessary? Is it possible to get rid of these mounts at least when running mount?

Last edited by fortuna (2024-07-13 22:02:54)

Offline

#2 2024-07-13 21:31:01

Head_on_a_Stick
Member
From: Belsize Park
Registered: 2014-02-20
Posts: 8,245
Website

Re: [SOLVED] How to get rid of mounts created by systemd?

The change seems to be something to do with https://systemd.io/CREDENTIALS/.

To remove the output cruft try

mount -t notmpfs

Or

findmnt --real

"The nation-state domesticates the society in the name of capitalism and alienates the community from its natural foundations."
Democratic Confederalism, Abdullah Öcalan.

Offline

#3 2024-07-13 21:41:05

seth
Member
Registered: 2012-09-03
Posts: 57,445

Re: [SOLVED] How to get rid of mounts created by systemd?

Also see https://bbs.archlinux.org/viewtopic.php?id=297280

mount | grep -v 'systemd-' | fzf

Offline

#4 2024-07-13 22:01:44

fortuna
Member
Registered: 2021-02-09
Posts: 78

Re: [SOLVED] How to get rid of mounts created by systemd?

Thank you both.

So there was topic about this already. I couldn't find it.

IMHO the winner is

df -h -x tmpfs

but I'll miss the way it was hmm

Last edited by fortuna (2024-07-13 22:03:41)

Offline

Board footer

Powered by FluxBB