SD card file operations from container

Hi @developer0916 ,

Are your external drives formatted as FAT32? If that’s the case then your question is answered in the same link you referenced: How to pass environment variables to torizon - #8 by lucas_a.tx

In summary:

  • FAT32 doesn’t support Linux-like permissions, so the way you mount it determines the permissions you get;

  • You can solve the issue by changing /etc/fstab detailed in the link above: it will tell TorizonCore to mount your FAT32 drive with user torizon as the owner of the mount point, so you’ll have write permissions outside and inside of a container.

It seems that udisks2 mounts, but in Ubuntu it is mounted by the login user.
Why is this?

I don’t know exactly how Ubuntu works in this case, but I assume that it already has a script or description that mounts FAT32 drives as the current user. Currently TorizonCore doesn’t have something similar, so by default it mounts these type of devices as root.

Hope this helps you.

Best regards,
Lucas Akira