How To Mount A USB Drive To A Raspberry Pi

ls -l /dev/disk/by-uuid/

sudo mkdir /name whatever you want

sudo chown -R pi:pi /name of the dir

sudo mount /dev/sda1 /dir name goes here -o uid=pi,gid=pi


How To Auto Mount On Boot:

sudo nano /etc/fstab

Add The Following Line To The Bottom And Save:


UUID=18A9-9943 /dir name here vfat auto,nofail,noatime,users,rw,uid=pi,gid=pi 0 0