Mounting the drive
Once you have your Pi up and running you can mount an external storage device to it.
- Find your drive with this command. Mine in this example is at /dev/sda1
sudo fdisk -l
- Install NTFS-3g if you havent already
sudo apt-get install ntfs-3g
- Create the directory you want to mount
sudo mkdir /media/plex
- Manage that directorys owner
sudo chown pi:pi /media/plex
- Mount the drive
sudo mount -t ntfs-3g -o uid-pi,gid-pi /dev/sda1 /media/plex
Making the mount permanent
Now the hard drive is mounted to your pi. To make the mount permanent we need to edit the filesystem tab
sudo vim /etc/fstab
- Add this line at the bottom of that file and save the file
/dev/sda1 /media/plex ntfs-3g uid=pi,gid=pi 0 0
- This now will be mounted permanently and will persist through restarts