I'm trying to detect when a mass storage USB device been inserted to my Pi. If it's a USB mass storage device(a pendrive), I want to transfer files from Pi to the pendrive and unmount automatically once the transfer is complete. (Right now I'm using my Pi for TimeLapse
only)
When searching, some says mdev
would serve for embedded purpose and is much more easier and also uses less memory than udev
.
Which one would be the best? Has anyone have used mdev
on your Pi so far?
I'm running Raspbian, and my hardware is B.