Mounting USB drive that is not recognized

user11780

Using Arch Linux / XFCE, I frequently have problems with USB drives that are not properly mounted. Sometimes they automatically show up in Thunar and I can mount them with one click. However, at other times (it's about fifty/fifty) the drive is just not recognized. I have had this problem with USB External Hard Drives, USB Memory Sticks, and cameras. If the external drive is not recognized, this is the situation:

  • The drive does not show up at fdisk -l at all (it only shows my hard drives)
  • The drive does not appear at /dev/disk
  • The drive DOES appear when running lsusb

So there is some sort of recognition, but I do not understand why, nor do I know how to mount the drives when this happens. I just reboot and hope it works next time, which is clearly not convenient...

UPDATE

When I monitor /var/log/everything.log (no info in syslog), then I see this happen when plugging in the USB:

Dec 14 15:36:32 localhost kernel: [ 6591.042911] usb 1-3: new high speed USB device number 9 using ehci_hcd
Dec 14 15:36:32 localhost mtp-probe: checking bus 1, device 9: "/sys/devices/pci0000:00/0000:00:1d.7/usb1/1-3"
Dec 14 15:36:32 localhost mtp-probe: bus: 1, device: 9 was not an MTP device

This is another requested output:

$udevadm monitor
monitor will print the received events for:
UDEV - the event which udev sends out after rule processing
KERNEL - the kernel uevent

KERNEL[6809.192268] add      /devices/pci0000:00/0000:00:1d.7/usb1/1-3 (usb)
KERNEL[6809.193421] add      /devices/pci0000:00/0000:00:1d.7/usb1/1-3/1-3:1.0 (usb)
UDEV  [6809.299246] add      /devices/pci0000:00/0000:00:1d.7/usb1/1-3 (usb)
UDEV  [6809.306074] add      /devices/pci0000:00/0000:00:1d.7/usb1/1-3/1-3:1.0 (usb)
kbyrd

The problem seems to be a catchall rule in /lib/udev/rules.d/69-libmtp.rules:

# Autoprobe vendor-specific, communication and PTP devices
ENV{ID_MTP_DEVICE}!="1", ENV{MTP_NO_PROBE}!="1", ENV{COLOR_MEASUREMENT_DEVICE}!="1", ENV{libsane_matched}!="yes", ATTR{bDeviceClass}=="00|02|06|ef|ff", PROGRAM="/usr/lib/udev/mtp-probe /sys$env{DEVPATH} $attr{busnum} $attr{devnum}", RESULT=="1", SYMLINK+="libmtp-%k", ENV{ID_MTP_DEVICE}="1", ENV{ID_MEDIA_PLAYER}="1"

Commenting out that line, as shown below, fixed the problem:

# Autoprobe vendor-specific, communication and PTP devices
ENV{ID_MTP_DEVICE}!="1", ENV{MTP_NO_PROBE}!="1", ENV{COLOR_MEASUREMENT_DEVICE}!="1", ENV{libsane_matched}!="yes", ATTR{bDeviceClass}=="00|02|06|ef|ff", PROGRAM="/usr/lib/udev/mtp-probe /sys$env{DEVPATH} $attr{busnum} $attr{devnum}", RESULT=="1", SYMLINK+="libmtp-%k", ENV{ID_MTP_DEVICE}="1", ENV{ID_MEDIA_PLAYER}="1"

In my case, I had to reboot, but there's probably a service that could be restarted instead.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

USB Flash Drive Issue (not mounting or recognized)

From Dev

Mounting a USB external drive question

From Dev

USB drive not recognized Ubuntu 14.04

From Dev

Mounting an external USB drive via VirtualBox?

From Dev

Mounting truecrypt system partition copied to USB drive

From Dev

Mounting an external USB drive via VirtualBox?

From Dev

How to handle USB Drive mounting error

From Dev

usb flash drive is not mounting: "no such file or directory"

From Dev

After making bootable USB flash drive it is not recognized

From Dev

External USB Drive not recognized after blue screen

From Dev

OS X 10.6 Snow Leopard no longer mounting an external USB drive

From Dev

Mounting USB drive at boot up on a virtualized instance of fedora

From Dev

Windows XP mounting USB drive to same letter as previously mapped network drive

From Dev

Impossible to mount USB hard drive. Filesystem not recognized?

From Dev

What to do with a USB hard drive that is not recognized by any computer

From Dev

Ubuntu server installation via USB drive - Failed to load preconfiguration file, after manually mounting cdrom/USB

From Dev

Linux Drive Mounting

From Dev

Mounting network drive fstab

From Dev

Mounting a hard drive (beginner)

From Dev

Error mounting disk drive

From Dev

Help mounting an external drive

From Dev

How can I automatically set write permissions on mounting a usb drive in linux?

From Dev

Mounting USB disks automatically

From Dev

How do I boot from a USB drive recognized as fd0?

From Dev

How to resolve Seagate USB 3.0 hard drive not being properly recognized by FreeBSD 10.3?

From Dev

External hard drive won't be recognized when plugged into the USB port in the front panel

From Dev

Mounting an SMB drive via AppleScript

From Dev

Plug in hard drive without mounting

From Dev

Mounting a hard drive as a folder in Windows?

Related Related

  1. 1

    USB Flash Drive Issue (not mounting or recognized)

  2. 2

    Mounting a USB external drive question

  3. 3

    USB drive not recognized Ubuntu 14.04

  4. 4

    Mounting an external USB drive via VirtualBox?

  5. 5

    Mounting truecrypt system partition copied to USB drive

  6. 6

    Mounting an external USB drive via VirtualBox?

  7. 7

    How to handle USB Drive mounting error

  8. 8

    usb flash drive is not mounting: "no such file or directory"

  9. 9

    After making bootable USB flash drive it is not recognized

  10. 10

    External USB Drive not recognized after blue screen

  11. 11

    OS X 10.6 Snow Leopard no longer mounting an external USB drive

  12. 12

    Mounting USB drive at boot up on a virtualized instance of fedora

  13. 13

    Windows XP mounting USB drive to same letter as previously mapped network drive

  14. 14

    Impossible to mount USB hard drive. Filesystem not recognized?

  15. 15

    What to do with a USB hard drive that is not recognized by any computer

  16. 16

    Ubuntu server installation via USB drive - Failed to load preconfiguration file, after manually mounting cdrom/USB

  17. 17

    Linux Drive Mounting

  18. 18

    Mounting network drive fstab

  19. 19

    Mounting a hard drive (beginner)

  20. 20

    Error mounting disk drive

  21. 21

    Help mounting an external drive

  22. 22

    How can I automatically set write permissions on mounting a usb drive in linux?

  23. 23

    Mounting USB disks automatically

  24. 24

    How do I boot from a USB drive recognized as fd0?

  25. 25

    How to resolve Seagate USB 3.0 hard drive not being properly recognized by FreeBSD 10.3?

  26. 26

    External hard drive won't be recognized when plugged into the USB port in the front panel

  27. 27

    Mounting an SMB drive via AppleScript

  28. 28

    Plug in hard drive without mounting

  29. 29

    Mounting a hard drive as a folder in Windows?

HotTag

Archive