2018-03-09

Access USB drive (USB storage, USB stick) from the Linux command line

I am using Ubuntu, but the problem is the same for most current Linux desktops: When inserting a USB storage device, it is automatically reconized, a file browser window pops up and allows you access to the files and directories inside. Great!

That is, USB storage can be seen by the file browser and other GUI applications, but not the command line. shame!

For us who live in the shell, two additional steps are required:


  1. find the block device name of the usb drive (usually /dev/sdb1)
  2. mount it
For 1.) either fdisk -l, lsblk, or blkid can be used. To recap:


  • sudo fdisk -l
  • mount /dev/sda1 /mnt
Don't forget to unmount before removing the USB device:

  • umount /mnt