How to mount /tmp in /mnt on EC2?
Posted
by
Claudio Poli
on Server Fault
See other posts from Server Fault
or by Claudio Poli
Published on 2012-09-14T21:39:01Z
Indexed on
2012/09/15
3:39 UTC
Read the original article
Hit count: 534
I was wondering what is the best way to mount the /tmp
endpoint in the ephemeral storage /mnt
on an EC2 instance and give the ubuntu
user default write permissions.
Some suggest editing /etc/rc.local this way:
mkdir -p /mnt/tmp && mount --bind -o nobootwait /mnt/tmp /tmp
However that doesn't work for me (files differs).
I tried editing the default fstab entry:
/dev/xvdb /mnt auto defaults,nobootwait,comment=cloudconfig 0 2
replacing /mnt with /tmp and and giving it a umask=0777, however it doesn't work because of cloudconfig.
I'm using Ubuntu 12.04. Thanks.
© Server Fault or respective owner