Can not mount usb disk - rockpi4 ubuntu server

Hello
I have the issue with mount usb disk .
I see the disk under lsusb, usb-devices and dmesg.
I don’t see the correct block device in /dev/ .
The fdisk tool does not recognize the disk as well.

root@rockpi:/usr# lsusb 
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 008 Device 002: ID 18a5:0408 Verbatim, Ltd 

root@rockpi:/usr# usb-devices 
T:  Bus=08 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=5000 MxCh= 1
D:  Ver= 3.00 Cls=09(hub  ) Sub=00 Prot=03 MxPS= 9 #Cfgs=  1
P:  Vendor=1d6b ProdID=0003 Rev=04.04
S:  Manufacturer=Linux 4.4.154-99-rockchip-g5b699a48544d xhci-hcd
S:  Product=xHCI Host Controller
S:  SerialNumber=xhci-hcd.8.auto
C:  #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub

T:  Bus=08 Lev=01 Prnt=01 Port=00 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=18a5 ProdID=0408 Rev=03.00
S:  Manufacturer=Verbatim
S:  Product=Portable USB 3.0 Hard Drive
S:  SerialNumber=234642191B56
C:  #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=8mA
I:  If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=(none)

The disk is not recognized as the block device…

fdisk -l

Disk /dev/ram0: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Disk /dev/nvme0n1: 477 GiB, 512110190592 bytes, 1000215216 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 992DF2C2-0170-4F66-9492-FBF320673EEF

Device          Start        End   Sectors   Size Type
/dev/nvme0n1p1     64       8063      8000   3,9M Linux filesystem
/dev/nvme0n1p2  16384      24575      8192     4M Linux filesystem
/dev/nvme0n1p3  24576      32767      8192     4M Linux filesystem
/dev/nvme0n1p4  32768     262143    229376   112M EFI System
/dev/nvme0n1p5 262144 1000215182 999953039 476,8G Linux filesystem

Disk /dev/mmcblk0: 29,5 GiB, 31691112448 bytes, 61896704 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 69E3E4E5-2BF4-4C94-8774-841F0A4EE8CB

Device           Start      End  Sectors  Size Type
/dev/mmcblk0p1      64     8063     8000  3,9M Linux filesystem
/dev/mmcblk0p2   16384    24575     8192    4M Linux filesystem
/dev/mmcblk0p3   24576    32767     8192    4M Linux filesystem
/dev/mmcblk0p4   32768  1081343  1048576  512M EFI System
/dev/mmcblk0p5 1081344 6189i6670 60815327   29G Linux filesystem

The kernel version
root@rockpi:/usr# uname -a
Linux rockpi 4.4.154-99-rockchip-g5b699a48544d #1 SMP Tue Nov 19 02:36:07 UTC 2019 aarch64 aarch64 aarch64 GNU/Linux
root@rockpi:/usr# cat /etc/issue
Ubuntu 18.04.3 LTS \n \l

Hello,
Could you check that the usb_storage module is loaded? Use sudo modprobe usb_storage.

Check your dmesg for any errors related to attempting to attach the device. Once you plug it in they’ll appear at the end of the buffer.

Hello, it looks like I cannot load this module. The module directory for this kernel does not exist .

modprobe usb_storage

modprobe: ERROR: …/libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file ‘/lib/modules/4.4.154-99-rockchip-g5b699a48544d/modules.dep.bin’
modprobe: FATAL: Module usb_storage. not found in directory /lib/modules/4.4.154-99-rockchip-g5b699a48544d

ls /lib/modules/

4.15.0-72-generic
4.4.154-59-rockchip-g5e70f14

I had try install the latest kernel and I see the error:

Kernel configuration : earlyprintk console=ttyFIQ0,1500000n8 rw init=/sbin/init rootfstype=ext4 rootwait root=PARTUUID=B921B045-1DF0-41C3-AF44-4C6F280D3FAE

Creating new extlinux.conf...
cp: cannot stat '/usr/lib/linux-image-4.15.0-72-generic.gz': No such file or directory
run-parts: /etc/kernel/postinst.d/zz-update-extlinux exited with return code 1
dpkg: błąd przetwarzania pakietu linux-image-4.4.154-95-rockchip-gd2ab1f26e1b3 (--configure):
 installed linux-image-4.4.154-95-rockchip-gd2ab1f26e1b3 package post-installation script subprocess returned error exit status 1
dpkg: problemy z zależnościami uniemożliwiają skonfigurowanie pakietu linux-4.4-latest:
 linux-4.4-latest zależy od linux-image-4.4.154-95-rockchip-gd2ab1f26e1b3; jednakże:
  Pakiet linux-image-4.4.154-95-rockchip-gd2ab1f26e1b3 nie jest jeszcze skonfigurowany.

dpkg: błąd przetwarzania pakietu linux-4.4-latest (--configure):
 problemy z zależnościami - pozostawianie nieskonfigurowanego
Wystąpiły błędy podczas przetwarzania:
 linux-image-4.4.154-95-rockchip-gd2ab1f26e1b3
 linux-4.4-latest
E: Sub-process /usr/bin/dpkg returned an error code (1)

The issue is:
cp: cannot stat ‘/usr/lib/linux-image-4.15.0-72-generic.gz’: No such file or directory
Unfornately this file is not exist in deb package .

Could you try installing linux-image-4.4.154-99-rockchip-g5b699a48544d

1 Like