General TC > General TC Talk

Automount USB rules.d Query

(1/6) > >>

MadCat:
Hello. I am currently trying to automatically have USB Devices automounted using rules under the rules.d folder. I have currently tried making a automount.rules (Which I read from another website) and adding the following below to it. But, I take this wont work because Tiny Core does not come with pmount?

# automounting usb flash drives
# umask is used to allow every user to write on the stick
# we use --sync in order to enable physical removing of mounted memory sticks -- this is OK for fat-based sticks
# I don't automount sda since in my system this is the internal hard drive
# depending on your hardware config, usb sticks might be other devices than sdb*
ACTION=="add",KERNEL=="sdb*", RUN+="/usr/bin/pmount --sync --umask 000 %k"
ACTION=="remove", KERNEL=="sdb*", RUN+="/usr/bin/pumount %k"
ACTION=="add",KERNEL=="sdc*", RUN+="/usr/bin/pmount --sync --umask 000 %k"
ACTION=="remove", KERNEL=="sdc*", RUN+="/usr/bin/pumount %k"

MadCat:
Anybody out there?

Guy:
I am not completely sure what you are trying to do, but

To mount usb drives at startup, add mount commands to /opt/bootlocal.sh.

Rich:
Hi MadCat
I'm not versed in writing udev rules but if the rules you have listed are correct then changing
pmount and pumount to mount and umount should make it work.

MadCat:

--- Quote from: Guy on May 16, 2011, 12:24:38 PM ---I am not completely sure what you are trying to do, but

To mount usb drives at startup, add mount commands to /opt/bootlocal.sh.

--- End quote ---

Im trying to get it that when you plug in a USB Device it automounts the device without having to restart Tiny Core, or am I totally on the wrong track here? :/

Navigation

[0] Message Index

[#] Next page

Go to full version