09-09-2018, 03:51 AM | #1 | |
Evangelist
Posts: 475
Karma: 445678
Join Date: Feb 2010
Device: Too many..
|
Error: Cannot find device "usb0" under Ubuntu 18.04
My PW1, PW3 and KT3 were connecting fine, both over USB0 and Wi-Fi, with my PC OS being Ubuntu version 14.04 (32-bit).
I recently upgraded the PC to Ubuntu version 18.04 (64-bit) and was slowly restoring all my old programs and tweaks. But now I find that I'm only able to connect through ssh over Wi-Fi to all the 3 Kindles - from the command line or through midnight commander's "shell link" option. Connecting through USB0 doesn't work anymore. I keep getting these error messages: Quote:
Any clue to fixing this? |
|
09-09-2018, 10:41 AM | #2 |
BLAM!
Posts: 13,477
Karma: 26012492
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
Check dmesg, some distributions rename network interfaces based on their hardware "location", to make them unique.
i.e., my usual USB port is lovingly named enp0s20f0u10 on my box. |
Advert | |
|
09-09-2018, 01:33 PM | #3 |
Evangelist
Posts: 475
Karma: 445678
Join Date: Feb 2010
Device: Too many..
|
Thanks a lot, NiLuJe!
I found the following lines in dmesg output(as soon as I connected my PW1): Code:
[20228.272172] usb 1-1: new high-speed USB device number 5 using ehci-pci [20228.435300] usb 1-1: New USB device found, idVendor=0525, idProduct=a4a2 [20228.435311] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [20228.435317] usb 1-1: Product: RNDIS/Ethernet Gadget [20228.435324] usb 1-1: Manufacturer: Linux 2.6.31-rt11-lab126 with fsl-usb2-udc [20229.149081] cdc_ether 1-1:1.0 usb0: register 'cdc_ether' at usb-0000:00:1d.7-1, CDC Ethernet Device, ee:49:00:00:00:00 [20229.149330] usbcore: registered new interface driver cdc_ether [20229.152421] usbcore: registered new interface driver cdc_subset [20229.280413] cdc_ether 1-1:1.0 enp0s29f7u1: renamed from usb0 Code:
sudo ip address add 192.168.15.201 peer 192.168.15.244 dev enp0s29f7u1 Last edited by nasser; 09-09-2018 at 01:36 PM. |
09-09-2018, 01:55 PM | #4 |
BLAM!
Posts: 13,477
Karma: 26012492
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
That name won't change *for this specific USB port*, if you happen to plug it in somewhere else, you'll have to check for the proper name again .
|
09-09-2018, 08:50 PM | #5 |
Evangelist
Posts: 475
Karma: 445678
Join Date: Feb 2010
Device: Too many..
|
Thanks again for the tips, NiLuJe!
I tried the 3 available ports on my PC and I got these:
Only the last character is changing. Maybe a script can be made which changes the device name based on which port the kindle is plugged in... I tried a brute force script: Code:
sudo ip address add 192.168.15.201 peer 192.168.15.244 dev enp0s29f7u1 sudo ip address add 192.168.15.201 peer 192.168.15.244 dev enp0s29f7u2 sudo ip address add 192.168.15.201 peer 192.168.15.244 dev enp0s29f7u4 |
Advert | |
|
09-09-2018, 09:42 PM | #6 |
BLAM!
Posts: 13,477
Karma: 26012492
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
IIRC, there's an udev command to decipher those, too .
As well as possibly doing away with the rename entirely, although that may not be an option anymore on distros that made the switch to systemd (or at all)... Last edited by NiLuJe; 09-09-2018 at 10:25 PM. |
09-10-2018, 08:30 AM | #7 |
Evangelist
Posts: 475
Karma: 445678
Join Date: Feb 2010
Device: Too many..
|
I tried this "all-in-one" script to cater to all the 9 combinations of 3 kindle models(or even 3 same model kindles) and 3 USB ports on the PC:
Code:
for i in 244 245 246 do for j in enp0s29f7u1 enp0s29f7u2 enp0s29f7u4 do sudo ip address add 192.168.15.201 peer 192.168.15.$i dev $j done done Of course, there are always some error messages referring to the 2 unconnected USB ports, but these don't seem to do any other harm. Any script possible to automate the manual disconnect? I tried sudo ifconfig enp0s29f7u1 down, but it didn't work. Trying to login to the kindle gave a message that no route was found. |
09-10-2018, 09:22 AM | #8 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
As posted elsewhere here, disable network manager.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Glo Calibre/Kobo Glo "error communicating with device." | ryuji35 | Kobo Reader | 81 | 12-04-2017 05:42 PM |
"Error communicating with device" on samba share | aarcane | Library Management | 1 | 11-14-2012 04:13 AM |
Nook tablet "Error Communicating With Device" | drwhom | Devices | 8 | 02-25-2012 01:58 AM |
Docs to Go error "Unsupported device. Passion" | jdm001 | enTourage eDGe | 12 | 02-01-2012 05:02 PM |
"[Error 2] The system cannot find the file specified: u'E:\\'" | Nyssa | Calibre | 3 | 03-17-2011 08:08 PM |