Brand new to the Linux Mint game, just built a server just for this, was hoping it would be a little easier but oh well- time to learn! Just bear with me cause im a total noob to the terminal and everything.
Ok so i went to Add Library, found my external drive, but basically it says that there is nothing inside it, which is not the case. I read that i am supposed to give permission to plex to access the drive or something but i have no idea how to do that.
Here is one of the links i was given on reddit but it might as well be in chinese for me- can someone explain like im five ?
https://support.plex.tv/hc/en-us/articles/200288596-Linux-Permissions-Guide
I believe you have two issues. First since you are using Mint linux (i use Ubuntu) if you allow auto mounting of the external drive then even if you change the permission it will be over written. So you will need to mount your external drive in fstab first and then do permission.
there is a really good explanation of how to do this if i can find it i will post a link here, if not i will put something together about fstab and permissionsâŠ
here is the link
forums.plex.tv/discussion/115122/new-install-of-linux-mint-17-and-pms
let me know if you have any question.
also make sure you are careful as you will be modifying system files
@plex-linux I would love to follow that guide but unfortunately i dont know how to do any of that, is there any way you can ELI5?
failed even on the first step lol-
âsudo: gedit: command not foundâ
Mint uses xapps. Use xed in place of gedit.
ok got a little further, edited the file that came up, just copy and pasted what they told me to in that thread, now im at âsudo chmod 755 /mediaâ nothing happened, then i typed âsudo mount /mediaâ and it says âmount: canât find UUID=8c74714974713754â
the reason is each drive has its own uuid, so first we need to find your external drive then once we have that we will get the uuid. then we will get it mounted in fstab andget the right permissions on it.
I am assuming that you already have your media (movie/tv shhow) on the drive and my guess is that it is formatted with fat32. it that correct ?
ok let start from the beginning:
step1: making sure your external drive is plugged in, run this command:
df
paste the result back.
also do you have an idea were you want to mount the drive?
if not i would recommend that you create a new folder in you home folder and call it something like âwd or seagate externalâ but what ever you choose will be fine.
it is formatted with NTFS,
contents in the âdisksâ app reads: NTFS â Mounted at /media/rusty/ATLAS
Atlas is the name of the drive. After i click on atlas (on the desktop) it opens up to a few different folders, two of which are very important to plex, âMoviesâ and âShowsâ
here are the results of df:
rusty@rusty-Z170N-Gaming-5 ~ $ df
Filesystem 1K-blocks Used Available Use% Mounted on
udev 4023168 0 4023168 0% /dev
tmpfs 808912 9844 799068 2% /run
/dev/sda1 232062976 14622292 205629512 7% /
tmpfs 4044548 359436 3685112 9% /dev/shm
tmpfs 5120 4 5116 1% /run/lock
tmpfs 4044548 0 4044548 0% /sys/fs/cgroup
cgmfs 100 0 100 0% /run/cgmanager/fs
tmpfs 808912 32 808880 1% /run/user/1000
/dev/sdc1 5859374996 2001664504 3857710492 35% /media/rusty/ATLAS
Thank you for the help!
EDIT: I have created a new folder in my home folder âATLAS Externalâ
Folks,
Since Iâm a key participant in the referenced thread, may I offer up a summery âhow toâ document which is the outgrowth?
Iâm interested in hearing of any deficiencies or suggestions.
https://forums.plex.tv/discussion/262405/adding-external-usb-or-internal-ntfs-disks-to-linux-for-pms
hey @ChuckPA thank you so much for the guide, im scared to finish step four though it seems very unclear and i dont want to mess anything up. Very confusing since A. im only using one disk, B. one of your disks is named Media-3.
Also im using Linux Mint and was told that gedit wouldnt work and to use xed instead. Dont know what either of those mean though.
Anyway, im having trouble understanding step four-
Do i copy past what you have written there? Do i copy what you have there into a text editor and fill in my information? Not sure what to do here
This is what ive got so far:
rusty@rusty-Z170N-Gaming-5 ~ $ su
Password:
rusty-Z170N-Gaming-5 rusty # blkid /dev/sdb1
/dev/sdb1: UUID=â0E4914830E491483â TYPE=ântfsâ PARTUUID=â0e491057-01â
rusty-Z170N-Gaming-5 rusty # blkid /dev/sdc1
/dev/sdc1: LABEL=âATLASâ UUID=â03F699215492B4E1â TYPE=ântfsâ PARTUUID=â5a55a324-47d5-47b6-b979-c707e400c8deâ
rusty-Z170N-Gaming-5 rusty # mkdir /disks
mkdir: cannot create directory â/disksâ: File exists
rusty-Z170N-Gaming-5 rusty # mkdir /disks/ATLAS
mkdir: cannot create directory â/disks/ATLASâ: File exists
rusty-Z170N-Gaming-5 rusty # chown -R rusty:rusty /disks
rusty-Z170N-Gaming-5 rusty # ls -la /disks
total 12
drwxr-xr-x 3 rusty rusty 4096 Mar 10 01:02 .
drwxr-xr-x 25 root root 4096 Mar 10 01:01 âŠ
drwxr-xr-x 2 rusty rusty 4096 Mar 10 01:02 ATLAS
rusty-Z170N-Gaming-5 rusty #
You donât copy-paste the info I have written, you create your own using the unformation you got from your system.
In step 4,
The highlighted values (Yellow versus Green) correspond to the two disk types NTFS versus ext4)
in this line
UUID=50f1a141-bc8a-48ba-9b29-8a7bee8043e9 /disks/media3 ext4 defaults,auto,rw 0 1```
I decided to mount that `UUID=` label (partition) on `/disks/media3`
I declared it's `ext4` because `blkid` told me that.
Correspondingly I put "Chuck-2T" at `/disks/chuck2t`
I used the NTFS `UUID=` value and delcared it to be `ntfs` to linux.
ok i think im getting it @chuckPA thank you for your help, just edited my previous comment to show the mk dir and blkid lines.
Once i get to step four it is hard to navigate around the terminal, the arrow keys correspond to letters somehow and things start getting weird:
/etc/fstab: static file system information.
Use âblkidâ to print the universally unique identifier for a
device; this may be used with UUID= as a more robust way to name devices
that works even if disks are added and removed. See fstab(5).
/ was on /dev/sda1 during installation
UUID=5d5b2b47-96cc-4a69-825b-da55e797ddc6 / ext4 errors=remount-ro 0 1
swap was on /dev/sda5 during installation
UUID=e84f64bf-98bd-455f-92d4-ef8719eddb2b none swap sw 0 0
Mount media drive for Plex
UUID=8C74714974713754 /media ntfs defaults 0 0
I cant really edit anythign here
Ok here is everything from the very beginning
-using linux mint
-external drive is NTFS 6tb and named âATLASâ
-I have created a folder in my home folder called âATLAS Externalâ because i was told to do soâŠ
-
here is everything up until step four, on step four i used âxed /etc/fstabâ
rusty@rusty-Z170N-Gaming-5 ~ $ df
Filesystem 1K-blocks Used Available Use% Mounted on
udev 4023168 0 4023168 0% /dev
tmpfs 808912 9832 799080 2% /run
/dev/sda1 232062976 24563372 195688432 12% /
tmpfs 4044548 369236 3675312 10% /dev/shm
tmpfs 5120 4 5116 1% /run/lock
tmpfs 4044548 0 4044548 0% /sys/fs/cgroup
cgmfs 100 0 100 0% /run/cgmanager/fs
tmpfs 808912 32 808880 1% /run/user/1000
/dev/sdc1 5859374996 2001664504 3857710492 35% /media/rusty/ATLAS
/dev/sdb1 1953470844 243848 1953226996 1% /media/rusty/0E4914830E491483
rusty@rusty-Z170N-Gaming-5 ~ $ su
Password:
rusty-Z170N-Gaming-5 rusty # blkid /dev/sdb1
/dev/sdb1: UUID=â0E4914830E491483â TYPE=ântfsâ PARTUUID=â0e491057-01â
rusty-Z170N-Gaming-5 rusty # blkid /dev/sdc1
/dev/sdc1: LABEL=âATLASâ UUID=â03F699215492B4E1â TYPE=ântfsâ PARTUUID=â5a55a324-47d5-47b6-b979-c707e400c8deâ
rusty-Z170N-Gaming-5 rusty # mkdir /disks
mkdir: cannot create directory â/disksâ: File exists
rusty-Z170N-Gaming-5 rusty # mkdir /disks/ATLAS
mkdir: cannot create directory â/disks/ATLASâ: File exists
rusty-Z170N-Gaming-5 rusty # chown -R rusty:rusty /disks
rusty-Z170N-Gaming-5 rusty # ls -la /disks
total 12
drwxr-xr-x 3 rusty rusty 4096 Mar 10 01:02 .
drwxr-xr-x 25 root root 4096 Mar 10 01:01 âŠ
drwxr-xr-x 2 rusty rusty 4096 Mar 10 01:02 ATLAS
rusty-Z170N-Gaming-5 rusty # xed /etc/fstab
(xed:21914): EggSMClient-WARNING **: Failed to connect to the session manager: None of the authentication protocols specified are supported
(xed:21914): dconf-WARNING **: failed to commit changes to dconf: The connection is closed
Error creating proxy: The connection is closed (g-io-error-quark, 18)
Error creating proxy: The connection is closed (g-io-error-quark, 18)
Error creating proxy: The connection is closed (g-io-error-quark, 18)
Error creating proxy: The connection is closed (g-io-error-quark, 18)
Error creating proxy: The connection is closed (g-io-error-quark, 18)
(xed:21914): dconf-WARNING **: failed to commit changes to dconf: The connection is closed
(xed:21914): dconf-WARNING **: failed to commit changes to dconf: The connection is closed
(xed:21914): dconf-WARNING **: failed to commit changes to dconf: The connection is closed
^C
rusty-Z170N-Gaming-5 rusty #
Then it comes up with another screen
/etc/fstab: static file system information.
Use âblkidâ to print the universally unique identifier for a
device; this may be used with UUID= as a more robust way to name devices
that works even if disks are added and removed. See fstab(5).
/ was on /dev/sda1 during installation
UUID=5d5b2b47-96cc-4a69-825b-da55e797ddc6 / ext4 errors=remount-ro 0 1
swap was on /dev/sda5 during installation
UUID=e84f64bf-98bd-455f-92d4-ef8719eddb2b none swap sw 0 0
Mount media drive for Plex
UUID=8C74714974713754 /media ntfs defaults 0 0
which i am guessing i change like how you changed it in step four but with my own info, then i save and close the window? orrr something else? Should i also change defaults to âauto, rw, 0 1â? like yours?
For anyone else looking at this post trying to figure out the same thing- yes- just save and close the window then restart the machine, and yes - change the defaults to auto rw 01 like in the example. Cant believe this worked- it seems like magic and i love it
Moderator Edit: Added âCodeâ paragraph formatting for readability
OH MY GOD IT WORKED
I CANNOT BELIEVE IT
ok ill spare you the details on my victory dance but holy hell i cant believe that worked. Thank you SO MUCH.
Last question, if i update my drive (add files to it) they will still automatically update in my plex right? Like i wont have to do that every time i add a movie to my external drive right?
ONCE AGAIN- THANK YOU
Tell PMS to auto scan for new media automatically (settings - server - library) and all is done
In my document it has defaults,auto,rw,nofail (linux default as basis, auto mount, read-write, donât fail to boot it drive not there)
Based on your input here, Iâve reworked the wording of the doc a bit. Hope it is more clear in Step 4.
Ok cool, so do i need to go back and add anything to mine or does it look good?
So I would change your fstab entry for your disk to add > defaults,auto,rw 0 1
this will mount your drive as read and write, plus it would let your pc boot even without the external harddrive present
UUID=8C74714974713754 /media ntfs defaults 0 0
change to:
UUID=8C74714974713754 /media ntfs defaults,auto,rw,nofail
other than that I believe you are good.
Thatâs correct. each UUID Universally Unique IDentifier is just that⊠unique .
Gedit and xed are text editing programs btw.