4

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?

Jake Wilson
  • 4,314
  • 10
  • 38
  • 39
  • related (neither are autofs specific, so they may not be duplicates): http://superuser.com/questions/53978/ubuntu-automatically-mount-external-drives-to-media-label and http://superuser.com/questions/62483/automount-in-ubuntu-9-10 – quack quixote Mar 31 '10 at 13:43

1 Answers1

6

I figured it out:

mylabel    -fstype=ext3    :/dev/disk/by-label/mylabel
Jake Wilson
  • 4,314
  • 10
  • 38
  • 39