How to access windows ntfs drive on plex server dual-boot [BUG?]

I have dual boot - Windows 10 and Ubuntu.
Plex is installed on Ubuntu

Clipboard - June 19, 2020 2_50 PM

I can only see media from my local disk,
I can’t see any folder on the mount NTFS disk

grep sda8 /etc/fstab 
/dev/sda8  /media/user/Multimedia300GB   ntfs-3g  permissions,auto 0 0

root@T460:~# blkid /dev/sda8
/dev/sda8: LABEL="Multimedia300GB" UUID="3A0A4D597D9B5C42" TYPE="ntfs" PARTUUID="9a8d21a2-2f11-4a45-a03e-e2a6aeb0648d"
root@T460:~# df -hT | grep Multi
/dev/sda8      fuseblk   393G  385G  8.0G  98% /media/user/Multimedia300GB


root@T460:~# id plex
uid=999(plex) gid=999(plex) groups=44(video),1000(user),999(plex)
root@T460:~# ls -ald /media/user/Multimedia300GB/
drwxrwxrwx 1 user user 8192 Jun 19 11:25 /media/user/Multimedia300GB/
root@T460:~# ls -ald /media/user/Multimedia300GB/videos/
drwxrwxrwx 1 user user 40960 May 28 10:25 /media/user/Multimedia300GB/videos/

Also after I tried to change the owner from mine to “plex”, I still not see any folder/files

root@T460:~# ls -ald /media/user/Multimedia300GB
drwxrwxrwx 1 plex plex 8192 Jun 19 11:25 /media/user/Multimedia300GB
root@T460:~# ls -ald /media/user/Multimedia300GB/videos/
drwxrwxrwx 1 plex plex 40960 Jun 19 15:04 /media/user/Multimedia300GB/videos/

Anyone can assist?

The reason you can’t see the disk in your Linux installation is that it is being auto-mounted and has access control lists managed by udisks2; no amount of Unix permissions changes are going to give user plex access. The recommended solution is to create a dedicated mount directory and mount the disk to it, as described in this article:

If you want something easier to try first, you can modify the ACLs so that user plex has access to the automatic mount folder for your user. To do this, run the following (change the directory path as necessary):

sudo setfacl -m u:plex:rx /media/user/

You can change “rx” to “rwx” if you’d like user plex to also have write access to the disk.

@pshanew
UPDATED
it resolved the issue after

sudo setfacl -m u:plex:rx /media/user/

before

getfacl /media/user/
getfacl: Removing leading '/' from absolute path names
# file: media/user/
# owner: root
# group: root
user::rwx
user:user:r-x
group::---
mask::r-x
other::---

after run the command

getfacl /media/user/
getfacl: Removing leading '/' from absolute path names
# file: media/user/
# owner: root
# group: root
user::rwx
user:plex:r-x
user:user:r-x
group::---
mask::r-x
other::---
1 Like

@lovememore

Your solution is not correct.

The next update will overwrite what you have done.

The correct solution is to implement a systemd override

This will also assist you to properly mount NTFS on Linux

Out of curiosity, what is the output of running getfacl /media/user/? The command I provided earlier should have granted user plex access to /media/user/ and everything under it. It would not have worked if you ran setfacl with each sub-directory. It needs to be run against /media/user.

But, to Chuck’s point (and as I suggested above), it is recommended that you create a dedicated mount point for the disk following the instructions in the guide provided. The shortcut I suggested is just a way to give user plex blanket access to everything under your auto-mount directory (/media/user/).

@ChuckPa
I followed your guide and without the following command I can’t see from Plex any folder/file on mount directory

sudo setfacl -m u:plex:rx /media/my-user-name/

also in your guide for Ubuntu/Debian on fstab file is better to use ntfs-3g instead ntfs.

Following the guide, what directory did you create you mount points in? That command only affects permissions for /media/username, and only when using ACLs. Using Chuck’s guide, you should be mounting the disk under another location, such as /mnt/ or /disks/.

I see , I didn’t try to create a new mount point . ## C. Create the locations where we will graft everything into Linux. It may works too.

your solution was more easy to apply .

thank you both.

No problem, glad you got it working.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.