Extremely novice here trying to get my server up and running via Raspbian. I’ve gotten to the point where I have exhausted all forum posts and gotten all the NFTS support I can find, so here goes.
I successfully (at least, I think) mounted my external USB drive and gotten read permissions to the folders in question. But when I go to import to Plex Server the files are grayed out and seen as a document. I have seen referenced here a lot ChuckPa’s post about getting NTFS drives to be mounted and granted permissions but frankly that is above my level of expertise.
I have tried finding all directories and assigning the owner read, write, and execute privileges via the -exec chmod method as well as countless others. If anyone knows the ‘How to assign read/write NFTS permissions for Dummies’ then please let me know.
Hi mchez,
Usually it is enough to to execute the following commands:
-“cd [your drive]”
-“sudo chmod 444 * -R”
Further reading:
-R option means it will affect all Subfolders, not just the ones you can see with “ls” but those you see with “tree”
these numbers seem weird but they have a logic:
the first No. is for the owner (probably you), the second one for the group (likely not very interesting), the third one everyone else. The permissions you can give are R, Read, w write and X, eXecute, in order. Numbers go from 0 to 7, and after converting them to binary (1 - 001, 2 - 010, 3 - 011, 4 - 100, 5 - 101, 6 - 110, 7 - 111), and now you can apply RwX in order and see; I need read-only permission, so I’m going for 4.
Did this help?
Unfortunately that did not work. I am still unable to click on my media to import to Plex (I am able to see it, just not import it). Would it be better to grant full permissions to all folders instead of just read permissions?
Import might be the wrong word. Trying to add a library.
Did you do any additional steps getting NTFS read/write support (besides the 444 method above)? I’m thinking about starting from scratch and trying again.
I figured some issues with those permissions are related to the home user directory for removable devices or /media/pi, so I wrote a little bash script that unmounts /home/pi/[drive] and mounts it somewhere else, not affected by any user yet. My location for mount is /media/plex, and i set all permissions (-R) to 444.
If you do this, don’t forget to tell your PMS about it
Okay I think I know what my problem is. I cannot seem to be able to grant permissions to change ownership/read/write permissions of my device because for some reason I am not the owner. When I run “chown -R pi:pi /dev/sda1” I am told that the operation is not permitted.
UGH
That’s because /dev/sdaX is not a directory, it is more or less a link that refers to your drive. Because nobody mounted it, nobody owns it. You need to mount it somewhere else. Example: sudo mount /dev/sda1 /media/plex