- Dec 14, 2000
- 10,473
- 81
- 101
I loaded unbuntu on an intel NUC to run kodi on and its working great. I had to connect an external drive to the machine where all my movies are stored, and then edit the fstab entry to auto mount it on server reboot. That part works fine.
The part i'm having a problem fixing is the file permissions. The entire disk and all files are owned by root:root and I can't chown them to the kodi user. I read up on the fstab man page and thought I had it figured out, but after spending a couple hours last night, am very frustrated with it. How can I set up an external drive that was formatted in windows and change the owner on everything and keep it that way on boot up?
My mount is /external/movies1, so my fstab entry looks something like
UUID=XXXXXXXXXXXX ntfs defaults,user,rw 0 0
Obviously this is incorrect. I mean, I can now see the drive and read the movies but I'm unable to copy movies over with sftp as they are all owned by root and sudo chown -R kodi:kodi /external/movies1 doesn't do anything
The part i'm having a problem fixing is the file permissions. The entire disk and all files are owned by root:root and I can't chown them to the kodi user. I read up on the fstab man page and thought I had it figured out, but after spending a couple hours last night, am very frustrated with it. How can I set up an external drive that was formatted in windows and change the owner on everything and keep it that way on boot up?
My mount is /external/movies1, so my fstab entry looks something like
UUID=XXXXXXXXXXXX ntfs defaults,user,rw 0 0
Obviously this is incorrect. I mean, I can now see the drive and read the movies but I'm unable to copy movies over with sftp as they are all owned by root and sudo chown -R kodi:kodi /external/movies1 doesn't do anything
Last edited: