You could try "eject /dev/sda" (or whatever). On Thu, 26 Apr 2007, TMC wrote:
> Hi All > > I am not sure if this is the right forum to ask... but it seems like > the right first step. > > I am running Debian 4.0 with custom built 2.6.20.6 kernel. > > I have a USB media reader, vendor ID: 0x058f, Prduct ID: > 0x6362, whic is a CF/MMC/SD/SM) etc reader that normally shows up as a > SCSI device. > > I am seeing some behavior that puzzles me: > > when I attached this device via USB to a newly booted system it's > detected and all is well, so long as the media card is in the reader > at the time. As expected the usb-storage module and sd-mod load, > devices are scanned, partitions are found and so on. > > If I attached it without any media cards in it, or I have unmounted > and removed a media cerd from the reader, it shows up as a bunch of > SCSI removable devices (sda, sdb, sdc, sdd) , but inserting a card > into the reader does not result in a mountable SCSI device, even if I > know which of them i need to mount. It seems that after first insert, > there is no rescanning of the devices. > > So my question is: > > is there a way, using hotplug or udev or otherwise to: > > a) scan the USB card reader and detect media insertion > b) scan the media and detect partitoons, etc > c) NOT runa daemon tnat auto-mounts them for me - I do not want to > auto mount the devices, i just want to know when they are inserted... > > Tomasz > > -- /------------------------------------+-------------------------\ |Stephen J. Gowdy, SLAC | CERN Office: 32-2-A22| |http://www.slac.stanford.edu/~gowdy/ | CH-1211 Geneva 23 | |http://calendar.yahoo.com/gowdy | Switzerland | |EMail: [EMAIL PROTECTED] | Tel: +41 22 767 5840 | \------------------------------------+-------------------------/ ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users