Guide to setup Auto Mount USB on Raspberry Pi

Why do i need to setup auto mount?

Raspberry Pi doesn’t mount USB drives on its own, you need to set it up to use a USB drive with Pi.

Step 1: Connect to Pi

Connect to the Raspberry Pi over SSH, or open the terminal using it with GUI.

Step 2: Connect to USB drive

Step 3: List of connected devices

Type this command on your terminal

blkid
/dev/sda1

Step 4: Make the mount folder

Now we will make the folder where you want the USB device to show up whenever you plug it in

sudo mkdir ~/usbdrv
sudo chmod 770 ~/usbdrv

Step 5: Mounting the drive

sudo mount /dev/sda1 ~/usbdrv

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store