Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I once used gnome-mount like this

gnome-mount -o ro -d /dev/sda2 or gnome-mount -o ro -p "Macintosh HD"

But, alas, gnome-mount seems to be no more. RIP.

I can do this

gvfs-mount -d /dev/sda2

(which generates a whole lot of errors but does mount the partition in the /media directory.)

This is a related question: http://superuser.com/questions/131918/gnome-mount-alternative-in-ubuntu-10-04-or-how-to-mount-partition-with-normal-use

But how do you do it by name?

share|improve this question
up vote 0 down vote accepted

gvfs-mount doesn't seem to have that option. http://www.unix.com/man-page/OpenSolaris/1/gvfs-mount/

Normal mount should be able to do this however.

mount -o ro -L "Macintosh HD" /mountpoint

mount requires you to create the mountpoints first though.

share|improve this answer
    
That will do what I want. Thanks - I feel silly that I didn't think of mount. – philcolbourn Jun 9 '10 at 13:57
    
I can always mkdir /mnt/Macintosh\ HD before I mount it so that is not really a problem. – philcolbourn Jun 9 '10 at 13:58

You must log in to answer this question.

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