Turning a ‘lil raspberry pi into a server to act as say a plex media server…
- https://www.raspberrypi.org/downloads/raspbian/ Install this image onto your sd card. Etcher is a solid cross platform image burner.
- Connect it all up with a ethernet, screen and keyboard then feed it some power.
- After it has installed, the login creds are “pi” and then “raspberry”
- Now follow this guide: https://pimylifeup.com/raspberry-pi-plex-server/ to step6.
- Once you have the plex server running, you will then need to install a few extra tools to mount your HDD.
1apt-get install ntfs-3g
- Then with your disk plugged in you will need to locate it and mount it/ This command will list the drives:
- You will likely see a big long list of stuff… scroll to the bottom. You are looking for devices starting something like “/dev/sda1”
- Make a point on the local filesystem of the os to mount the HDD
- Now mount your stuff to that new folder
1mount /dev/sda1 /media/external-hdd
- At this point you should now be able to list the contents of you HDD with “ls /media/…”
- 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:
- Copy the UUID of your drive then edit the fstab
Add a new line with
1UUID=0e281f8d-1117-451d-9b1b-b07405a631bc /media/external-hdd auto nosuid,nodev,nofail 0 0
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: