This site runs best with JavaScript enabled.

How to mount an external drive on a Raspberry Pi

Post status

seedling

planted Jun 08, 2021


To mount an external drive on your Pi, a few steps are needed.

  1. Plug in the SSD
  2. Check if it is connected
sudo lsblk -o UUID,NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL,MODEL
  • Your drive should be visible: raspberry mount drive 3.1. In my case, the SSD is formatted as exFAT, so I install the needed driver:
sudo apt install exfat-fuse

3.2. If you are using a NTFS file system, use this command:

sudo apt install ntfs-3g
  1. Run the following command to get the location of the disk partition:
sudo blkid
  • For example, /dev/sda1
  1. Create a target folder to be the mount point of the storage device. The mount point name used in this case is mydisk. You can specify a name of your choice:
sudo mkdir /mnt/mydisk
  1. Mount the storage device at the mount point you created:
sudo mount /dev/sda1 /mnt/mydisk
  1. Verify that the storage device is mounted successfully by listing the contents:
ls /mnt/mydisk
Links to this post:

Use an external SSD for your PhotoPrism instance

You should add an external drive to your PhotoPrism instance, because otherwise it will put all data on the SD card. I… Read this post ›

Configure PhotoPrism to use an external drive

This post explains how to configure your own PhotoPrism instance to use an external hard drive. To use an external drive… Read this post ›

Sebastian Auner © 2023