You are not logged in.
Hi there,
In my fstab I have en entry which sets Chromium's cache to be mounted in my RAM instead of in my SSD -
#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
tmpfs /tmp tmpfs nodev,nosuid,noatime,size=512m 0 0
cache-chromium /home/tom/.cache/chromium tmpfs defaults,noatime,mode=1777,size=512m 0 0
UUID=366ab804-d6e5-4bd3-bb14-884c1ab7ad28 /boot ext2 defaults,noatime 0 2
UUID=97e30b83-03a4-4520-9d98-d45b70d0096d /home ext4 defaults,noatime,discard 0 2
UUID=db565351-ab5b-4f50-bb41-77e79757132f / ext4 defaults,noatime,discard 0 1
However during boot I get a 'FAIL' for the 'Mounting local filesystems' stage and df -h does indeed show that it hasn't been mounted, but upon executing 'sudo mount -a' it will mount error-free.
Could anyone shed some light on why it isn't mounting automatically at boot time?
Thank a lot!
Last edited by Spudgun (2011-08-31 09:12:45)
Offline
how about this way?
tmpfs /home/tom/.cache/chromium tmpfs defaults,noatime,mode=1777,size=512m 0 0
Also, you can simply set XDG_CACHE_HOME to "/tmp/.${USER}/cache" without using a fstab rule.
Arch64/DWM || My Dropbox referral link
Offline
Thanks for the speedy reply!
I tried your first option and that also failed to mount during boot. Could it be that the booting process doesn't like mounting more than one tmpfs..?
For the second option, how do I go about setting that variable?
Offline
if you are using bash put this in your ~/.bash_profile, or ~/.bashrc:
export XDG_CACHE_HOME="/tmp/.${USER}/cache"
[[ ! -d "${XDG_CACHE_HOME}" ]] && install -dm0700 "${XDG_CACHE_HOME}"
Arch64/DWM || My Dropbox referral link
Offline
Spudgun, you have to mount the tmpfs on /home/tom/.cache/chromium after mounting /home, else the mountpoint does not exist and hence the failure.
Offline
Ahh! Thanks a lot, will update my fstab now.
Offline