I’m trying to follow this guide on using external drives and I’m getting stuck at the test part. I used umount, but nothing happens when I try to mount them again, and now I can’t see the drive at all because it’s unmounted.
Any help is appreciated!
I’m trying to follow this guide on using external drives and I’m getting stuck at the test part. I used umount, but nothing happens when I try to mount them again, and now I can’t see the drive at all because it’s unmounted.
Any help is appreciated!
I run two linux servers, Unbuntu 16.04 and Raspberian. My Raspberian are purely external drives.
To answer your question - reboot. That normally clears up the fight between fstab and user mount and umount commands.
IF you still have issues… unplug the external drives and delete the mount points.
sudo rm /media/you/*
reboot
CAREFUL can be bad if you have not disconnected ALL externally mount devices.
Now, my way…
First that page is little out of date, since linux also mounts external drives for you (mostly). This issue now is how to get the plex user access to the drive since in /media/you is where it is mounted.
Change /etc/fstab back to normal. and reboot be sure all is cleared out.
If raspberian, load the ntfs tool. Normally, cifs-utils, but not available on raspberian, use htfs-3g instead.
sudo apt-get install ntfs-3g
Be sure each external drive has a unique Volume ID. If you have to identical drives, like you just bought two today, they will have the same volume id. You can use many linux tools to change the name. This volume name is what is used by linux to build a the directory it mounts to in /media/you. If you remove any spaces and make it short… easier to use.
Once all is done… use chmod to modify the directory so ALL can read.
sudo chmod -c 777 /media/you
sudo chmod -c 777 /media/you/volumeid
That will change the path to be readable by ALL. Yes, security is issue for normal multiple user machines, but for home machine… not as much.
Now plex has ability to read it.
So to allow for drive to be removal without plex loosing its list of objects. For that I use symbolic links.
I create a base directory in root, just to find it easily.
Inside that add the directory struct you want to us. example is tv.
sudo mkdir /plex
sudo chown you: /plex
ln -s /plex/tv/mash /media/you/volumeid/old/mash
ln -s /plex/tv/startrek /media/you/volumeid/tv1/startrek
chmod -R -c 777 /plex
Now point the plex library to /plex/tv and drive will be read. No special fstab entry.
If you go a step farther… Link each object, not directory you can protect the objects from being deleted by plex, because it best it delete the link - then name it knows it by, not the actual object on drive. I have scripts that do this for me.
If I may jump the the ideal solution?
As supplemental info:
It worked, thank you so much!
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.