OS: Linux Mint 19 Cinnamon 64-bit.
I know how to create a RAM disk (tmpfs
), actually I have it mounted in /etc/fstab
like so:
none /ramdisk tmpfs size=2G,mode=0777 0 0
As you can see, it has 2 GiB, and is accessible to all users on my personal computer it does not matter anyways.
I know about --disk-cache-dir
Google Chrome option. But I don't want to use it.
Reason being, I want to be able to run Chrome in whichever way I like, having the same RAM cache directory. There are simply too many ways I run my Chrome. What if I replaced an icon for instance? It is unusable for me at least.
I seek guidance on creating a shell script, which would create a symlink to Chrome cache directory onto my RAM disk, which is mounted as seen above.
That script I intend to put into root
's cron
using sudo crontab -e
as follows:
@reboot /home/vlastimil/Development/sh/google-chrome-cache-ramdisk
Note, that I don't have a swap enabled on my system.