External usb drive mount

Decide on a name you want to mount the drive as (we’ll call it media for this example), then log in over SSH or on the console and run the following with the drive attached:

sudo -s
blkid

(take a note of the UUID and “TYPE” of the drive you want to mount)

mkdir /mnt/media
nano /etc/fstab

add the following line at the end

UUID="<insert uuid here from earlier>" /mnt/data exfat defaults,relatime 0 0

(you might need to change exfat depending on what “TYPE” blkid showed earlier)

Ctrl+O Ctrl+X to save and exit.

reboot

Your drive will be mounted permamently at /mnt/media

1 Like