On Thu, 2007-04-19 at 17:14 -0400, Michael Klinosky wrote: > Mikkel: > > A couple of questions - are you unmounting the drive before > > unplugging it? > > No. I considered doing that, but then thought, 'USB is hot-pluggable, so > that should be auto-magic.' Nope. Any mounted filesystem must be unmounted to ensure that the dirty caches are written to the device before the media is removed. > But, seems like it's not (hence the vestige device). Well, the vestige device has little to do with not having the device mounted. Some devices in hotplug/udev don't get deleted so you don't get confused on what's what. > > Also. what does /proc/bus/usb/devices have to say > > about this devie? > > < T: Bus=02 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 3 Spd=12 MxCh= 0 > < D: Ver= 1.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1 > < P: Vendor=05dc ProdID=0001 Rev= 0.01 > < S: Manufacturer=Lexar Media > < S: Product=CF READER ? > < S: SerialNumber= > < C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA > < I: If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=06 Prot=50 Driver=usb-storage > < E: Ad=82(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms > < E: Ad=03(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms > > The Mfgr. and Product are correct. > > > Now, if you unplug the device with unmounting it, the system should > > complain but handle it. > > I'm assuming that you meant to type "... withOUT unmounting it". > > There is no complaint (no window pops up). Btw, I should mention that > both of the icons disappear. > > I tried the 'diff ...' line again - no difference. > > > It would also help to have the log messages from when you plug > > in/remove the device. > > Insert: > Apr 19 17:11:17 D500 kernel: usb 2-2: new full speed USB device using > uhci_hcd and address 4 > Apr 19 17:11:17 D500 kernel: usb 2-2: configuration #1 chosen from 1 choice > Apr 19 17:11:17 D500 kernel: scsi2 : SCSI emulation for USB Mass Storage > devices > Apr 19 17:11:22 D500 kernel: scsi 2:0:0:0: Direct-Access Lexar > Jumpshot USB CF 0001 PQ: 0 ANSI: 0 CCS > Apr 19 17:11:22 D500 kernel: SCSI device sda: 15680 512-byte hdwr > sectors (8 MB) > Apr 19 17:11:22 D500 kernel: sda: Write Protect is off > Apr 19 17:11:22 D500 kernel: sda: assuming drive cache: write through > Apr 19 17:11:22 D500 kernel: SCSI device sda: 15680 512-byte hdwr > sectors (8 MB) > Apr 19 17:11:22 D500 kernel: sda: Write Protect is off > Apr 19 17:11:22 D500 kernel: sda: assuming drive cache: write through > Apr 19 17:11:22 D500 kernel: sda: sda1 > Apr 19 17:11:22 D500 kernel: sd 2:0:0:0: Attached scsi removable disk sda > Apr 19 17:11:22 D500 kernel: sd 2:0:0:0: Attached scsi generic sg0 type 0 > Apr 19 17:11:22 D500 kernel: scsi 2:0:0:1: Direct-Access Lexar > Jumpshot USB CF 0001 PQ: 0 ANSI: 0 CCS > Apr 19 17:11:22 D500 kernel: SCSI device sdc: 15680 512-byte hdwr > sectors (8 MB) > Apr 19 17:11:22 D500 kernel: sdc: Write Protect is off > Apr 19 17:11:22 D500 kernel: sdc: assuming drive cache: write through > Apr 19 17:11:22 D500 kernel: SCSI device sdc: 15680 512-byte hdwr > sectors (8 MB) > Apr 19 17:11:22 D500 kernel: sdc: Write Protect is off > Apr 19 17:11:22 D500 kernel: sdc: assuming drive cache: write through > Apr 19 17:11:22 D500 kernel: sdc: sdc1 > Apr 19 17:11:22 D500 kernel: sd 2:0:0:1: Attached scsi removable disk sdc > Apr 19 17:11:22 D500 kernel: sd 2:0:0:1: Attached scsi generic sg1 type 0 > Apr 19 17:11:24 D500 kernel: SELinux: initialized (dev sda1, type vfat), > uses genfs_contexts > Apr 19 17:11:25 D500 hald: mounted /dev/sda1 on behalf of uid 500 > Apr 19 17:11:25 D500 kernel: SELinux: initialized (dev sdc1, type vfat), > uses genfs_contexts > Apr 19 17:11:26 D500 hald: mounted /dev/sdc1 on behalf of uid 500 > > Remove: > Apr 19 17:13:29 D500 kernel: usb 2-2: USB disconnect, address 4 > Apr 19 17:13:29 D500 hald[2123]: forcibly attempting to lazy unmount > /dev/sda1 as enclosing drive was disconnected > Apr 19 17:13:29 D500 kernel: scsi 2:0:0:0: rejecting I/O to dead device > Apr 19 17:13:29 D500 hald: unmounted /dev/sda1 from '/media/disk-1' on > behalf of uid 0 > Apr 19 17:13:29 D500 hald[2123]: forcibly attempting to lazy unmount > /dev/sdc1 as enclosing drive was disconnected > Apr 19 17:13:29 D500 kernel: scsi 2:0:0:1: rejecting I/O to dead device > Apr 19 17:13:29 D500 hald: unmounted /dev/sdc1 from '/media/disk-2' on > behalf of uid 0 > ---------------------------------------------------------------------- - Rick Stevens, Principal Engineer rstevens@xxxxxxxxxxxx - - VitalStream, Inc. http://www.vitalstream.com - - - - The problem with being poor is that it takes up all of your time - ----------------------------------------------------------------------