Skip to content

Instantly share code, notes, and snippets.

@newtone
Created July 1, 2022 14:26
Show Gist options
  • Save newtone/504544ada4418c9c5f438a452695e00a to your computer and use it in GitHub Desktop.
Save newtone/504544ada4418c9c5f438a452695e00a to your computer and use it in GitHub Desktop.
### 1. Find what the drive is called
You'll need to know what the drive is called to mount it. To do that fire off one of the following (ranked in order of my preference):
lsblk
sudo blkid
sudo fdisk -l
You're looking for a partition that should look something like: /dev/sdb1. The more disks you have the higher the letter this is likely to be. Anyway, find it and remember what it's called.
### 2. Create a mount point (optional)
This needs to be mounted into the filesystem somewhere. You can usually use /mnt/ if you're being lazy and nothing else is mounted there but otherwise you'll want to create a new directory:
sudo mkdir /media/usb
### 3. Mount!
sudo mount /dev/sdb1 /media/usb
When you're done, just fire off:
sudo umount /media/usb
_src: https://askubuntu.com/questions/37767/how-to-access-a-usb-flash-drive-from-the-terminal_
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment