[SOLVED] Problem with write permission of CT mounted disk

jibon57

Member
May 7, 2016
5
0
6
33
Hello,

I am a newbie in proxmox. I have 2 hard disks in my server. In the SSD, I have installed the root proxmox & all the CTs. And using the second hard disk as data disk. After creating a CT I tried to add a mount point & put the disk's location to the 2nd hard disk. I didn't check in "Read only" option but after entering to the CT I can see a new mount point "/dev/loop1" but as a regular user I wasn't able to read on that disk. I was trying this way

Code:
root@panel:/# mount /dev/loop1 /data
mount: block device /dev/loop1 is write-protected, mounting read-only
mount: cannot mount block device /dev/loop1 read-only

I am using ubuntu 14.04 on the CT. How I can resolve this problem?

Thanks
Jibon
 
Proxmox automatically mount additional mount points, so there is no need to do that manually.
 
Please can you also post your container configuration /etc/pve/lxc/<CTID>.conf (just to avoid confusion)
 
Here is output:

Code:
root@server: cat 100.conf
arch: amd64
cpulimit: 8
cpuunits: 1024
hostname: panel.XXXX.com
memory: 10000
mp0: HDD:100/vm-100-disk-1.raw,mp=/var/www,size=100G
nameserver: 127.0.0.1 213.186.33.99
net0: bridge=vmbr0,gw=91.134.174.72,hwaddr=02:00:00:20:65:cd,ip=91.XXX.XXX.72/32,name=eth0,type=veth
ostype: ubuntu
rootfs: local:100/vm-100-disk-1.raw,size=40G
searchdomain: ovh.net
swap: 512
 
Thank you very much dietmar :). I have solved my problem. You where right, I can't give direct permission to write apache users on disk. I have created a new directory & it's working just fine :)