You are not logged in.

#1 2019-08-23 18:54:06

ergo3
Member
Registered: 2019-08-23
Posts: 6

[Solved] Block devices not recognised

Hey guys,

I already used up all resources that came to my mind, so now I will ask you.

My system does not recognise any block devices as such. They are recognised as USB-devices, though.

Here is the output for lsblk:

[ma@argo ~]$ lsblk
NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
nvme0n1     259:0    0   477G  0 disk 
├─nvme0n1p1 259:1    0   512M  0 part 
├─nvme0n1p2 259:2    0     4G  0 part [SWAP]
├─nvme0n1p3 259:3    0    30G  0 part /
└─nvme0n1p4 259:4    0 442,4G  0 part /home

Here is the output for lsusb:

[ma@argo ~]$ lsusb
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 002: ID 0bda:0316 Realtek Semiconductor Corp. 
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 5986:2113 Acer, Inc 
Bus 001 Device 003: ID 8087:0a2b Intel Corp. 
Bus 001 Device 011: ID 1058:25a1 Western Digital Technologies, Inc. Elements / My Passport (WD20NMVW)
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

The Western Digital drive (Device 11) is the one I am interested in.

When I check

 systemctl status systemd-udevd.service

it says

 Aug 23 19:50:08 argo mtp-probe[3345]: bus: 1, device: 11 was not an MTP device 

I already searched the internet for similar issues but the suggested solutions don't work for me.

[ma@argo ~]$ uname -r
5.2.9-arch1-1-ARCH
[ma@argo ~]$ pacman -Q linux
linux 5.2.9.arch1-1

I really hope you guys can help me.

Thanks


PS.: It's not only the WD-drive but also all the other  usb-drives I found. However, I can mount my android phone via simple-mtpfs.

Last edited by ergo3 (2019-09-04 11:37:53)

Offline

#2 2019-08-23 20:14:47

pirateprentice
Member
Registered: 2019-08-16
Posts: 31

Re: [Solved] Block devices not recognised

Can we get a quick summary of the solutions you googled that didn't work? I don't want to tread over the same ground.

Last edited by pirateprentice (2019-08-23 20:50:21)

Offline

#3 2019-08-23 20:46:32

ergo3
Member
Registered: 2019-08-23
Posts: 6

Re: [Solved] Block devices not recognised

Well there are several threads in various forums with the same problem but they all solved the problem by rebooting (the problem was that people were not booted into the new kernel because of an update and there was a mismatch between the running kernel and the installed modules). This is also what the wiki suggests. Someone else found that their drive was simply broken. Mine is not, because it works on other computers.

This is pretty much it...

Offline

#4 2019-08-23 21:05:52

pirateprentice
Member
Registered: 2019-08-16
Posts: 31

Re: [Solved] Block devices not recognised

The research I've done seems to suggest that you need to edit your udev rule for the device, like here: https://superuser.com/questions/1206664 … -mass-stor

But beyond that I defer to anyone with experience with these issues.

Offline

#5 2019-08-24 08:14:28

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,662

Re: [Solved] Block devices not recognised

Is this a new install? Are you using a DM?
It is possible that simple-mtpfs is interfering with udevd. I would try uninstalling it and see what happens.

Offline

#6 2019-08-24 18:10:02

ergo3
Member
Registered: 2019-08-23
Posts: 6

Re: [Solved] Block devices not recognised

d_fajardo wrote:

Is this a new install? Are you using a DM?
It is possible that simple-mtpfs is interfering with udevd. I would try uninstalling it and see what happens.

I installed arch about 6 months ago. I did not have this problem up until a month ago or so. I don't even know when it started and whether it had a trigger, because I haven't used my drives for a while...

I deleted simple-mtpfs and rebooted, but still nothing...

Offline

#7 2019-08-24 21:37:58

xerxes_
Member
Registered: 2018-04-29
Posts: 904

Re: [Solved] Block devices not recognised

Post output of commands:

cat /etc/fstab
lsblk -mpf
lsusb -vd 1058:25a1
usb-devices
udevadm info -n /dev/nvme0n1

Last edited by xerxes_ (2019-08-24 22:10:25)

Offline

#8 2019-08-24 22:07:45

ergo3
Member
Registered: 2019-08-23
Posts: 6

Re: [Solved] Block devices not recognised

Ok, I really don't know what happened. Suddenly everything works again and I don't know why. 2 hours ago it did not work and I haven't done any other changes; no updates, no (de-)installations, no changes in any settings. It's very strange... I hope the problem won't come back.

