Jump to content

Recommended Posts

Posted

HI,

I success use follow UDEV rules for mount usb dev.
But have problem, this can mount only one usb dev in directory /media/usb
How make a multiple mounts like: /media/usb/dev1 /media/usb/dev2 etc...

ACTION=="add", KERNEL=="sd*", SYMLINK+="usbdisk%n"
ACTION=="add", KERNEL=="sd*", RUN+="/bin/mount /dev/%k /media/usb", OWNER="root"
KERNEL=="sd[a-d][0-9]", OWNER="root"
ACTION=="remove", KERNEL=="sd*", RUN+="/bin/umount /media/usb"

 

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines