Re: weird removable media behavior

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.'
> 
> But, seems like it's not (hence the vestige device).
> 
Just because it is hut pluggable, dues not mean it is hot
unpluggable. No file system mounted read/write is hot unpluggable.
Some recover better then others when you disconnect without
unmounting, but it is always a risk.

> 
>> 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".
> 
Oops...

> There is no complaint (no window pops up). Btw, I should mention that
> both of the icons disappear.
> 
This is one area that could use some improvement - it usualy shows
up in the log, but there really should be a BIG popup message when
users do this.
> 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
> 
This is definitely strange. I am going to have to think about this
for a while. (Maybe someone else has an idea?) The reader is
definitly being treated as two devices by udev. (sd 2:0:0:0 and
2:0:0:1) It should only be sd 2:0:0:0. Here is what a "normal"
hotplug looks like:

Apr 19 19:47:12 mikkel kernel: usb 2-1: new full speed USB device
using uhci_hcd and address 6
Apr 19 19:47:12 mikkel kernel: usb 2-1: configuration #1 chosen from
1 choice
Apr 19 19:47:12 mikkel kernel: scsi3 : SCSI emulation for USB Mass
Storage devices
Apr 19 19:47:17 mikkel kernel: scsi 3:0:0:0: Direct-Access
Generic  USB SD Reader    2.00 PQ: 0 ANSI: 0
Apr 19 19:47:17 mikkel kernel: SCSI device sda: 990976 512-byte hdwr
sectors (507 MB)
Apr 19 19:47:17 mikkel kernel: sda: Write Protect is on
Apr 19 19:47:17 mikkel kernel: sda: assuming drive cache: write through
Apr 19 19:47:17 mikkel kernel: SCSI device sda: 990976 512-byte hdwr
sectors (507 MB)
Apr 19 19:47:17 mikkel kernel: sda: Write Protect is on
Apr 19 19:47:17 mikkel kernel: sda: assuming drive cache: write through
Apr 19 19:47:17 mikkel kernel:  sda: sda1
Apr 19 19:47:17 mikkel kernel: sd 3:0:0:0: Attached scsi removable
disk sda
Apr 19 19:47:17 mikkel kernel: sd 3:0:0:0: Attached scsi generic sg0
type 0
Apr 19 19:47:19 mikkel kernel: SELinux: initialized (dev sda1, type
vfat), uses genfs_contexts
Apr 19 19:47:19 mikkel hald: mounted /dev/sda1 on behalf of uid 500

and a unmount/removable:

Apr 19 19:47:19 mikkel hald: mounted /dev/sda1 on behalf of uid 500
Apr 19 19:51:24 mikkel hald: unmounted /dev/sda1 from '/media/MUSIC'
on behalf of uid 500
Apr 19 19:51:29 mikkel kernel: usb 2-1: USB disconnect, address 6

Mikkel
-- 

  Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux