Other How can I mount home cache directory as tmpfs?

Hello.
We have (as usual) ~/.cache dir in HOME dir. I want to mount it in tmpfs. I did it with my 'var' and 'tmp' dirs.
Code:
# Device                Mountpoint      FStype  Options         Dump    Pass#

proc                    /proc           procfs  rw              0 0
tmpfs                   /compat/linux/dev/shm tmpfs rw,mode=1777,size=1G 0 0
tmpfs                   /tmp tmpfs  rw,mode=1777,size=1G 0 0
tmpfs                   /var/tmp tmpfs  rw,mode=1777,size=500M 0 0
fdesc                   /dev/fd fdescfs rw,auto,late            0 0
linsysfs                /compat/linux/sys linsysfs rw           0 0
linporcfs               /compat/linux/proc linprocfs rw         0 0 
/dev/cd0                /cdrom  cd9660  rw,noauto               0 0
# tmpfs                 /usr/home/sailorsamoor/.cache tmpfs rw,mode=1751,size=1G 0 0

But when I do the same with '~/.cache' , my system does not mount it.
May be someone know right wat to mount user dirs in tmpfs?

Thank you.
 
Is the rest using ZFS? That might try to mount /usr/home/sailorsamoor/.cache before /usr/home or /usr/home/sailorsamoor is mounted. You could try adding the late keyword, then it'll get mounted later in the boot process. Another option is to use autofs(5)/automount(8) so it gets automatically mounted when it's accessed.
 
Back
Top