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?

link|improve this question
feedback

1 Answer

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.

link|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
feedback

Your Answer

 
or
required, but never shown

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