Before the # at the end of the file we are going to add: /dev/sda1 /mnt/hd1 ntfs defaults 0 0 We are going to be adding a new line for each drive we want to add, I will be using two like before. Let’s open fstab in nano my personal choice for making simple changes to files. You should always make backups before making any changes to the system. We are going to be editing a sensitive file so the first thing we should do is make a backup. So, we have our drives mounted but we want this to happen every time the Raspberry Pi boots. Next, we need to mount the drives so we can access our files: sudo mount -t ntfs-3g -o uid=1000,gid=1000,umask=007 /dev/sda1 /mnt/hd1 If you are only using one external drive you can skip hd2, and if you are using more you can just keep incrementing the number until you reach the number of drives you will be using. It will then set the permissions on the directory. The above command will make two new directories for us inside the /mnt folder. Sudo mkdir /mnt/hd2 & sudo chmod 775 /mnt/hd2 sudo mkdir /mnt/hd1 & sudo chmod 775 /mnt/hd1 I am going to be using the naming convention of hd1, hd2, etc, etc. Let’s make a folder structure where we can mount our drives. Take note of the path(s) (example: /dev/sda1) of your drive(s) we will need to use the paths later. In the above image, you can see an example output from the command above my external drives are named Reserved and EXTHD. So we have our hard drive(s) ready, now we need to find the path we can list all the hard drives with a simple command: sudo blkid
#Raspberry pi plex server install
If your hard drive is using the NTFS filesystem you will need to install the following: sudo apt update & sudo apt install ntfs-3g -y If you are not using any external hard drives you can skip this section. If your hard drive is using an EXT4 file system you can skip installing the NTFS or FAT32 file systems. SD Cards will not last forever if you are constantly reading from and writing to them.
#Raspberry pi plex server movie
Since we are running a movie server we will need a decent amount of space to store our movies and TV shows.
#Raspberry pi plex server upgrade
Sudo apt update & sudo apt upgrade -y & sudo reboot 0Īfter the Pi is done rebooting you will be ready to continue to the next steps.
Run the following command in your console: Before going any further let us quickly update our Raspberry Pi so we have all the latest packages. It will guide you through setting up your device. So if you are unsure please check out that article before continuing. You are going to want to use a headless setup, there are few methods of doing this but I cover one in Headless Raspberry Pi Setup.
I would recommend using the Raspberry Pi 4 for this project the lower-end models just don’t cut it. It can run on a wide variety of hardware including my favorite the Raspberry Pi 4. Plex Media Server is an easy-to-use media server when you want to organize your movie collection.