Accessing USB drives with Linux Mint

You are right, now I can reboot and Plex starts, but it will not play anything. The message is “Please check that the file exists and the necessary drive is mounted.” I’m guessing that is because of the # to make the line a comment. Do I now go back and remove the # so it can mount? When I do that (and before I try to reboot) I get this:
** (gedit:3136): WARNING **: 16:43:29.691: Set document metadata failed: Setting attribute metadata::gedit-spell-language not supported

** (gedit:3136): WARNING **: 16:43:29.692: Set document metadata failed: Setting attribute metadata::gedit-encoding not supported

** (gedit:3136): WARNING **: 16:43:33.453: Set document metadata failed: Setting attribute metadata::gedit-position not supported

Should I reboot anyway?

Well I did reboot and that is definitely not the answer. I’ll have to restart the computer and re add the # mark to get it working again. Right now the only thing I can do is type in this box.

Don’t worry about that. gedit always does that when launched in Console mode. It’s the silly toolkit talking to its “console”.

Put the Comment marker on the line(s) for the drives.
Reboot
When back up full, Show me the file as you have it.
We will find the errors

Not sure I understand what you want. I did re add the # mark and rebooted and the drives show up as they should. Right now the fstab file looks like "

# /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).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda1 during installation
UUID=0387d828-f4be-46cd-910b-57a9a2d80770 /               ext4    errors=remount-ro 0       1
/swapfile                                 none            swap    sw              0       0
#UUID=A0DEA515DEA4E4AE   /disks/seagate/plus-drive1    ntfs  defaults,auto,rw,nofail,bg 0 0

The only thing different is the addition of the # on the beginning of the last line

With fstab like this the hard drives all show up as normal

Moderator Edited for readability

Now show me the df output please. Let’s see where everything went

df
Filesystem 1K-blocks Used Available Use% Mounted on
udev 4005988 0 4005988 0% /dev
tmpfs 807644 2828 804816 1% /run
/dev/sdb1 960379920 90844336 820681160 10% /
tmpfs 4038212 37176 4001036 1% /dev/shm
tmpfs 5120 4 5116 1% /run/lock
tmpfs 4038212 0 4038212 0% /sys/fs/cgroup
tmpfs 807640 36 807604 1% /run/user/1000
/dev/sdc1 1953513556 1586057784 367455772 82% /media/irish/Seagate Backup Plus Drive
/dev/sda2 3906885628 1007137936 2899747692 26% /media/irish/Seagate Backup Plus Drive1

Here’s what I can do.

  1. If you get me the blkid info again for each drive, and tell me (confirm) where you want them,
  2. I will write the lines for /etc/fstab for you to put in there
  3. Give you the commands to copy/paste so it works when you reboot

One of the drives is A0DEA515DEA4E4AE

blkid /dev/sdb1 (This is the primary hard drive inside the computer- Plex doesn’t need to access this)

/dev/sdb1: UUID="0387d828-f4be-46cd-910b-57a9a2d80770" TYPE="ext4" PARTUUID="ffb08f64-01"

blkid /dev/sdc1 (This is the USB drive with all the media on it – I want Plex to be able to access it)

/dev/sdc1: LABEL="Seagate Backup Plus Drive" UUID="A0DEA515DEA4E4AE" TYPE="ntfs" PARTUUID="1a91735b-01"

blkid /dev/sdb2 returns nothing (This is a USB drive I use to backup and store everything. Plex doesn’t need to access this.)

Now to confirm,

  1. You wish to have /dev/sdc1 (Seagate Backup Plus Drive) mounted and available for PMS
  2. You wish to have /dev/sda2 (Seagate Backup Plus Drive1) mounted and available for PMS

?

Only number 2 - should read /dev/sdc1

Ok, Now I understand the configuration.

sda = USB
sdb = internal
sdc = USB

This look correct to you ?

You can EDIT your post and correct typos (the … will expose the pencil )

yes that is it

With that figured out, Please say, one more time (be careful of typos) which drives and partitions you want to be visible to PMS.

sdc1 should be visible to PMS

What may be confusing is that sdc1 used to be Drive1, but now it is just Drive while sda2 has become Drive1 in the df output

That’s why we use the UUID value. USB drives will change letters. UUID will always find them and put them where they are supposed to be. :slight_smile:

Since it’s only /dev/sdc1 you wish, sudo blkid /dev/sdc1
Paste the entire output (from command line prompt to the next command line prompt) here for me.

/dev/sdc1: LABEL=“Seagate Backup Plus Drive” UUID=“A0DEA515DEA4E4AE” TYPE=“ntfs” PARTUUID=“1a91735b-01”

good. Now to make you a clean mount point and give you a new mount command.

These commands can be copy/pasted in the command line just as I’ve typed them here

sudo mkdir /disks/seagate/plus-drive
sudo chmod 755 /disks/seagate/plus-drive
sudo gedit /etc/fstab

When the editor opens, replace the existing line for plus-drive1 with this line

UUID=A0DEA515DEA4E4AE /disks/seagate/plus-drive ntfs defaults,rw,auto,nofail,bg 0 0

Save the file
Now, using the GUI “Eject” the drive if you can find it. I do not know Mint .
Once ejected, sudo mount /disks/seagate/plus-drive
If you are unable to eject it, Restart Mint

There should be no errors from it mounting

Verify with df and see it mounts at /disks/seagate/plus-drive

If it has indeed mounted, you are ready to use it with PMS at that location.

I did it as you said. It did indeed mount at that location. However Plex doesn’t play the videos :frowning: Do I need to reboot?
After remounting it does not appear on the desk top as it did before. I’m back to the drive being not mounted/mounted as it was before :frowning:

Your media is on this drive, Correct?

You now need to Edit each library section you have.
Add the NEW location (which is on the USB drive) and let PMS scan it.
PMS will mark your media with a 2 indicating it thinks its a duplicate.
When it’s all done, Edit the library again and remove the old folder location.

Repeat this for each library section.

When all actions are done, one final “Scan files” will verify everything is correct.

You should now be fully up to date with media locations and PMS can play it

Well I did one file and it works so I guess it’ll be another all night update thing. Is there an easier way to wipe the entire library and start over?

Yes… you can hover over each library section… This exposes the ellipsis (…). Click it and then “Delete Library”.

After confirming and deleting, you can create a fresh library section pointing to the new location