natHrjL
September 27, 2019, 6:29pm
1
Hi,
I’m new to both Plex and Linux so slightly struggling with setting it up. I’ve been following the guide posted on here but just struggling with a few of the steps.
This document is of primary interest to anyone who has connected USB drives or has media on other internal drives but user plex can’t access it due to Linux’s default security mechanisms.
WARNING: This procedure will not work for SNAP, Docker or other container mechanisms unless expressly handled within the confines of the container. This procedure is intended for use with the dpkg package.
We will walk through the steps needed to add these external USB hard drives and internal hard drives…
Section C is where I am up to, I only have 1 External HDD and not sure where to locate the ‘# the location’
Can provide the disk and device name if required.
nokdim
September 27, 2019, 6:49pm
2
I am not sure why @ChuckPa has ‘# the location’ on that post, it is really just a comment.
you should just need to open a console or terminal window and follow the commands after that.
Chuck put them under /disks/ which you should also unless you want them mounted elsewhere.
ChuckPa
September 27, 2019, 7:11pm
3
Can I be of additional help here?
Thanks for catching that. Please let me know if that still needs some work?
natHrjL
September 27, 2019, 8:16pm
4
Not a problem. Trying to follow it literally word for word as I am a total novice.
I’ve seen that you have changed it however, can you just clarify what I need to put as its stating: ’ [root@lizum: command not found’.
Im doing this but doesn’t appear to work:
[root@lizum username]# mkdir /disks /disks/c /disks/name of external hhd
ChuckPa
September 27, 2019, 8:36pm
5
I’m showing you what the terminal session will look like.
As root, that’s the prompt I see.
natHrjL
September 27, 2019, 9:05pm
6
the root@lizum command is not working for me. it states command not found
ChuckPa
September 27, 2019, 9:06pm
7
You type everything to the right of the #
root@lizum is my user name@hostname.
natHrjL
September 27, 2019, 9:23pm
8
That now makes sense.
Im struggling to make the mount point. im not sure what mine should look like. really sorry
ChuckPa
September 27, 2019, 9:28pm
9
Show me the output of the df command, I will type it out for you
natHrjL
September 27, 2019, 9:32pm
10
nathrjl@nathrjl-Vostro-3558:~$ df
Filesystem 1K-blocks Used Available Use% Mounted on
udev 4013376 0 4013376 0% /dev
tmpfs 807452 1968 805484 1% /run
/dev/sda1 479668904 448402840 6830456 99% /
tmpfs 4037260 30932 4006328 1% /dev/shm
tmpfs 5120 4 5116 1% /run/lock
tmpfs 4037260 0 4037260 0% /sys/fs/cgroup
/dev/loop0 1024 1024 0 100% /snap/gnome-logs/61
/dev/loop3 43904 43904 0 100% /snap/gtk-common-themes/1313
/dev/loop1 3840 3840 0 100% /snap/gnome-system-monitor/100
/dev/loop7 256 256 0 100% /snap/gtk2-common-themes/5
/dev/loop5 1024 1024 0 100% /snap/gnome-logs/73
/dev/loop6 4352 4352 0 100% /snap/gnome-calculator/501
/dev/loop2 91264 91264 0 100% /snap/core/7713
/dev/loop4 153600 153600 0 100% /snap/gnome-3-28-1804/67
/dev/loop8 207744 207744 0 100% /snap/vlc/1049
/dev/loop11 15104 15104 0 100% /snap/gnome-characters/317
/dev/loop15 153600 153600 0 100% /snap/gnome-3-28-1804/71
/dev/loop14 55808 55808 0 100% /snap/core18/1144
/dev/loop10 4224 4224 0 100% /snap/gnome-calculator/406
/dev/loop13 55808 55808 0 100% /snap/core18/1066
/dev/loop9 90624 90624 0 100% /snap/core/7270
/dev/loop12 15104 15104 0 100% /snap/gnome-characters/296
tmpfs 807452 16 807436 1% /run/user/121
tmpfs 807452 68 807384 1% /run/user/1000
/dev/sdb1 3844607992 90140 3649152324 1% /media/nathrjl/Media 4TB
nathrjl@nathrjl-Vostro-3558:~$
**Moderator edit using ``` before and after paste for legibility.
ChuckPa
September 27, 2019, 9:35pm
11
You installed Plex from the Ubuntu app store?
If so, this isn’t going to work. “Snap” packages don’t have easy access to the devices. It’s unfortunately above your skill level.
At this point, I strongly recommend you uninstall that package, Download the Ubuntu package from http://plex.tv/downloads and installing it.
Once running natively on the host, making the drive visible will be trivial and my How-To will make perfect sense.
natHrjL
September 27, 2019, 9:38pm
12
I have just checked and I dont think i installed from app store as ive just checked the app store which is prompting me to install?
ChuckPa
September 27, 2019, 9:40pm
13
Let’s give this a quick try and see what happens:
Type: sudo blkid /dev/sdb1
It will come back with some info. please paste that.
natHrjL
September 27, 2019, 9:42pm
14
s/dev/sdb1: LABEL=“Media 4TB” UUID=“a23a49b0-47fb-479e-9686-b8f4b345dc13” TYPE=“ext4” PARTLABEL=“Elements” PARTUUID=“d15c794c-526c-4d83-b82b-7263792b0460”
ChuckPa
September 27, 2019, 9:50pm
15
perfect. Here we go:
Type the following which is in the block. (copy/paste will work)
This creates the directory (/disks/disk4T) to mount at
sudo sh
umount /dev/sdb1
mkdir -p /disks/usb4T
chmod -R 755 /disks
Now we add the line in /etc/fstab to mount it every time the system boots.
Please let me know if you’ve modified /etc/fstab at all ?
If not,
sudo echo '/dev/sdb1 /disks/usb4T ext4 defaults,auto,nofail,bg 1 2' >> /etc/fstab
Now we test the mount:
mount /disks/usb4T
It should mount with no errors. If any, let me know.
If no errors, you’re done.
natHrjL
September 27, 2019, 9:59pm
16
error unfortunately and I have never modified the file.
mount: /disks/usb4T: wrong fs type, bad option, bad superblock on /dev/sdb1, missing codepage or helper program, or other error.
ChuckPa
September 27, 2019, 10:00pm
17
you printed: TYPE=“ext4”
I specified ext4 in the mount type
ChuckPa
September 27, 2019, 10:00pm
18
lets do a manual mount
sudo mount -t ext4 /dev/sdb1 /mnt
this will verify it’s ext4
natHrjL
September 27, 2019, 10:03pm
19
Really appreciate all the help.
mount: /mnt: /dev/sdb1 already mounted on /mnt.
ChuckPa
September 27, 2019, 10:04pm
20
sweet. let’s see the rest of the options.
mount | grep sdb1