Categories:
-
3d 96 articles
-
animations 16 articles
-
architecture 47 articles
-
blender 98 articles
-
bédé 19 articles
-
techdrawing 24 articles
-
freecad 174 articles
-
gaming 1 articles
-
idsampa 8 articles
-
inthepress 8 articles
-
linux 57 articles
-
music 1 articles
-
nativeifc 15 articles
-
opensource 252 articles
-
orange 4 articles
-
photo 16 articles
-
projects 35 articles
-
receitas 176 articles
-
saopaulo 18 articles
-
sketches 162 articles
-
talks 25 articles
-
techdrawing 24 articles
-
textes 7 articles
-
trilhas 3 articles
-
urbanoids 1 articles
-
video 47 articles
-
webdesign 7 articles
-
works 151 articles
Archives:
Automounting usb devices with udev only
Fiddling a little bit with udev rules to automount usb drives. Udev is just amazing, can do about whatever you want! The following rules must be added to one of the .rule files in /etc/udev/rules.d (for example: 98usb-storage.rule):
#Custom USB MountingACTION=="add", KERNEL=="sdb[1-9]", DRIVERS=="usb-storage", NAME="%k"ACTION=="add", KERNEL=="sdb[1-9]", DRIVERS=="usb-storage", SYMLINK+="usbdisk-%k", GROUP="plugdev"ACTION=="add", KERNEL=="sdb[1-9]", DRIVERS=="usb-storage", RUN+="/bin/mkdir -p /media/%k"ACTION=="add", KERNEL=="sdb[1-9]", DRIVERS=="usb-storage", RUN+="/bin/chown root:plugdev /media/%k"ACTION=="add", KERNEL=="sdb[1-9]", DRIVERS=="usb-storage", RUN+="/bin/chmod 775 /media/%k"ACTION=="add", KERNEL=="sdb[1-9]", DRIVERS=="usb-storage", RUN+="/bin/mount -t vfat -o noauto,rw,user,uid=1000,gid=1/dev/%k /media/%k"ACTION=="remove", KERNEL=="sdb[1-9]", RUN+="/bin/umount -l /media/%k"ACTION=="remove", KERNEL=="sdb[1-9]", RUN+="/bin/rmdir /media/%k"
Info comes from here: http://reactivated.net/writing_udev_rules.html http://wiki.archlinux.org/index.php/Udev