Ubuntu Server 9.10

I know that using the mount command, you can use -L to mount by label like so:

mount -L thelabel /media/themount

Is there any similar way to setup Automount / Autofs to mount by label name?

link|improve this question

76% accept rate
related (neither are autofs specific, so they may not be duplicates): superuser.com/questions/53978/… and superuser.com/questions/62483/automount-in-ubuntu-9-10 – quack quixote Mar 31 '10 at 13:43
feedback

2 Answers

up vote 2 down vote accepted

I figured it out:

mylabel    -fstype=ext3    :/dev/disk/by-label/mylabel
link|improve this answer
feedback

Why not use a shell script with the mount command you mentioned?

link|improve this answer
Can you execute a shell script via automount? Can you elaborate on this? – Jakobud Mar 30 '10 at 18:19
feedback

Your Answer

 
or
required, but never shown

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