how do you determine what kind of media has been attached to the system?
I have Ubuntu, and when I inserted an SD-card, it notices that it is in fact an SD card. Same counts for USB sticks.
But how can I determine on low level when a new device is inserted, what kind of type it is?
There seems to be no information to be found on this at all.
edit: just to be more complete: I said it is a Linux environment, but actually it is Android in an Embedded environment. I tagged it Linux because I am indeed trying to check from command line.
The udevadm command is not available, and lsusb -vv shows:
Bus 001 Device 001: ID 1d6b:0002
Bus 001 Device 002: ID 0424:2640
Bus 001 Device 003: ID 0424:4040
Bus 002 Device 001: ID 1d6b:0001
which is very little info.