I've set up a Ubuntu Server 14.04 instance including Mate Desktop in AWS EC2. It has a 30GB system volume and a 80GB volume which is available at /mnt
.
After calling sudo chown <awsuser> /mnt
I can create files and folders on the 80GB volume.
After rebooting the VM I have to re-run sudo chown <awsuser> /mnt
otherwise I get a permission denied error.
How can I make sudo chown <awsuser> /mnt
permanent?
Update:
Output of mount | grep /mnt
:
/dev/xvdb on /mnt type ext3 (rw)
Output of ls -ld /mnt
drwxr-xr-x 3 root root 4.0K Nov 23 2015 /mnt
/mnt
points to an instance storage. Instance storage is tied to the instance lifecycle as pointed out in the docs:http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/InstanceStorage.html#instance-store-lifetime
After
sudo chown <awsuser> /mnt
It makes changes permanent and revertible only by root.