Thanks guys...

Offline

#9 2019-09-03 18:22:24

ergo3
Member
Registered: 2019-08-23
Posts: 6

Re: [Solved] Block devices not recognised

Hey, it's me again.

The problem is back and I still don't know why. As it seems, sometimes when I boot into my system it does recognise the usb-drives, and sometimes it does not (This happens more often).

I thought maybe it's a hardware problem so I booted from a bootable stick a couple of times and had no problems mounting external drives, so I assume that the hardware is ok.

Now I'm back here and hope that you can help me.

Here are the outputs that xerxes_ asked for:

[ma@argo ~]$ cat /etc/fstab 
# /dev/nvme0n1p3
UUID=8d052b04-b6f9-44b3-a01e-92a467bf8a6d	/         	ext4      	rw,discard,relatime	0 1

# /dev/nvme0n1p4
UUID=f53c8d5d-39ba-4dd6-88f1-e823d5c1da75	/home     	ext4      	rw,discard,relatime	0 2


# /mnt/dev/nvme0n1p2
UUID=8a746b5f-3c01-4a52-b86a-03d2b9833a7b	none      	swap      	defaults  	0 0
[ma@argo ~]$ lsblk -mpf
NAME   SIZE OWNER GROUP MODE       FSTYPE LABEL UUID                                 FSAVAIL FSUSE% MOUNTPOINT
/dev/nvme0n1
│      477G root  disk  brw-rw----                                                                  
├─/dev/nvme0n1p1
│      512M root  disk  brw-rw---- vfat         C84B-2FA3                                           
├─/dev/nvme0n1p2
│        4G root  disk  brw-rw---- swap         8a746b5f-3c01-4a52-b86a-03d2b9833a7b                [SWAP]
├─/dev/nvme0n1p3
│       30G root  disk  brw-rw---- ext4         8d052b04-b6f9-44b3-a01e-92a467bf8a6d     10G    61% /
└─/dev/nvme0n1p4
     442,4G root  disk  brw-rw---- ext4         f53c8d5d-39ba-4dd6-88f1-e823d5c1da75  385,1G     6% /home
[ma@argo ~]$ lsusb -vd 1058:25a1

Bus 001 Device 016: ID 1058:25a1 Western Digital Technologies, Inc. Elements / My Passport (WD20NMVW)
Couldn't open device, some information will be missing
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.10
  bDeviceClass            0 
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x1058 Western Digital Technologies, Inc.
  idProduct          0x25a1 Elements / My Passport (WD20NMVW)
  bcdDevice           10.14
  iManufacturer           2 
  iProduct                3 
  iSerial                 1 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x0020
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              500mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     80 Bulk-Only
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
[ma@argo ~]$ usb-devices 

T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480 MxCh=12
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0002 Rev=05.02
S:  Manufacturer=Linux 5.2.11-arch1-1-ARCH xhci-hcd
S:  Product=xHCI Host Controller
S:  SerialNumber=0000:00:14.0
C:  #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=0mA
I:  If#=0x0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub

T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 16 Spd=480 MxCh= 0
D:  Ver= 2.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=1058 ProdID=25a1 Rev=10.14
S:  Manufacturer=Western Digital
S:  Product=Elements 25A1
S:  SerialNumber=57583531444138334C413456
C:  #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=500mA
I:  If#=0x0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=(none)

T:  Bus=01 Lev=01 Prnt=01 Port=06 Cnt=02 Dev#=  2 Spd=12  MxCh= 0
D:  Ver= 2.00 Cls=e0(wlcon) Sub=01 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=8087 ProdID=0a2b Rev=00.10
C:  #Ifs= 2 Cfg#= 1 Atr=e0 MxPwr=100mA
I:  If#=0x0 Alt= 0 #EPs= 3 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
I:  If#=0x1 Alt= 0 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb

T:  Bus=01 Lev=01 Prnt=01 Port=07 Cnt=03 Dev#=  3 Spd=480 MxCh= 0
D:  Ver= 2.01 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=5986 ProdID=2113 Rev=54.22
S:  Manufacturer=SunplusIT Inc
S:  Product=Integrated Camera
C:  #Ifs= 2 Cfg#= 1 Atr=80 MxPwr=500mA
I:  If#=0x0 Alt= 0 #EPs= 1 Cls=0e(video) Sub=01 Prot=00 Driver=uvcvideo
I:  If#=0x1 Alt= 0 #EPs= 0 Cls=0e(video) Sub=02 Prot=00 Driver=uvcvideo

