Skip to content

Instantly share code, notes, and snippets.

@VadimBrodsky
Last active November 27, 2017 16:33
Show Gist options
  • Save VadimBrodsky/950ed46ae8026bb5d21f04d8eb1d9529 to your computer and use it in GitHub Desktop.
Save VadimBrodsky/950ed46ae8026bb5d21f04d8eb1d9529 to your computer and use it in GitHub Desktop.
Raspberry PI

Raspberry PI Unix Notes

Mount USB Hard Drive

To Mount

sudo mkdir /mnt/usbdrive
sudo mount /dev/sda1/ /mnt/usbdrive
ls /mnt/usbdrive

To unmount

sudo umount /dev/sda1

Mount USB Flash Drive

Find the number of the USB flash drive

sudo ls /dev/sd*

To mount

sudo mount -t vfat /dev/[USB_DEVICE_NUMBER]/mnt/usb

List USB Devises

lsusb

File System Disk Usage Space

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