You are not logged in.

#1 2011-08-31 07:43:58

Spudgun
Member
Registered: 2008-09-09
Posts: 12

[SOLVED] 'cache-chromium' not automounting...

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

#2 2011-08-31 07:48:46

JokerBoy
Member
From: România
Registered: 2009-09-24
Posts: 641

Re: [SOLVED] 'cache-chromium' not automounting...

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.

Offline

#3 2011-08-31 08:00:25

Spudgun
Member
Registered: 2008-09-09
Posts: 12

Re: [SOLVED] 'cache-chromium' not automounting...

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

#4 2011-08-31 08:12:13

JokerBoy
Member
From: România
Registered: 2009-09-24
Posts: 641

Re: [SOLVED] 'cache-chromium' not automounting...

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}"

Offline

#5 2011-08-31 08:24:22

jakobm
Member
Registered: 2008-03-24
Posts: 132

Re: [SOLVED] 'cache-chromium' not automounting...

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

#6 2011-08-31 09:09:33

Spudgun
Member
Registered: 2008-09-09
Posts: 12

Re: [SOLVED] 'cache-chromium' not automounting...

Ahh! Thanks a lot, will update my fstab now.

Offline

Board footer

Powered by FluxBB