Hello friends,
I made some customization in my /etc/fstab.
It seems to work fine for my use case.
The size of all tmpfs are OK for the moment.
What do you think about it ?
Do you see something that may be harmful ?
You mean apart from the lack of entries for your boot and root partitions?
Or do you see anything to add or do differently to help reduce I/O on the SD card ?Code:
tmpfs /var/log tmpfs defaults,nosuid,mode=0755,size=50m 0 0tmpfs /var/tmp tmpfs defaults,noatime,nosuid,size=100m 0 0tmpfs /tmp tmpfs defaults,noatime,nosuid,size=1g 0 0tmpfs /run tmpfs defaults,noatime,nosuid,size=100m 0 0tmpfs /mnt/ramdisk tmpfs defaults,size=1g 0 0
The main thing I'd do differently is to keep /var/log on physical media. It's really hard to debug system crashes when your logs disappear at reboot.
/run should by default be tmpfs. WIth Bookworm and Buster it appear to defautl to about 10% of available RAM.
Another thing to remember is that the size= mount option does not specify the actual size but rather the maximum size permitted. tmpfs will use less if it has less to store. The default is half your physical RAM.
The best way to extend the life of an SD card (or any flash storage) is to never write to it. The next best is to have a lot of unused (and preferably unallocated) space so the drive's internal wear leveling can do it's thing.
Statistics: Posted by thagrol — Mon Aug 19, 2024 11:15 pm