FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > ArchLinux > ArchLinux General Discussion

 
 
LinkBack Thread Tools
 
Old 10-07-2010, 03:18 PM
Benjamin Sambale
 
Default umount usb stick via udev

Dear arch users,

I managed to mount my usb stick automatically via udev rules (hal isn't
running). However, if I unplug the stick while thunar is open, the
umount command hangs. After that I can't even reboot. But if I close
thunar before unplugging the stick umount works fine.

Here is my udev rule:

SUBSYSTEMS=="usb", ATTRS{serial}=="07A10809D5B952B9", KERNEL=="sd*",
SYMLINK+="unistick%n"
SUBSYSTEMS=="usb", ATTRS{serial}=="07A10809D5B952B9", KERNEL=="sd*",
ACTION=="add", RUN+="/usr/bin/sudo -u benjamin /bin/mount /media/unistick"
SUBSYSTEMS=="usb", ATTRS{serial}=="07A10809D5B952B9", KERNEL=="sd*",
ACTION=="remove", RUN+="umount /media/unistick"


And here is the corresponding line of fstab:

/dev/unistick1 /media/unistick vfat rw,noauto,user,utf8,noatime
0 0


Thanks for any help,
Benjamin
 

Thread Tools




All times are GMT. The time now is 10:18 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org