Re: [wmii] fast usb / cd rom mounting

From: Christian G. Warden <>
Date: Fri, 8 Feb 2008 16:22:10 -0800

On Fri, Feb 08, 2008 at 07:11:35PM -0500, Greg wrote:
> I realize this is a non-wmii specific question but I was wondering how
> wmii users mount optical / usb drives efficiently. For instance,
> plugging in the usb drive and getting a ~/usb/ directory or a useful
> script for the actions.

On Linux, I use udev and autofs.

$ cat /etc/udev/rules.d/50-custom.rules
BUS=="scsi", SYSFS{vendor}=="Pentax", NAME{all_partitions}="camera", GROUP="plugdev"
BUS=="scsi", SYSFS{vendor}=="Apple", NAME{all_partitions}="ipod", GROUP="plugdev"
BUS=="scsi", SYSFS{vendor}=="WDC WD80", NAME{all_partitions}="passport", GROUP="plugdev"

$ cat /etc/auto.master
/var/autofs/removable /etc/auto.removable --timeout=2

$ cat /etc/auto.removable
ipod -fstype=vfat,rw,gid=46,umask=002 :/dev/ipod1
camera -fstype=vfat,rw,gid=46,umask=002 :/dev/camera1
passport -fstype=ext3,rw :/dev/passport1
cd -fstype=iso9660,ro,nosuid,nodev :/dev/cdrom
Received on Sat Feb 09 2008 - 01:22:20 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 16:35:55 UTC