I use Ubuntu 18.04 on an embedded system.
By default it has tmpfs mounted on /dev/shm
with 3.8G (~half RAM size) and some mount options.
I'm trying to change the /dev/shm
size and mount options via the /etc/fstab
.
If I remount it, it works until next reboot, getting default values afterwards.
I read that systemd can be used to configure this filesystem but they still recommend using the fstab file: Systemd backed tmpfs | How to specify /tmp size manually
I read that some people changed the
/etc/fstab
entry from/dev/shm
to/run/shm
, but after doing so I had both filesystems mounted, not linked to each other: https://answers.launchpad.net/ubuntu/+question/232487I read that on redhat distributions , the
/dev/shm
is being mounted via boot from rc scripts butgrep -r '/dev/shm' /etc/rc*/*
returned nothing useful.
So how can I assure the /dev/shm
mount options in /etc/fstab
will take effect after reboot?
systemd-remount-fs.service
? – u1686_grawity May 23 '23 at 06:00