Skip to content

Instantly share code, notes, and snippets.

@christroutner
Last active November 11, 2020 13:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save christroutner/14351579b71deb01760aeb815d26e07d to your computer and use it in GitHub Desktop.
Save christroutner/14351579b71deb01760aeb815d26e07d to your computer and use it in GitHub Desktop.
Raspberry Pi - USB Flash Drive Configuration

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment