Page 1 of 2

Why so many mounted file systems in MX

Posted: Tue Aug 27, 2024 6:39 am
by LinuxSpring1
I was just going through the mount points and found that there are about 17 mount points in a typical MX Linux. Please see the details given below. Why does MX need to have so many mount points in a running system? Can these be reduced? For example the portal, systemd, pstore, devpts, and a few tempfs should not even exist.

I am running MX Linux 23.3 with KDE plasma 5 and Kernel 6.1.0-23-amd64

Code: Select all

$ mount -v --types tmpfs,cgroup,pstore,efivarfs,securityfs,devtmpfs,proc,sysfs,fuse.portal,rpc_pipefs,devpts  | wc -l
17
$
$ mount -v --types tmpfs,cgroup,pstore,efivarfs,securityfs,devtmpfs,proc,sysfs,fuse.portal,rpc_pipefs,devpts 
sysfs 		on /sys					type sysfs 	(rw,nosuid,nodev,noexec,relatime)
proc 		on /proc				type proc 	(rw,nosuid,nodev,noexec,relatime)
udev 		on /dev					type devtmpfs  (rw,nosuid,relatime,size=8030812k,nr_inodes=2007703,mode=755,inode64)
devpts 		on /dev/pts 				type devpts 	(rw,nosuid,noexec,relatime,gid=5,mode=600,ptmxmode=000)
tmpfs 		on /run					type tmpfs 	(rw,nosuid,nodev,noexec,relatime,size=1615012k,mode=755,inode64)
tmpfs 		on /run/lock				type tmpfs 	(rw,nosuid,nodev,noexec,relatime,size=5120k,inode64)
securityfs 	on /sys/kernel/security 		type securityfs (rw,relatime)
efivarfs 	on /sys/firmware/efi/efivars 		type efivarfs 	(rw,relatime)
pstore 		on /sys/fs/pstore 			type pstore 	(rw,relatime)
tmpfs 		on /dev/shm 				type tmpfs 	(rw,nosuid,nodev,noexec,relatime,size=8472900k,inode64)
rpc_pipefs 	on /run/rpc_pipefs			type rpc_pipefs (rw,relatime)
cgroup 		on /sys/fs/cgroup 			type tmpfs 	(rw,relatime,size=12k,mode=755,inode64)
systemd 	on /sys/fs/cgroup/systemd 		type cgroup 	(rw,nosuid,nodev,noexec,relatime,release_agent=/run/cgmanager/agents/cgm-release-agent.systemd,name=systemd)
tmpfs 		on /run/user/112 			type tmpfs 	(rw,nosuid,nodev,relatime,size=1615012k,mode=700,uid=112,gid=121,inode64)
tmpfs 		on /run/user/NNNN			type tmpfs 	(rw,nosuid,nodev,relatime,size=1615012k,mode=700,uid=1001,gid=1001,inode64)
tmpfs 		on /run/user/MMMM			type tmpfs 	(rw,nosuid,nodev,relatime,size=1615012k,mode=700,uid=1000,gid=1000,inode64)
portal 		on /run/user/MMMM/doc			type fuse.portal (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)

Re: Why so many mounted file systems in MX

Posted: Tue Aug 27, 2024 6:56 am
by DukeComposed
LinuxSpring1 wrote: Tue Aug 27, 2024 6:39 am Can these be reduced?
It depends. If you want your system to be unusable, go ahead and start disabling things.
LinuxSpring1 wrote: Tue Aug 27, 2024 6:39 am For example the portal, systemd, pstore, devpts, and a few tempfs should not even exist.
Where, exactly, have you been told these mountpoints shouldn't exist? Post exact links if possible.

Re: Why so many mounted file systems in MX

Posted: Tue Aug 27, 2024 7:55 am
by Adrian
What's the proper amount of mount points? Also, I take it you never used Ubuntu or a system with snaps...

Re: Why so many mounted file systems in MX

Posted: Tue Aug 27, 2024 8:02 am
by Eadwine Rose
The first thing that came to my mind when I read the title was "Why do we have so many fingers on our hands, two will do".


;)

Re: Why so many mounted file systems in MX

Posted: Tue Aug 27, 2024 10:48 am
by ThemetresAtrometos
Do you have any performance or other problems and after research you concluded that the mount points is the reason?

Re: Why so many mounted file systems in MX

Posted: Tue Aug 27, 2024 10:58 am
by dolphin_oracle
Why does MX need to have so many mount points in a running system? Can these be reduced? For example the portal, systemd, pstore, devpts, and a few tempfs should not even exist.
I think the actual answer is

no, you cannot remove them and they are correct as is.

possibly you could remove the portal one, but apps using various forms of sandboxing will likely stop working. removal of xdg-desktop-portal will probably remove it, of course along with anything that depends on xdg-desktop-portal.

Re: Why so many mounted file systems in MX

Posted: Tue Aug 27, 2024 12:25 pm
by siamhie
LinuxSpring1 wrote: Tue Aug 27, 2024 6:39 am I was just going through the mount points and found that there are about 17 mount points in a typical MX Linux.

MX-23.3 fluxbox (booted systemd). They all serve their purpose.

Code: Select all

mount | wc -l
32

Re: Why so many mounted file systems in MX

Posted: Tue Aug 27, 2024 12:38 pm
by Stevo
And Mozart's music had so many notes...


Image

Re: Why so many mounted file systems in MX

Posted: Wed Aug 28, 2024 2:08 am
by LinuxSpring1
Adrian wrote: Tue Aug 27, 2024 7:55 am What's the proper amount of mount points? Also, I take it you never used Ubuntu or a system with snaps...
No I have not used Ubuntu nor have I used snaps.
siamhie wrote: Tue Aug 27, 2024 12:25 pm
LinuxSpring1 wrote: Tue Aug 27, 2024 6:39 am I was just going through the mount points and found that there are about 17 mount points in a typical MX Linux.

MX-23.3 fluxbox (booted systemd). They all serve their purpose.

Code: Select all

mount | wc -l
32
What purposes are served by these mount points? IS there some documentation that I can refer to?

Re: Why so many mounted file systems in MX

Posted: Wed Aug 28, 2024 2:16 am
by Eadwine Rose
I suggest starting with googling on mount points, and reading up a little on things, instead of asking us to be your google. Plenty to be found.