|Syntactic Confectionery Delight|
Re^5: Preventing multiple instancesby afoken (Canon)
|on Dec 18, 2020 at 16:33 UTC||Need Help??|
Can you explain why you chose /var/memdir and not /tmp/memdir as it is by its very nature temporary.
/tmp is often already on a ramdisk-like virtual filesystem, e.g. tmpfs. If not, some boot script cleans up tmp. So /tmp/memdir is gone after a reboot. /var is on persistent storage, so /var/memdir will survive a reboot.
Also, any reason to set the number of blocks to zero?
/etc/fstab is structured, six fields separated by whitespace. This implies that no field can contain whitespace. The fields are (in order):
"size=1M" is part of the mount options in field 4, the two zeros after that are fields 5 and 6.
stevieb proposed to add this to fstab:
Split at whitespace and compare with the field descriptions.
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)