Set quota on dir

it seems I’m running into issues with this setup. After a few (+10) successful saves from the camera I only get 0 byte files

What makes you think it’s not full?

you were right, it was full w/ 950MB/1GB

so, I tried this here to no avail. I’m not very knowledgeable w/ fstab
I’m able to mount the img container to /mnt/cam to ~/camera and mirror files back and forth but the camera can’t write into ~/camera.

/home/osmc/containers/cam.img /mnt/cam ext4 rw,loop 0 0
/mnt/cam/ /home/osmc/camera/ none defaults,bind,x-systemd.requires=/mnt/cam 0 0

Seems I’m mssing some permission, no?

I’m guessing that there are file permissions in play, as I said I’m not that knowledgeable in fstab, but i guess there should be some way to make the folder permissions to the moint point to osmc instead of “root” as default.

I got it working with this in fstab

/home/osmc/containers/cam.img /mnt/cam ext4 rw,loop 0 0
/mnt/cam/ /home/osmc/camera/ none rw,bind,x-systemd.requires=/mnt/cam,umask=000 0 0
1 Like