When I run
df | grep tmpfs | sed "s/[0-9]/*/g"
I get
tmpfs ******* **** ******* *% /run
tmpfs ******* *** ******* *% /dev/shm
tmpfs **** * **** *% /run/lock
tmpfs ******* * ******* *% /sys/fs/cgroup
tmpfs ******* ** ******* *% /run/user/****
Is there any reason why I shouldn't use any of the directories as a RAM Disk?
(except /run/lock
which has a small size)
Note that the last directory is equivalent to the output of echo /run/user/$UID
.....
I could mount my own with
mkdir RAM_DISK
mount -t tmpfs -o size=3G tmpfs RAM_DISK/
but then I'd have to issue the commands on every reboot
(unless /etc/fstab
is modified)