Go to advanced search

by NelsonOnPi
Thu Jan 14, 2016 11:58 pm
Forum: General discussion
Topic: Automount USB disk as same samba drive?
Replies: 14
Views: 12506

Re: Automount USB disk as same samba drive?

How do I transfer ownership to pi? Does http://www.reactivated.net/writing_udev_rules.html#ownership help? No luck so far. I changed my rule file to: ACTION=="add", KERNEL=="sd[a-d][0-9]", SYMLINK+="usbdisk%n" # ACTION=="add", KERNEL=="sd[a-d][0-9]", RUN+="/bin/mkdir -p /media/aruusb", OWNER="pi" A...
by NelsonOnPi
Wed Jan 13, 2016 11:20 pm
Forum: General discussion
Topic: Automount USB disk as same samba drive?
Replies: 14
Views: 12506

Re: Automount USB disk as same samba drive?

Using udev rules to mount and umount USB drives, how do I get the ownership away from root and to pi? In /etc/udev/rules.d I added this file as 20-myusb.rules ACTION=="add", KERNEL=="sd[a-d][0-9]", SYMLINK+="usbdisk%n" ACTION=="add", KERNEL=="sd[a-d][0-9]", RUN+="/bin/mkdir -p /media/usb" ACTION=="a...

Go to advanced search