Hi folks.

Got a question. I tried to automount my USB drive with a udev-rule.

I tried - beside a lot more udev-rules -  something like this:

/etc/udev/rules.d/99-hddmount.rules

Code:
--------------------
    
  ACTION=="add", SUBSYSTEM=="block" , KERNEL=="sda1" , RUN+="/usr/bin/mount -t 
ext4 -o rw,noatime /dev/sda1 /media"
  
--------------------


I never managed to get this or all kind of other rules working on my
Pi2.

The only way I managed to get a reasonable auto-mounting going was using
udevil and devmon:


Code:
--------------------
    
  pacman -Sy udevil
  systemctl enable [email protected]
  systemctl start [email protected]
  
--------------------


and editing /etc/udevil/udevil.conf  to customise the mountpoint.

Is anybody working with udev-rules to mount a local USB drive?



::: ' Touch Toolbox and more' (http://soundcheck-audio.blogspot.com) :::
by soundcheck
------------------------------------------------------------------------
soundcheck's Profile: http://forums.slimdevices.com/member.php?userid=34383
View this thread: http://forums.slimdevices.com/showthread.php?t=101624

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to