Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm mounting an iso-file. Finder shows the name as "This Product" but the folder-name is /Volumes/this_product_" or could be something else.

How can I retrieve the name as shown in the Finder?

share|improve this question

1 Answer 1

It depends on what you are using it for (just for manual lookup or for parsing).

In Applications -> Utilities -> Disk Utiltity you can just mark the partition (not the whole volume) and at the bottom of the window it will show the mount point.

If you need output that can be parsed somehow here are two ideas:

1) diskinfo list gives you a list of all disks in the system. And with the partition names on the disk your're looking for you can do an diskutil info disk1s1 (replace disk1s1 with the actual partition name) which will list the mount point.

2) Alternately, if you know the name and location one file on the mounted volume, you could do an ls /Volumes/*/thatfile and you'll get output of the volumes folder where it is found.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.