How Do I Mount a Usb Drive in Linux Terminal?
Contents

How do I access USB in Linux terminal?

Ubuntu: Access a usb flash drive from the terminal

  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: sudo fdisk -l. …
  2. Create a mount point. Create a new directory in /media so you can mount the drive onto the filesystem: sudo mkdir /media/usb.
  3. Mount! sudo mount /dev/sdb1 /media/usb. When you’re done, just fire off:

2 мар. 2014 г.

Where are USB drives mounted in Linux?

Once you attach a device to your system such as a USB, especially on a desktop, it is automatically mounted to a given directory, normally under /media/username/device-label and you can then access the files in it from that directory.

James H. Sterling

James H. Sterling

Environmental Science & Climate Journalist

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.

Share this article
Twitter Facebook Pinterest