You are not logged in.

#1 2024-07-01 05:24:28

Gangleri
Member
Registered: 2016-02-12
Posts: 4

Strange tmpfs mounts for credentials

Hi,

Yesterday I wanted to check up my partitions space and df -h spill out this strange table with an unusual amount of mounts:

Filesystem      Size  Used Avail Use% Mounted on
dev             7.7G     0  7.7G   0% /dev
run             7.8G  1.5M  7.8G   1% /run
efivarfs        184K   81K   98K  46% /sys/firmware/efi/efivars
/dev/nvme0n1p2  150G   62G   89G  41% /
tmpfs           7.8G   67M  7.7G   1% /dev/shm
tmpfs           7.8G  6.5M  7.8G   1% /tmp
tmpfs           1.0M     0  1.0M   0% /run/credentials/systemd-journald.service
tmpfs           1.0M     0  1.0M   0% /run/credentials/systemd-udev-load-credentials.service
tmpfs           1.0M     0  1.0M   0% /run/credentials/systemd-tmpfiles-setup-dev-early.service
tmpfs           1.0M     0  1.0M   0% /run/credentials/systemd-sysusers.service
tmpfs           1.0M     0  1.0M   0% /run/credentials/systemd-tmpfiles-setup-dev.service
tmpfs           1.0M     0  1.0M   0% /run/credentials/systemd-vconsole-setup.service
/dev/nvme0n1p1  327G  151G  177G  46% /ntfs3
tmpfs           1.0M     0  1.0M   0% /run/credentials/systemd-sysctl.service
/dev/sda4       501G  243G  259G  49% /ntfs1
/dev/sda5       431G  331G  100G  77% /ntfs2
tmpfs           1.0M     0  1.0M   0% /run/credentials/systemd-tmpfiles-setup.service
tmpfs           1.0M     0  1.0M   0% /run/credentials/getty@tty1.service
tmpfs           1.6G   64K  1.6G   1% /run/user/1000

systemctl says this about these mounts:

  run-credentials-getty\x40tty1.service.mount                                                                loaded active mounted   /run/credent
  run-credentials-systemd\x2djournald.service.mount                                                          loaded active mounted   /run/credent
  run-credentials-systemd\x2dsysctl.service.mount                                                            loaded active mounted   run-credenti
  run-credentials-systemd\x2dsysusers.service.mount                                                          loaded active mounted   run-credenti
  run-credentials-systemd\x2dtmpfiles\x2dsetup.service.mount                                                 loaded active mounted   run-credenti
  run-credentials-systemd\x2dtmpfiles\x2dsetup\x2ddev.service.mount                                          loaded active mounted   run-credenti
  run-credentials-systemd\x2dtmpfiles\x2dsetup\x2ddev\x2dearly.service.mount                                 loaded active mounted   run-credenti
  run-credentials-systemd\x2dudev\x2dload\x2dcredentials.service.mount                                       loaded active mounted   run-credenti
  run-credentials-systemd\x2dvconsole\x2dsetup.service.mount  

Google and the credential services aren't much help to find out what these are... I haven't installed anything recently as well... Please help it bugs me to no end.

Last edited by Gangleri (2024-07-01 09:57:02)

Offline

#2 2024-07-01 07:06:20

mpan
Member
Registered: 2012-08-01
Posts: 1,297
Website

Re: Strange tmpfs mounts for credentials


Sometimes I seem a bit harsh — don’t get offended too easily!

Offline

#3 2024-07-01 07:19:08

seth
Member
Registered: 2012-09-03
Posts: 56,156

Re: Strange tmpfs mounts for credentials

Please use [code][/code] tags, not "quote" tags. Edit your post in this regard.
Also file a bug at google, it's apaarently broken for you: https://systemd.io/CREDENTIALS/

systemd used to complain about that, apparently now it just makes some up.
https://bbs.archlinux.org/viewtopic.php?id=294465

Edit: F**5

Last edited by seth (2024-07-01 07:22:48)

Offline

#4 2024-07-01 10:38:06

Gangleri
Member
Registered: 2016-02-12
Posts: 4

Re: Strange tmpfs mounts for credentials

I was googling x2djournald and the other weird ones. Alright I'll read the https://systemd.io/CREDENTIALS/ and try to figure out how to fix this.
If successful I'll post it.

Thanks!

Offline

#5 2024-07-01 14:43:22

seth
Member
Registered: 2012-09-03
Posts: 56,156

Re: Strange tmpfs mounts for credentials

What do you want to fix?

Offline

#6 2024-07-01 15:02:27

Gangleri
Member
Registered: 2016-02-12
Posts: 4

Re: Strange tmpfs mounts for credentials

I was meaning to remove them from being mounted, or place them somewhere else, but I just read more carefully the https://systemd.io/CREDENTIALS/ you provided. And it explicitly says:

For system services the credential directory will be /run/credentials/<unit name>, but hardcoding this path is discouraged, because it does not work for user services.

So I guess they're supposed to be as they are, mounted there...forever disrupting the previously orderly and simple df -l output sad

Last edited by Gangleri (2024-07-01 15:25:14)

Offline

#7 2024-07-01 23:06:30

mpan
Member
Registered: 2012-08-01
Posts: 1,297
Website

Re: Strange tmpfs mounts for credentials

df with no arguments is meant to list all file systems. Not file systems some human finds important to them. big_smile

You may write a script, that will only list those, which you find relevant.


Sometimes I seem a bit harsh — don’t get offended too easily!

Offline

#8 2024-07-07 04:12:17

rfesu
Member
Registered: 2024-07-07
Posts: 1

Re: Strange tmpfs mounts for credentials

i thought it pretty annoying too.  aliases are great for simple default flags like this.  if you don't care about the disk space on any tmpfs, simply add to your bashrc or profile or whatever:

alias df='df -x tmpfs'

Offline

#9 2024-08-04 22:19:09

luntik20120
Member
Registered: 2017-11-25
Posts: 15

Re: Strange tmpfs mounts for credentials

but how to disable only systemd garbage? I'd like to see adequate mountpoints like /tmp, /dev/shm, etc.

Last edited by luntik20120 (2024-08-04 22:20:45)

Offline

#10 2024-08-05 04:55:14

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

Re: Strange tmpfs mounts for credentials

^

df -h | grep -v service

Offline

Board footer

Powered by FluxBB