T:  Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=5000 MxCh= 6
D:  Ver= 3.00 Cls=09(hub  ) Sub=00 Prot=03 MxPS= 9 #Cfgs=  1
P:  Vendor=1d6b ProdID=0003 Rev=05.02
S:  Manufacturer=Linux 5.2.11-arch1-1-ARCH xhci-hcd
S:  Product=xHCI Host Controller
S:  SerialNumber=0000:00:14.0
C:  #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=0mA
I:  If#=0x0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub

T:  Bus=02 Lev=01 Prnt=01 Port=02 Cnt=01 Dev#=  2 Spd=5000 MxCh= 0
D:  Ver= 3.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 9 #Cfgs=  1
P:  Vendor=0bda ProdID=0316 Rev=02.04
S:  Manufacturer=Generic
S:  Product=USB3.0-CRW
S:  SerialNumber=20120501030900000
C:  #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=800mA
I:  If#=0x0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=(none)

T:  Bus=03 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480 MxCh= 2
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0002 Rev=05.02
S:  Manufacturer=Linux 5.2.11-arch1-1-ARCH xhci-hcd
S:  Product=xHCI Host Controller
S:  SerialNumber=0000:3c:00.0
C:  #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=0mA
I:  If#=0x0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub

T:  Bus=04 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=5000 MxCh= 2
D:  Ver= 3.00 Cls=09(hub  ) Sub=00 Prot=03 MxPS= 9 #Cfgs=  1
P:  Vendor=1d6b ProdID=0003 Rev=05.02
S:  Manufacturer=Linux 5.2.11-arch1-1-ARCH xhci-hcd
S:  Product=xHCI Host Controller
S:  SerialNumber=0000:3c:00.0
C:  #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=0mA
I:  If#=0x0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
[ma@argo ~]$ udevadm info -n /dev/nvme0n1 
P: /devices/pci0000:00/0000:00:1d.0/0000:3e:00.0/nvme/nvme0/nvme0n1
N: nvme0n1
L: 0
S: disk/by-path/pci-0000:3e:00.0-nvme-1
S: disk/by-id/nvme-INTEL_SSDPEKKF512G8L_BTHH842200AT512D
S: disk/by-id/nvme-eui.5cd2e42a81a843ed
E: DEVPATH=/devices/pci0000:00/0000:00:1d.0/0000:3e:00.0/nvme/nvme0/nvme0n1
E: DEVNAME=/dev/nvme0n1
E: DEVTYPE=disk
E: MAJOR=259
E: MINOR=0
E: SUBSYSTEM=block
E: USEC_INITIALIZED=2536181
E: ID_SERIAL_SHORT=BTHH842200AT512D
E: ID_WWN=eui.5cd2e42a81a843ed
E: ID_MODEL=INTEL SSDPEKKF512G8L
E: ID_REVISION=L08P
E: ID_SERIAL=INTEL SSDPEKKF512G8L_BTHH842200AT512D
E: ID_PATH=pci-0000:3e:00.0-nvme-1
E: ID_PATH_TAG=pci-0000_3e_00_0-nvme-1
E: ID_PART_TABLE_UUID=9661a377-db98-49aa-a6bc-4e5af2ab4b4b
E: ID_PART_TABLE_TYPE=gpt
E: DEVLINKS=/dev/disk/by-path/pci-0000:3e:00.0-nvme-1 /dev/disk/by-id/nvme-INTEL_SSDPEKKF512G8L_BTHH842200AT512D /dev/disk/by-id/nvme-eui.5cd2e42a81a843ed
E: TAGS=:systemd:

Thanks

Offline

#10 2019-09-03 20:21:55

seth
Member
Registered: 2012-09-03
Posts: 63,457

Re: [Solved] Block devices not recognised

Android phones do typically not register as storage devices (unless maybe their SD card)

The WD thingy is registered as storage device but doesn't seem to respond.

a) is there a pattern depending on whether the device is attached before the boot ./. later on?
b) run "dmesg -w" and attach the device, post the output that it generates.
c) usb autosuspend? Do you use stuff like TLP, powertop etc?

Offline

#11 2019-09-04 11:35:10

ergo3
Member
Registered: 2019-08-23
Posts: 6

Re: [Solved] Block devices not recognised

seth wrote:

c) usb autosuspend? Do you use stuff like TLP, powertop etc?

Hi, I actually do have TLP. I disabled the usb-autosuspend option and now everything works stabily (I hope). I believe this was the issue. Thanks man!

Offline

Board footer

Powered by FluxBB