63

I am using Terminal and have looked through directories.

I just can't find where my USB drive its directory is.

Which directory is my USB drive mounted in?

86

All drives (internal, external and networked) get mounted in /Volumes. You should see a folder there with the name of your USB drive as it appears on your desktop or in the Finder.

  • 5
    More generally, you can use the mount command to see all the mounted volumes and where they are mounted. (Only a subset are mounted in /Volumes.) – Chris Page Aug 11 '12 at 0:40
  • AFAIK both external storage devices and .dmg files are mounted in /Volumes, at least by default. What other subset are you referring to here? – nohillside Nov 4 '12 at 8:21
  • 2
    You can also drag&drop the usb drive from the Finder to the Terminal to get its path ;-) – yves amsellem Oct 15 '14 at 9:57
19

Some techniques to try:

ls -a /Volumes

or...

ls -l /Volumes

or...

ls -la /Volumes

...may prove useful.

mount

seems to give all the partitions that might be useful with Disk Utility, during formatting, etc.

you can probably reach your USB drive directly using:

/Volumes/<NameOfYourDrive>

This applies to other types of drives as well: optical, internal and external hard drives. All mounted volumes.

9

In general, to find where something is mounted, you can run this command from the terminal:

df -H 

This also provides useful information about the space on the drive.

2
diskutil list; df -Hl

1

You could also try this command in terminal to get more hardware info on your USB devices

system_profiler SPUSBDataType
  • How can this command be used to solve the problem described in the question? – nohillside May 30 '15 at 6:08
  • 1
    This is useful to developers like myself who are trying to specifically differentiate a USB thumbdrive of unknown name from other mounted volumes. This could happen for example, in systems that can be overridden by alternate settings stored on a thumbdrive, IF the thumbdrive is present. In this case I want to not care what the volume is named, I just want to find whatever thumbdrive(s) is present. – Dave Dec 21 '16 at 22:41
-1

easy peezy lemon squeezy.

cd /volumes/whatever-the-name-of-volume

if that doesn't work then do it step by step

cd /volume and then cd into whatever the name is of the device.

  • 1
    How does this differ from or improve on other answers? – user151019 Sep 6 '17 at 22:30

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .