Mount an external drive to Raspberry Pi

Check for the current storage devices attached to your server:

sudo blkid

Mound the disk

In my example the disk is located at `/dev/sda1` and I want to mount it to `/mnt`

sudo mount /dev/sda1 /mnt -o uid=pi,gid=pi

To automatically mount the disk when the server is rebooted:

Add the following to the file: /etc/fstab

/dev/sda1 /mnt exfat default,nofail 0 0

Leave a Reply

Your email address will not be published. Required fields are marked *