Good night,
I am going crazy to get my LXC container to properly access the USB hard drive that I automatically mount when connecting or disconnecting with udiskie. The proxmox host machine correctly mounts any USB hard drive I connect to it in the path /media/root/(DISKNAME).
Using the container configuration files I have mapped this path to be accessible in the containers, in the case of the containers I see it in /data/(DISKNAME).
It works correctly, the problem is when I do a reboot on the host, when I restart the LXC can see the /data/(DISKNAME) directory but when trying to access it gives a permissions error. If I unplug and plug the USB hard disk, at that moment I have access to the directory from the LXC.
I don't know how to solve it, I have tried to make adjustments in udiskie but I can't get it to work... I'm a bit desperate after several hours trying to solve it.
Thanks in advance to anyone who can help me.
I am going crazy to get my LXC container to properly access the USB hard drive that I automatically mount when connecting or disconnecting with udiskie. The proxmox host machine correctly mounts any USB hard drive I connect to it in the path /media/root/(DISKNAME).
Using the container configuration files I have mapped this path to be accessible in the containers, in the case of the containers I see it in /data/(DISKNAME).
It works correctly, the problem is when I do a reboot on the host, when I restart the LXC can see the /data/(DISKNAME) directory but when trying to access it gives a permissions error. If I unplug and plug the USB hard disk, at that moment I have access to the directory from the LXC.
I don't know how to solve it, I have tried to make adjustments in udiskie but I can't get it to work... I'm a bit desperate after several hours trying to solve it.
Thanks in advance to anyone who can help me.