G_DIETPI_VERSION_CORE=6
G_DIETPI_VERSION_SUB=28
G_DIETPI_VERSION_RC=0
G_GITBRANCH='master'
G_GITOWNER='MichaIng'
Linux alxepi 4.19.75-v7l+ #1270 SMP Tue Sep 24 18:51:41 BST 2019 armv7l GNU/LinuxRPi 4 Model B (armv7l) or (EG: RPi3)sed -n 5p /DietPi/dietpi/.hw_modeldietpi-software -> Software: optimized/mnt/external (what I did)/mnt/external as download path for the series/mnt/external as download pathchown: changing ownership of '/mnt/external': Operation not permittedcan you try to create a new folder /mnt/external/<NEW DIR>/. For testing purposes you could try to give 777 permission to that folder just to check if it's working.
BTW: you could use dietpi-drive_manager to manage your mounts 馃槂
Already tried creating a new directory, didn't think it was important, but that didn't work.
Yeah I used dietpi-drive_manager to mount it :smile:
I remember running these to make things work:
chown -R dietpi:dietpi /mnt/external
chmod -R 775 /mnt/external
I take it you're logged in as root.
@acryllect
where do you facing this issue exactly? Is it already right after searching the movie and trying to change the patch? Like this?
@Joulinar Exactly
After selecting "add a different path" and browsing to it, that's when the issue comes in
@acryllect
can you go to /mnt and check who is ownig the external directory. For me the mount is owned by user dietpi. As well directories are created by this user.
root@DietPiVM1:/mnt# ls -l
insgesamt 12
drwxrwxr-x 8 dietpi dietpi 4096 Jan 7 00:52 dietpi_userdata
drwxr-xr-x 2 root root 4096 Jul 9 17:24 ftp_client
drwxr-xr-x 2 root root 4096 Jul 9 17:24 nfs_client
drwxrwx--- 2 dietpi dietpi 0 Jan 7 02:02 station
root@DietPiVM1:/mnt#
As well you can login as user dietpi on OS layer and try to do something on that mount
btw is this a network drive or an external hdd?
@Joulinar
The ownerships of /mnt are as follows - keep in mind, I know very little of what this means:
root@alxepi:/mnt# ls -l
total 16
drwxrwxr-x 10 dietpi dietpi 4096 Jan 6 10:55 dietpi_userdata
drwxr-xr-x 2 root root 0 Feb 14 2019 external
drwxr-xr-x 2 root root 4096 Jul 14 19:24 ftp_client
drwxr-xr-x 2 root root 4096 Jul 14 19:24 nfs_client
drwxr-xr-x 2 root root 4096 Jul 14 19:24 samba
I might a have changed the ownership to the root user (from dietpi), for some reason, but nothing changed.
This is an external drive, plugged into one of the USB3 ports.
Edit: I also found that multiple users have posted about similar issues in the past on the dietpi.com forum - here's one that I found just now:
https://dietpi.com/phpbb/viewtopic.php?f=11&t=4595
@bbsixzz
I am unable to change the ownership of the directory, even though I am logged in as root (after running su -).
I get the following error:
chown: changing ownership of '/mnt/external': Operation not permitted
May the fact that the drive is partitioned as FAT be the reason it's not allowing me to change the ownership? I read, after a lot of searching, that FAT doesn't allow me to change ownership of files. Is this true?
This was exactly the issue! I re-formatted the drive using dietpi-drive_manager selecting mode drive instead of partition (since nothing was on the drive) and selected the type as the Default, recommended type (instead of FAT).
I then created a new group and added sonarr to it:
root@alxepi:~# addgroup media
Adding group `media' (GID 1001) ...
Done.
root@alxepi:~# sudo usermod -aG media sonarr
Then, I created the Shows directory and changed the ownership of that directory to the user sonarr and the group media (for future use with radarr and lidarr):
mkdir /mnt/external/Shows
sudo chown -R sonarr:media /mnt/external/Shows
Thanks so much for your help @Joulinar and @bbsixzz , always great to have active people helping out idiots like me. For users who stumble upon this post in the future, here are some links that helped me figure stuff:
https://forum.manjaro.org/t/folder-permission-for-sonarr-and-other-apps/47719/3 - where I finally started wondering if the format type was a proble,
https://dietpi.com/phpbb/viewtopic.php?f=11&t=4595 - a user posted about a similar issue
yep I guess you would need to format your stick into ext4. Do the following
dietpi-drive_managerUnmount your deviceFormat/mnt/externalchown -R dietpi:dietpi /mnt/externalchmod -R 775 /mnt/externalcd /mntls -la should now display dietpi user as owner of the mounted directoryEDIT:
damn I'm to slow 馃槂
Most helpful comment
This was exactly the issue! I re-formatted the drive using
dietpi-drive_managerselecting modedriveinstead ofpartition(since nothing was on the drive) and selected the type as the Default, recommended type (instead of FAT).I then created a new group and added
sonarrto it:Then, I created the
Showsdirectory and changed the ownership of that directory to the usersonarrand the groupmedia(for future use withradarrandlidarr):Thanks so much for your help @Joulinar and @bbsixzz , always great to have active people helping out idiots like me. For users who stumble upon this post in the future, here are some links that helped me figure stuff:
https://forum.manjaro.org/t/folder-permission-for-sonarr-and-other-apps/47719/3 - where I finally started wondering if the format type was a proble,
https://dietpi.com/phpbb/viewtopic.php?f=11&t=4595 - a user posted about a similar issue