On Fri, 29 Jun 2012, Dmitriy Alekseev wrote: > Hello. How is possible to understand when mass storage device is > detached from host PC? Detached != unmounted. The question you are asking here is different from the question in the email Subject. > E.g. in beaglebone, when usb mass storage is detached by user, > g_mass_storage.ko unloaded and g_rndis will start to work. How they > implemented it? There is a udev event every time a USB device is connected or disconnected. You could write a udev rule to get whatever information you need. I don't know how the beaglebone people implemented it, however. You should ask them, not us. Alan Stern -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html