Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
01-07-2014, 03:59 PM
|
#1
|
Member
Registered: Aug 2007
Distribution: Slackware
Posts: 948
Rep: 
|
14.1, some USB Mass Storage devices disconnect immediately after connection
Hi,
I'm not sure if this the correct forum, but maybe you're able to help me or point me to the proper place.
I'm running Slackware 14.1 64-bit with generic kernel version 3.10.25 (but the same thing happens with the stock generic kernel version 3.10.17).
I have a Samsung Solid Immerse mobile phone, which can be connected over USB and seen as USB mass storage device. The problem is that, the device is immediately disconnected after it has been connected, that is for a half second I can see an icon telling that it has been detected and then the icon immediately disappears. More technically, here comes the dmesg output:
Code:
usb 1-1.2.1.3: new high-speed USB device number 10 using ehci-pci
usb 1-1.2.1.3: New USB device found, idVendor=04e8, idProduct=f000
usb 1-1.2.1.3: New USB device strings: Mfr=3, Product=2, SerialNumber=4
usb 1-1.2.1.3: Product: Qualcomm CDMA Technologies MSM
usb 1-1.2.1.3: Manufacturer: Qualcomm, Incorporated
usb 1-1.2.1.3: SerialNumber: 356092054475147
usb-storage 1-1.2.1.3:1.0: USB Mass Storage device detected
scsi8 : usb-storage 1-1.2.1.3:1.0
usbcore: registered new interface driver usb-storage
scsi 8:0:0:0: Direct-Access Samsung GT-B2710-CARD 2.31 PQ: 0 ANSI: 2
sd 8:0:0:0: [sdc] 1989632 512-byte logical blocks: (1.01 GB/971 MiB)
sd 8:0:0:0: [sdc] Write Protect is off
sd 8:0:0:0: [sdc] Mode Sense: 0f 0e 00 00
sd 8:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sdc: sdc1
sd 8:0:0:0: [sdc] Attached SCSI removable disk
sd 8:0:0:0: [sdc] Synchronizing SCSI cache
And the udevadm monitor output:
Code:
KERNEL[27575.387131] add /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.1/1-1.2.1.3 (usb)
KERNEL[27575.388582] add /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.1/1-1.2.1.3/1-1.2.1.3:1.0 (usb)
KERNEL[27575.388953] add /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.1/1-1.2.1.3/1-1.2.1.3:1.0/host11 (scsi)
KERNEL[27575.388995] add /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.1/1-1.2.1.3/1-1.2.1.3:1.0/host11/scsi_host/host11 (scsi_host)
UDEV [27575.416459] add /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.1/1-1.2.1.3 (usb)
UDEV [27575.417642] add /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.1/1-1.2.1.3/1-1.2.1.3:1.0 (usb)
UDEV [27575.418677] add /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.1/1-1.2.1.3/1-1.2.1.3:1.0/host11 (scsi)
UDEV [27575.419920] add /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.1/1-1.2.1.3/1-1.2.1.3:1.0/host11/scsi_host/host11 (scsi_host)
KERNEL[27576.393222] add /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.1/1-1.2.1.3/1-1.2.1.3:1.0/host11/target11:0:0 (scsi)
KERNEL[27576.393275] add /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.1/1-1.2.1.3/1-1.2.1.3:1.0/host11/target11:0:0/11:0:0:0 (scsi)
KERNEL[27576.393303] add /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.1/1-1.2.1.3/1-1.2.1.3:1.0/host11/target11:0:0/11:0:0:0/scsi_disk/11:0:0:0 (scsi_disk)
KERNEL[27576.393335] add /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.1/1-1.2.1.3/1-1.2.1.3:1.0/host11/target11:0:0/11:0:0:0/scsi_device/11:0:0:0 (scsi_device)
KERNEL[27576.393490] add /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.1/1-1.2.1.3/1-1.2.1.3:1.0/host11/target11:0:0/11:0:0:0/bsg/11:0:0:0 (bsg)
UDEV [27576.394211] add /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.1/1-1.2.1.3/1-1.2.1.3:1.0/host11/target11:0:0 (scsi)
UDEV [27576.394998] add /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.1/1-1.2.1.3/1-1.2.1.3:1.0/host11/target11:0:0/11:0:0:0 (scsi)
UDEV [27576.396740] add /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.1/1-1.2.1.3/1-1.2.1.3:1.0/host11/target11:0:0/11:0:0:0/scsi_disk/11:0:0:0 (scsi_disk)
KERNEL[27576.397078] add /devices/virtual/bdi/8:32 (bdi)
UDEV [27576.397259] add /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.1/1-1.2.1.3/1-1.2.1.3:1.0/host11/target11:0:0/11:0:0:0/scsi_device/11:0:0:0 (scsi_device)
UDEV [27576.397609] add /devices/virtual/bdi/8:32 (bdi)
UDEV [27576.398147] add /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.1/1-1.2.1.3/1-1.2.1.3:1.0/host11/target11:0:0/11:0:0:0/bsg/11:0:0:0 (bsg)
KERNEL[27576.403789] add /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.1/1-1.2.1.3/1-1.2.1.3:1.0/host11/target11:0:0/11:0:0:0/block/sdc (block)
KERNEL[27576.403836] add /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.1/1-1.2.1.3/1-1.2.1.3:1.0/host11/target11:0:0/11:0:0:0/block/sdc/sdc1 (block)
UDEV [27576.580292] add /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.1/1-1.2.1.3/1-1.2.1.3:1.0/host11/target11:0:0/11:0:0:0/block/sdc (block)
UDEV [27576.745740] add /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.1/1-1.2.1.3/1-1.2.1.3:1.0/host11/target11:0:0/11:0:0:0/block/sdc/sdc1 (block)
KERNEL[27576.940395] remove /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.1/1-1.2.1.3/1-1.2.1.3:1.0/host11/target11:0:0/11:0:0:0/bsg/11:0:0:0 (bsg)
KERNEL[27576.940435] remove /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.1/1-1.2.1.3/1-1.2.1.3:1.0/host11/target11:0:0/11:0:0:0/scsi_device/11:0:0:0 (scsi_device)
KERNEL[27576.940457] remove /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.1/1-1.2.1.3/1-1.2.1.3:1.0/host11/target11:0:0/11:0:0:0/scsi_disk/11:0:0:0 (scsi_disk)
KERNEL[27576.940565] remove /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.1/1-1.2.1.3/1-1.2.1.3:1.0/host11/target11:0:0/11:0:0:0/block/sdc/sdc1 (block)
KERNEL[27576.940719] remove /devices/virtual/bdi/8:32 (bdi)
KERNEL[27576.940878] remove /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.1/1-1.2.1.3/1-1.2.1.3:1.0/host11/target11:0:0/11:0:0:0/block/sdc (block)
UDEV [27576.941811] remove /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.1/1-1.2.1.3/1-1.2.1.3:1.0/host11/target11:0:0/11:0:0:0/scsi_device/11:0:0:0 (scsi_device)
UDEV [27576.941848] remove /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.1/1-1.2.1.3/1-1.2.1.3:1.0/host11/target11:0:0/11:0:0:0/bsg/11:0:0:0 (bsg)
UDEV [27576.941936] remove /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.1/1-1.2.1.3/1-1.2.1.3:1.0/host11/target11:0:0/11:0:0:0/scsi_disk/11:0:0:0 (scsi_disk)
KERNEL[27576.942165] remove /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.1/1-1.2.1.3/1-1.2.1.3:1.0/host11/target11:0:0/11:0:0:0 (scsi)
UDEV [27576.942194] remove /devices/virtual/bdi/8:32 (bdi)
KERNEL[27576.942289] remove /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.1/1-1.2.1.3/1-1.2.1.3:1.0/host11/target11:0:0 (scsi)
KERNEL[27576.942378] remove /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.1/1-1.2.1.3/1-1.2.1.3:1.0/host11/scsi_host/host11 (scsi_host)
KERNEL[27576.942485] remove /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.1/1-1.2.1.3/1-1.2.1.3:1.0/host11 (scsi)
UDEV [27576.943222] remove /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.1/1-1.2.1.3/1-1.2.1.3:1.0/host11/target11:0:0/11:0:0:0/block/sdc/sdc1 (block)
UDEV [27576.943260] remove /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.1/1-1.2.1.3/1-1.2.1.3:1.0/host11/scsi_host/host11 (scsi_host)
UDEV [27576.944334] remove /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.1/1-1.2.1.3/1-1.2.1.3:1.0/host11/target11:0:0/11:0:0:0/block/sdc (block)
UDEV [27576.944899] remove /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.1/1-1.2.1.3/1-1.2.1.3:1.0/host11/target11:0:0/11:0:0:0 (scsi)
UDEV [27576.945394] remove /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.1/1-1.2.1.3/1-1.2.1.3:1.0/host11/target11:0:0 (scsi)
UDEV [27576.945844] remove /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.1/1-1.2.1.3/1-1.2.1.3:1.0/host11 (scsi)
From the output above it can be perfectly seen that the device is added and then immediately removed. The interesting thing is that, this problem was not happening in Slackware 14.0.
Next, I have iRiver E30 music player, which behaves in similar way, but finally, after some connect/disconnect cycles it stays connected and can be seen as USB mass storage device. In the case of this player, it has been behaving like that in previous versions of Slackware too.
Here is the udevadm monitor output. For clarity I have pasted only the part of it, but it will cycle a few times through the add/remove steps and finally stay connected, but it can take more than a minute to stabilize:
Code:
KERNEL[28366.221721] add /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.3 (usb)
KERNEL[28366.222278] add /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.3/1-1.2.3:1.0 (usb)
KERNEL[28366.222454] add /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.3/1-1.2.3:1.0/host18 (scsi)
KERNEL[28366.222512] add /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.3/1-1.2.3:1.0/host18/scsi_host/host18 (scsi_host)
UDEV [28366.243755] add /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.3 (usb)
UDEV [28366.244894] add /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.3/1-1.2.3:1.0 (usb)
UDEV [28366.245912] add /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.3/1-1.2.3:1.0/host18 (scsi)
UDEV [28366.246584] add /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.3/1-1.2.3:1.0/host18/scsi_host/host18 (scsi_host)
KERNEL[28367.224152] add /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.3/1-1.2.3:1.0/host18/target18:0:0 (scsi)
KERNEL[28367.224219] add /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.3/1-1.2.3:1.0/host18/target18:0:0/18:0:0:0 (scsi)
KERNEL[28367.224248] add /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.3/1-1.2.3:1.0/host18/target18:0:0/18:0:0:0/scsi_disk/18:0:0:0 (scsi_disk)
KERNEL[28367.224271] add /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.3/1-1.2.3:1.0/host18/target18:0:0/18:0:0:0/scsi_device/18:0:0:0 (scsi_device)
KERNEL[28367.224460] add /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.3/1-1.2.3:1.0/host18/target18:0:0/18:0:0:0/bsg/18:0:0:0 (bsg)
UDEV [28367.225140] add /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.3/1-1.2.3:1.0/host18/target18:0:0 (scsi)
UDEV [28367.225918] add /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.3/1-1.2.3:1.0/host18/target18:0:0/18:0:0:0 (scsi)
UDEV [28367.227283] add /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.3/1-1.2.3:1.0/host18/target18:0:0/18:0:0:0/scsi_disk/18:0:0:0 (scsi_disk)
UDEV [28367.227449] add /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.3/1-1.2.3:1.0/host18/target18:0:0/18:0:0:0/scsi_device/18:0:0:0 (scsi_device)
KERNEL[28367.227490] add /devices/virtual/bdi/8:32 (bdi)
UDEV [28367.227874] add /devices/virtual/bdi/8:32 (bdi)
UDEV [28367.229434] add /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.3/1-1.2.3:1.0/host18/target18:0:0/18:0:0:0/bsg/18:0:0:0 (bsg)
KERNEL[28367.243650] add /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.3/1-1.2.3:1.0/host18/target18:0:0/18:0:0:0/block/sdc (block)
KERNEL[28367.243701] add /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.3/1-1.2.3:1.0/host18/target18:0:0/18:0:0:0/block/sdc/sdc1 (block)
UDEV [28367.354063] add /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.3/1-1.2.3:1.0/host18/target18:0:0/18:0:0:0/block/sdc (block)
UDEV [28367.457585] add /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.3/1-1.2.3:1.0/host18/target18:0:0/18:0:0:0/block/sdc/sdc1 (block)
KERNEL[28380.991136] remove /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.3/1-1.2.3:1.0/host18/target18:0:0/18:0:0:0/bsg/18:0:0:0 (bsg)
KERNEL[28380.991185] remove /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.3/1-1.2.3:1.0/host18/target18:0:0/18:0:0:0/scsi_device/18:0:0:0 (scsi_device)
KERNEL[28380.991212] remove /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.3/1-1.2.3:1.0/host18/target18:0:0/18:0:0:0/scsi_disk/18:0:0:0 (scsi_disk)
KERNEL[28380.992405] remove /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.3/1-1.2.3:1.0/host18/target18:0:0/18:0:0:0/block/sdc/sdc1 (block)
UDEV [28380.992453] remove /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.3/1-1.2.3:1.0/host18/target18:0:0/18:0:0:0/bsg/18:0:0:0 (bsg)
KERNEL[28380.992480] remove /devices/virtual/bdi/8:32 (bdi)
UDEV [28380.992506] remove /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.3/1-1.2.3:1.0/host18/target18:0:0/18:0:0:0/scsi_device/18:0:0:0 (scsi_device)
KERNEL[28380.992541] remove /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.3/1-1.2.3:1.0/host18/target18:0:0/18:0:0:0/block/sdc (block)
KERNEL[28380.992571] remove /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.3/1-1.2.3:1.0/host18/target18:0:0/18:0:0:0 (scsi)
KERNEL[28380.992599] remove /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.3/1-1.2.3:1.0/host18/target18:0:0 (scsi)
KERNEL[28380.992625] remove /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.3/1-1.2.3:1.0/host18/scsi_host/host18 (scsi_host)
KERNEL[28380.992650] remove /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.3/1-1.2.3:1.0/host18 (scsi)
KERNEL[28380.992681] remove /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.3/1-1.2.3:1.0 (usb)
KERNEL[28380.992718] remove /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.3 (usb)
UDEV [28380.993091] remove /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.3/1-1.2.3:1.0/host18/target18:0:0/18:0:0:0/scsi_disk/18:0:0:0 (scsi_disk)
UDEV [28380.993326] remove /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.3/1-1.2.3:1.0/host18/scsi_host/host18 (scsi_host)
UDEV [28380.993764] remove /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.3/1-1.2.3:1.0/host18/target18:0:0/18:0:0:0/block/sdc/sdc1 (block)
UDEV [28380.993813] remove /devices/virtual/bdi/8:32 (bdi)
UDEV [28380.995109] remove /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.3/1-1.2.3:1.0/host18/target18:0:0/18:0:0:0/block/sdc (block)
UDEV [28380.995991] remove /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.3/1-1.2.3:1.0/host18/target18:0:0/18:0:0:0 (scsi)
UDEV [28380.996535] remove /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.3/1-1.2.3:1.0/host18/target18:0:0 (scsi)
UDEV [28380.996869] remove /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.3/1-1.2.3:1.0/host18 (scsi)
UDEV [28380.997270] remove /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.3/1-1.2.3:1.0 (usb)
UDEV [28381.005979] remove /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.3 (usb)
[... repeats a few times the above events ... ]
Do you have any idea what is happening?
--
Best regards,
Andrzej Telszewski
|
|
|
01-09-2014, 04:14 PM
|
#2
|
Senior Member
Registered: Aug 2007
Location: Zurich, Switzerland
Distribution: Gentoo
Posts: 1,001
Rep: 
|
Hi
Quote:
Next, I have iRiver E30 music player, which behaves in similar way, but finally, after some connect/disconnect cycles it stays connected and can be seen as USB mass storage device.
|
I confirm that what you're experiencing happened and is happening since forever on all the distributions I used and am using. It very much depends on what you connect and how (e.g. through a cardreader).
Some time ago I read somewhere (Arstechnica? Phoronix? ...?) about a bug in the Linux kernel that made the kernel reject USB-devices because its timeout to establish a connection with the device was set too short compared to the industry-standard.
Does anybody know what happened to that bug?
Trying to find that article/post... .
Cheers
|
|
|
01-09-2014, 04:17 PM
|
#3
|
Senior Member
Registered: Aug 2007
Location: Zurich, Switzerland
Distribution: Gentoo
Posts: 1,001
Rep: 
|
Sorry, btw., your log shows that the device was accepted:
Quote:
sd 8:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sdc: sdc1
|
Does the "/dev/sdc1" device disappear as well or does it stay?
If it stays then it's not the kernel issue I described above but something else that has to do with udev... .
|
|
|
01-10-2014, 02:06 AM
|
#4
|
Member
Registered: Aug 2007
Distribution: Slackware
Posts: 948
Original Poster
Rep: 
|
Hi,
No, "/dev/sdc1" is also removed.
Previously I was running 3.4.x kernel and it was working fine.
--
Best regards,
Andrzej Telszewski
|
|
|
01-10-2014, 03:06 PM
|
#5
|
Member
Registered: Aug 2007
Distribution: Slackware
Posts: 948
Original Poster
Rep: 
|
Hi,
I did a bit of testing with the Samsung phone.
I've tested generic kernels version 3.4.76 and 3.12.7 using the configs from /testing.
I've also tested the stock generic and huge kernels 3.10.17 and also generic 3.10.25 (with config from 3.10.17).
All the above kernels present the same problem I've mentioned in the initial post, that is the device is added and then immediately removed. It's a bit surprising with the 3.4.x kernel as it is working in Slackware 14.0 on the other machine and it used to work on mine when it was also having 14.0.
Now the funny part. I can properly connect the device and use it as mass storage in Windows XP running inside a VirtualBox running on top of the Slackware.
One more thing is that, when I was changing to 14.1 I have also upgraded the laptop's BIOS, but I don't know if it has anything to do. The Slackware installation was clean 14.1, I was not upgrading from 14.0.
EDIT:
It seems like the problem has something (or a lot) to do with the udev, because if I stop the udev daemon and then connect the phone, the device node "/dev/sdc1" is created and can be mounted. And if I start the the udev again, the device node is again removed.
EDIT2:
OK, I've found the problem, which is usb_modeswitch. It seems that upon connection, the rule /usr/share/usb_modeswitch/04e8:f000 is executed, because if I comment out its contents, the phone can be finally seen and used as mass storage device.
My question is: what is the preferred way to override this rule? Or the only thing I can do is just to leave this file commented out or to remove it at all?
--
Best regards,
Andrzej Telszewski
Last edited by atelszewski; 01-10-2014 at 06:35 PM.
|
|
|
01-11-2014, 02:26 PM
|
#6
|
Member
Registered: Aug 2007
Distribution: Slackware
Posts: 948
Original Poster
Rep: 
|
Hi,
I believe I found the correct solution.
The usb_modeswitch is run through the /lib/udev/rules.d/40-usb_modeswitch.rules but I was not able to find a way to disable the rule there. The solution is to tell the usb_modeswitch not to execute its default rule for given USB device and I accomplished that by placing an empty file in the /etc/usb_modeswitch.d, which will override this default rule. The file should be named using the VID:PID pair for the USB device that should not be managed, so I ended up with the following file /etc/usb_modeswitch.d/04e8:f000 (with no contents). From that point on the phone can be properly used as a mass storage device.
The problem with the iRiver E30 music player still remains unsolved, but since it is a tricky bit of hardware and not used very much, I'm not insisting on it (and it will finally connect and can be used as a mass storage device). I'll keep the thread open for some time before marking it solved, waiting if somebody comes with whatever information about what can be wrong with the E30 connection, because I'm more interested in the technical details than in the E30 itself working correctly.
--
Best regards,
Andrzej Telszewski
|
|
|
01-11-2014, 05:06 PM
|
#7
|
Senior Member
Registered: Aug 2007
Location: Zurich, Switzerland
Distribution: Gentoo
Posts: 1,001
Rep: 
|
Compliments! 
|
|
|
All times are GMT -5. The time now is 04:28 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|