Unable to mount USB - USB disconnect with Lexar thumb drive
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.
Unable to mount USB - USB disconnect with Lexar thumb drive
Hi,
I've got a 16G lexar thumb drive that I can't get recognized by fdisk.
The drive isn't able to mount on all tested devices, so I assume there is fs issues with data corruption, however I'm not even getting the option from computers to reformat the drive.
It's my sister's thumb drive and our goal is to ultimately try to recover the data on the drive. If I could get the thumb drive to mount, I'm sure I can handle it for image file recovery.
Looking at the logs it looks like the kernel is sending the mtp probe, but the device isn't reading as mtp. Here's all my info so far:
I'm running a dual boot system with Ubuntu and Windows 8.1
I'd be willing to put in the verbose lsusb if needed, but it's not giving info about the thumb drive so not sure how much more helpful that would be.
Code:
rachael@rachael-home:~$ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 0bda:57b5 Realtek Semiconductor Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
here's the logs I ran tail -f on, then insert the thumb drive into my computer. You can see a wee little bit of output from before I inserted the thumb drive in the logs below, but eh, more info the better probz:
Code:
rachael@rachael-home:~$ tail -f /var/log/{kern.log,dmesg,syslog}
==> /var/log/dmesg <==
[ 16.735271] audit: type=1400 audit(1429763757.375:11): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/sbin/dhclient" pid=758 comm="apparmor_parser"
[ 16.735287] audit: type=1400 audit(1429763757.375:12): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/lib/NetworkManager/nm-dhcp-client.action" pid=758 comm="apparmor_parser"
[ 16.735296] audit: type=1400 audit(1429763757.375:13): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/lib/connman/scripts/dhclient-script" pid=758 comm="apparmor_parser"
[ 16.736214] audit: type=1400 audit(1429763757.375:14): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/lib/NetworkManager/nm-dhcp-client.action" pid=758 comm="apparmor_parser"
[ 16.736227] audit: type=1400 audit(1429763757.375:15): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/lib/connman/scripts/dhclient-script" pid=758 comm="apparmor_parser"
[ 16.736529] audit: type=1400 audit(1429763757.375:16): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/lightdm/lightdm-guest-session" pid=757 comm="apparmor_parser"
[ 16.736539] audit: type=1400 audit(1429763757.375:17): apparmor="STATUS" operation="profile_load" profile="unconfined" name="chromium" pid=757 comm="apparmor_parser"
[ 16.736710] audit: type=1400 audit(1429763757.375:18): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/lib/connman/scripts/dhclient-script" pid=758 comm="apparmor_parser"
[ 16.737108] audit: type=1400 audit(1429763757.375:19): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="chromium" pid=757 comm="apparmor_parser"
[ 16.748165] audit: type=1400 audit(1429763757.387:20): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/telepathy/mission-control-5" pid=761 comm="apparmor_parser"
==> /var/log/syslog <==
Apr 22 23:38:27 rachael-home kernel: [ 3770.250218] usb 1-2: New USB device found, idVendor=05dc, idProduct=a209
Apr 22 23:38:27 rachael-home kernel: [ 3770.250225] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Apr 22 23:38:27 rachael-home kernel: [ 3770.250229] usb 1-2: Product: USB Flash Drive
Apr 22 23:38:27 rachael-home kernel: [ 3770.250232] usb 1-2: Manufacturer: Lexar
Apr 22 23:38:27 rachael-home kernel: [ 3770.250235] usb 1-2: SerialNumber: 20131116141631234540
Apr 22 23:38:27 rachael-home kernel: [ 3770.250850] usb-storage 1-2:1.0: USB Mass Storage device detected
Apr 22 23:38:27 rachael-home kernel: [ 3770.251797] scsi13 : usb-storage 1-2:1.0
Apr 22 23:38:27 rachael-home mtp-probe: checking bus 1, device 4: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-2"
Apr 22 23:38:27 rachael-home mtp-probe: bus: 1, device: 4 was not an MTP device
Apr 22 23:38:28 rachael-home kernel: [ 3771.592935] usb 1-2: USB disconnect, device number 4
Apr 22 23:44:57 rachael-home kernel: [ 4160.217011] usb 1-2: new high-speed USB device number 5 using xhci_hcd
==> /var/log/kern.log <==
Apr 22 23:44:57 rachael-home kernel: [ 4160.217011] usb 1-2: new high-speed USB device number 5 using xhci_hcd
==> /var/log/syslog <==
Apr 22 23:44:57 rachael-home kernel: [ 4160.714844] usb 1-2: New USB device found, idVendor=05dc, idProduct=a209
Apr 22 23:44:57 rachael-home kernel: [ 4160.714850] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Apr 22 23:44:57 rachael-home kernel: [ 4160.714854] usb 1-2: Product: USB Flash Drive
Apr 22 23:44:57 rachael-home kernel: [ 4160.714857] usb 1-2: Manufacturer: Lexar
Apr 22 23:44:57 rachael-home kernel: [ 4160.714860] usb 1-2: SerialNumber: 20131116141631234540
Apr 22 23:44:57 rachael-home kernel: [ 4160.715414] usb-storage 1-2:1.0: USB Mass Storage device detected
Apr 22 23:44:57 rachael-home kernel: [ 4160.716431] scsi14 : usb-storage 1-2:1.0
==> /var/log/kern.log <==
Apr 22 23:44:57 rachael-home kernel: [ 4160.714844] usb 1-2: New USB device found, idVendor=05dc, idProduct=a209
Apr 22 23:44:57 rachael-home kernel: [ 4160.714850] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Apr 22 23:44:57 rachael-home kernel: [ 4160.714854] usb 1-2: Product: USB Flash Drive
Apr 22 23:44:57 rachael-home kernel: [ 4160.714857] usb 1-2: Manufacturer: Lexar
Apr 22 23:44:57 rachael-home kernel: [ 4160.714860] usb 1-2: SerialNumber: 20131116141631234540
Apr 22 23:44:57 rachael-home kernel: [ 4160.715414] usb-storage 1-2:1.0: USB Mass Storage device detected
Apr 22 23:44:57 rachael-home kernel: [ 4160.716431] scsi14 : usb-storage 1-2:1.0
==> /var/log/syslog <==
Apr 22 23:44:57 rachael-home mtp-probe: checking bus 1, device 5: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-2"
Apr 22 23:44:57 rachael-home mtp-probe: bus: 1, device: 5 was not an MTP device
Apr 22 23:44:58 rachael-home kernel: [ 4161.998872] usb 1-2: USB disconnect, device number 5
==> /var/log/kern.log <==
Apr 22 23:44:58 rachael-home kernel: [ 4161.998872] usb 1-2: USB disconnect, device number 5
Lastly, I tested modifying the /lib/udev/rules.d/69-libmtp.rules file manually. That *seemed* to help a little because the computer's gui pulled up the device for like a second before disconnecting. However, after updating the file, I found the logs to be less verbose since the mtp check/return error returned in a pop up window versus the error logs, which I thought strange, but oh well. Here's what I added to the end of /lib/udev/rules.d/69-libmtp.rules
Dear stoicbaby,
I had the same problem and solved it.
the reason was that I used the usb-thumb for installing an ubuntu live but stopped before finishing.
Linux was not reading the thumb, either lsusb or dmesg did not recognize it, also not fdisk so I could not even fsck.
Windows was not recognising either.
The only solution was to find 2 webpages in the internet: one is Chinese and the other is Russian.
I am writing to you by memory so I can give you only hints not exact links.
The procedure is using the information you have of your disk, you know the manufacturer and you might now the chip name also (I am afraid that it is a video of howto how to open your thumbdrive to find it the number of the chip, be careful so you do not cut the cables inside) look in a database.
There are some programs that can install the MBR or something similar according to chipnames, they are in format .exe (I was lucky enough no virus on it)
These are my hints. I will be glad to help you further if you have some questions
Faithfully,
M.
Thanks for your reply! Reading your reply sparked something in my memory. I remembered I put a Ubuntu live on her thumb drive so I could install it to her computer. So that could be the issue. Later on today I'll try to reinstall the MBR! If that works I'll repost.
I contacted the manufacturer to get the MBR, I was unable install one. So I haven't resolved it yet. Not really sure how to still mount the drive without it disconnecting. I've tried single user and rescue mode for testing to no avail. So just trying to brain storm and still trying to find more information online. Sorry I didn't update sooner!
Dear stoicbaby,
did you manage to get the MBR?
I think that the program in windows (remember it was an .exe) was called Jet Flahs Recovery. Does it say to you something?
The most difficult part of this repair, it is that Linux is not recognizing your thumb drive at all, so you have to rely on Windows to restore the MBR. This is always unsafe and risky, but I did not find any options then.
Faithfully,
M.
I'm pretty hesitant to use windows and risk formatting the thumb drive. There are some images on there we wouldn't be able to recover if the drive got formatted. I haven't heard back from the manufacturer yet though, so no luck on that end. I dunno. I'm almost ready to just take the thumb drive to a data recovery company because I'm at the limit of my knowledge. So I may just have to chalk this up to experience and not be able to resolve it. I will post if I get any updates or a resolution.
Dear stoicbaby,
I agree with you that a data recovery is the safest. These .exe programs cannot warrant any result.
However I might expressed myself incorrectly, The Jet Flash Recovery should not format the whole disk, only installing a MBR minifile in the beginning of your thumbdrive to make it readable. Afterwards lsub will find it. You can make an image copy using dd and everything within Linux.
However if the data is real important, do not risk it and take it to a data recovery.
My experience was that I wanted to help my sister with her brand new netbook with windows installed. I wanted to make a dual boot so she can enjoy the advantages of Linux. The installation went wrong and Windows was not there any more. There are many forums that tell you how to recover it, but I did not have a fix connexion to internet and took it to a recovery data center. I paid 60 EUR 5 times ago and I learned the lesson not to try to help my sister any more.
Later on, I tried to make an USB-Live linux installed. Something went wrong with the installation. Using fdisk I managed to completely erase something in the thumbdrive, which made it unreadable in Linux. The .exe program installed a MBR in the thumbdrive. Windows was able to read it and format it. I however did not recover any information because I had not important information on it, only an installation image.
All things considered, we will be using a data recovery specialist. So not sure if I should mark the thread as solved, but I think I'm done tampering with the thumb drive for now.
I greatly appreciate all the helpful input, and learned some great stuff in the process!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.