Notes on how to permanently configure a USB flash drive.
-
Format the flash drive to ext4 as that is the native format for linux and Raspbian.
-
Give the flash drive a label. The label will be used by the system to detect the drive and mount it to a specific location.
https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=176205
tail -f /var/log/messages handy command to look at system messages.
sudo blkid
produces:
/dev/sda1: UUID="8dd06116-a29c-459f-9002-c1cccd7892d5" TYPE="ext4" PARTUUID="eb5e7935-01"
Used that output to add the following like to /etc/fstab
: (Note: messing this up will brick the Pi)
PARTUUID=eb5e7935-01 /media/usb ext4 defaults 0 0
rebooted and the drive was automounted to /media/usb
A more forgiving way to do this is the use the label as opposed to the partuuid:
LABEL=wormhole-testnet /media/wormhole ext4 defaults 0 0