Home | Blog

WIP Mount USB storage on a Raspberry Pi

Published by Luke M on



To mount a USB drive so that the OS can use it, first, you need to know what it is recognised as.

$ lsblk -f -p
NAME             FSTYPE LABEL  UUID                                 FSAVAIL FSUSE% MOUNTPOINT
└─/dev/sda1      ext4   Music  9ddc2e50-a9a2-4f0b-8ffe-95f6340b6a87    4.6G    31% 
├─/dev/mmcblk0p1 vfat   boot   4AD7-B4D5                             198.3M    21% /boot
└─/dev/mmcblk0p2 ext4   rootfs 2887d26c-6ae7-449d-9701-c5a4018755b0    8.8G    66% /

Find your device, and remember the FSTYPE and NAME.

Then, you will need to make a mount point. You can replace myusb with anything you like. sudo mkdir /mnt/myusb

Then, use the following commands, based on what filesystem your USB defice uses. You can tell this from the first command, lsblk -f -p. Also, replace /dev/sda1 and /mnt/myusb with what you decided before.

Filesystem Commands
FAT sudo mount -t vfat /dev/sda1 /mnt/myusb -o umask=000
EXT4 sudo mount -t ext4 /dev/sda1 /mnt/myusb
NTFS For NTFS, you will first need to install ntfs-3g. sudo apt install ntfs-3g
Then, mount with sudo mount -t ntfs /dev/sda1 /mnt/myusb -o umask=000
exFAT First, install exfat-fuse. sudo apt install exfat-fuse
Then, mount with sudo mount -t exfat /dev/sda1 /mnt/myusb


sudo umount /mnt/myusb