Mount a USB drive
Raspberry Pi OS Lite doesn’t auto-mount USB drives. When you plug a stick into the FR201 to copy a configuration file or an installer script, you have to mount it yourself. It’s a one-time setup; after that, copying is plain cp.
Mount the drive
Section titled “Mount the drive”-
List block devices to find the USB stick. The drive that just appeared, with the size you expect, is the one you want:
List block devices lsblkUSB sticks typically show up as
sda(orsdbif you have other storage attached), and the partition you want to mount is usuallysda1. -
Create a mount point.
/media/usbdriveis a good convention but the name doesn’t matter:Create the mount point sudo mkdir -p /media/usbdrive -
Mount the partition. Replace
sda1with whateverlsblkshowed:Mount the USB partition sudo mount /dev/sda1 /media/usbdrive -
Verify the contents are visible:
List files on the drive ls /media/usbdrive
Copy files off the drive
Section titled “Copy files off the drive”Once mounted, the USB stick is a regular directory. Copy files with cp:
cp /media/usbdrive/install.sh /home/pi/Copy a whole tree:
cp -r /media/usbdrive/scripts /home/pi/If you copied a shell script, mark it executable before running:
cp /media/usbdrive/install.sh /home/pi/chmod +x /home/pi/install.sh/home/pi/install.shUnmount when you’re done
Section titled “Unmount when you’re done”Always unmount before pulling the drive — yanking it without unmounting can corrupt the filesystem:
sudo umount /media/usbdriveMounting automatically on boot
Section titled “Mounting automatically on boot”If the same USB drive is always present (for example, the FR201 has a permanent thumb drive holding logs or configuration), add it to /etc/fstab so it mounts at boot. Look up the drive’s UUID with sudo blkid, then add a line like:
UUID=1234-ABCD /media/usbdrive vfat defaults,nofail 0 0The nofail option keeps the system from hanging on boot if the drive is missing.