Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with 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.
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.
This is a very weird scenario. I am trying to mount a USB 3.0 (using Debian 9). The USB drive gets auto-mounted on two of the three USB ports on my laptop. Until last night, it was auto-mounting on all three ports.
The port in question is working with other USB drives so the port hardware is working. lsusb does seem to show the device but it is recognized differently on ports that work and the one where it doesn't.
I read somewhere that perhaps auto-suspend was to blame. I disabled that but to no avail.
lsblk does not show the device. Also, whereas dmesg (output below) shows activity at sdb, /dev/sdb does not exist. I am going crazy trying to figure this one out and extensive googling hasn't help.
That, as you correctly noticed, doesn't make much sense. Don't sweat. Look for answers that don't make much sense.
I got a boatload of that sort of issue which was solved by installing on a clean partition and not upgrading. Sometimes it's a power off that's required. Nothing drastic may be wrong, you're not cracking up, just your box apparently is :-P.
Putting USB devices on a powered hub seems to help with quirks like this. Voltage is lost over distance, so try shorter cables if that's not an option. Sometimes just putting a hub, even a passive one between helps. Although it might just be unplugging and re-plugging a few times to remove the oxidation from the parts that touch helps.
A lot of laptops are under-spec'd when it comes to USB voltage. Every little bit to have "better" battery life than the competition. Plus those specs get worse with age. A powered usb HUB will supply an appropriate voltage for hungry devices.
Oh this sounds like an issue I have. I got four (4) 3.0 USB ports on my laptop. It still does this from time to time, and it turns out for me, to be finicky about the cable I use with the device to attach the hdd to the usb port. Using this https://www.ebay.com/itm/USB-3-0-To-...r=571565488304
and a compatible cable.
At times I still end up fiddling with the cables, switching them until I get one to work with the device I use to connect it.
As I use both the external HDDs (WD for me) and internal laptop 2.5" hdds as external HDD's, the power is not the issue, but the cables.
sometimes, I'll plug them in and reboot. Then they get picked up by the kernel at this time.
Which actually just happened to me, just moments ago before I seen this post, I had to fiddle with the cables. Switching them cables around until I got all three HDDs to 'hook up' via auto mount. So yes this is an on going quirk I have to deal with. Because the cables are good and work. It is just a question of when and for which one and such. It is one of them situations whare ya got a work with it until it works. For me anyways.
IIRC, there's some power surge wi9th solid state drives that not all ports supply. The fact is, the port should be good for half an amp. The practice is, they handle that power surge poorly.
Insert the stick and run
Code:
sudo dmesg |tail -n 30
in a terminal. That should catch most initial errors. If something goes on complaining longer than that, you'll have isolated your fault. My perfectly functional powered usb drive throws up a
Quote:
[87614.461740] usb 1-3: USB disconnect, device number 7
[87633.808345] Buffer I/O error on dev sdb1, logical block 52461568, lost sync page write
[87633.808347] JBD2: Error -5 detected when updating journal superblock for sdb1-8.
[87633.808348] Aborting journal on device sdb1-8.
[87633.808350] Buffer I/O error on dev sdb1, logical block 52461568, lost sync page write
[87633.808351] JBD2: Error -5 detected when updating journal superblock for sdb1-8.
[87668.731281] usb 1-3: new high-speed USB device number 8 using xhci_hcd
[87668.858642] usb 1-3: New USB device found, idVendor=152d, idProduct=2338, bcdDevice= 1.00
[87668.858645] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=5
[87668.858647] usb 1-3: Product: USB to ATA/ATAPI Bridge
[87668.858648] usb 1-3: Manufacturer: JMicron
[87668.858650] usb 1-3: SerialNumber: D57CA3977374
[87668.859824] usb-storage 1-3:1.0: USB Mass Storage device detected
[87668.859935] scsi host4: usb-storage 1-3:1.0
[87669.897076] scsi 4:0:0:0: Direct-Access WDC WD50 01AALS-00L3B2 3B01 PQ: 0 ANSI: 2 CCS
[87669.897634] sd 4:0:0:0: Attached scsi generic sg2 type 0
[87669.898575] sd 4:0:0:0: [sdb] 976773168 512-byte logical blocks: (500 GB/466 GiB)
[87669.899046] sd 4:0:0:0: [sdb] Write Protect is off
[87669.899049] sd 4:0:0:0: [sdb] Mode Sense: 00 38 00 00
[87669.899484] sd 4:0:0:0: [sdb] Asking for cache data failed
[87669.899487] sd 4:0:0:0: [sdb] Assuming drive cache: write through
[87669.921535] sdb: sdb1
[87669.922926] sd 4:0:0:0: [sdb] Attached SCSI disk
It all sounds a bit hysterical, but it works every time. The drive is waking up too, which doesn't help.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.