04-11-2025, 11:17 AM
(04-11-2025, 10:18 AM)roderickvd Wrote:(04-11-2025, 10:13 AM)Tim Curtis Wrote: The /tmp dir at least on PiOS is mounted by systemd as type tmpfs which AFAIK is a RAM based file system.
On my moOde install it seems mounted on the SD card:
Code:roderick@headphones:~ $ findmnt -T /tmp
TARGET SOURCE FSTYPE OPTIONS
/ /dev/mmcblk0p2 ext4 rw,noatime
If it were tmpfs, then yes that would also work well to save the SD card.
Wow, I always thought systemd mounted it as a tmpfs :-0
After some digging it turns out the systemd unit "tmp.mount" is not enabled by default on PiOS. The file location is /usr/share/systemd/tmp.mount
To enable it
Code:
sudo cp /usr/share/systemd/tmp.mount /etc/systemd/system/
sudo systemctl enable tmp.mount
sudo reboot
Then we get
Code:
pi@moode9:~ $ findmnt -T /tmp
TARGET SOURCE FSTYPE OPTIONS
/tmp tmpfs tmpfs rw,nosuid,nodev,size=2070800k,nr_inodes=1048576
But best to leave it as-is on PiOS. Now the RAM file option in pleezer makes sense :-)