I use a simple script, the only requirement is that the usb drive must has a label. to mount new usb drives: usbmount to umount a usb drive: pumount /media/label to umount all the usb drives: usbmount -u
# usbmount #!/bin/sh label="/dev/disk/by-label/" options="--noatime" usb_disk=`ls $label` mounted=`df | grep "media" | awk '{ print $6 }' ` for name in $usb_disk do if [ "$1" != "-u" ] then echo $mounted | grep "/media/$name" > /dev/null if [ $? -eq 1 ] then pmount "$options" "$label""$name" "/media/$name" echo "$name mounted" fi else echo $mounted | grep "/media/$name" > /dev/null if [ $? -eq 0 ] then pumount "/media/$name" echo "$name umounted" fi fi done On Sun, May 3, 2009 at 5:21 PM, Leandro Chescotta <leandro.chesco...@gmail.com> wrote: > http://github.com/dimigon/skvm/tree/master > > Well, by far im lovin' it, I started the daemon and pluged in a usb > drive and i now have the drive mounted in /media with the name gived > by /dev/sdX[n] device name, the thing is that i dont know how to > umount a drive, or just plugin the usb drive off is sufficient? > without umounting? because it's not mentioned in the readme. > > -- > > --------------------------------- > http://aleyscha.spaces.live.com/ > > ""El lugar mas peligroso de todos es el cielo... En el, cada > pensamiento se hace realidad... sea bueno o malo... creas tu paraiso o > tu infierno"" > >