Raspberry Pi with plex server find and mount USB hdd


Turning a ‘lil raspberry pi into a server to act as say a plex media server…

  1. https://www.raspberrypi.org/downloads/raspbian/  Install this image onto your sd card. Etcher is a solid cross platform image burner.
  2. Connect it all up with a ethernet, screen and keyboard then feed it some power.
  3. After it has installed, the login creds are “pi” and then “raspberry”
  4. Now follow this guide: https://pimylifeup.com/raspberry-pi-plex-server/  to step6.
  5. Once you have the plex server running, you will then need to install a few extra tools to mount your HDD.
  6. Then with your disk plugged in you will need to locate it and mount it/ This command will list the drives:
  7.  You will likely see a big long list of stuff… scroll to the bottom. You are looking for devices starting something like “/dev/sda1”
  8. Make a point on the local filesystem of the os to mount the HDD
  9.  Now mount your stuff to that new folder
  10.  At this point you should now be able to list the contents of you HDD with “ls /media/…”
  11. Now the last steps are to auto mount with fstab… First we need the UUID of the drive. Enter this command to get the current UUID’s mounted:
  12.  Copy the UUID of your drive then edit the fstab

    Add a new line with

    Replacing the UUID i entered there with your own.

Last but not least.. and this depends on your SD card size and size of your movie library. The plex servers index and cache can get a little large, which might be a problem on say an 8gig SD card. There is is an easy fix though, open the /etc/default/plexmediaserver and change the home directory.

If you have already built up the cache, you can move the index to your external HDD then symlink the folder, here is a guide on it:

How to move Plex metadata and index data to new drive/partition and/or directory location