USB disk files directory disappears.

Hi, I have a problem with my USB disk. After some uptime of Mikrotik, all directories from the USB disk disappear.
I have connected two USB devices:

  • Huawei E3276s-150
  • Samsung T7

They are connected via Unitek Y-3089 USB 3.0 hub powered by an additional power supply (5V, 2.5A):

Below are some details:

/system/routerboard print   
routerboard: yes
model: RB5009UPr+S+
serial-number: **ELIDED**
firmware-type: 70x0
factory-firmware: 7.5
current-firmware: 7.5
upgrade-firmware: 7.10.2

Disks when the files directory is empty (usb1 is a Huawei LTE stick, usb3 Samsung T7 disk):

/disk print detail 
Flags: X - disabled, E - empty, B - block-device; M - mounted, F - formatting; f - raid-member-failed; r - raid-member, c - encrypted; g - guid-partition-table, p - partition; t - nvme-tcp-export, i - iscsi-export, s - smb-export; n - nfs-export; O - tcg-opal-self-encryption-enabled, o - tcg-opal-self-encryption-supported
 0 E        type=hardware slot="usb1" slot-default="usb1" parent=none interface="USB 2.00 480Mbps" raid-master=none nvme-tcp-export=no iscsi-export=no nfs-export=no smb-export=no 
 1 BM  type=hardware slot="usb3" slot-default="usb3" parent=none device="sdc" uuid="bf26cbf8-bea7-4ac3-aa53-41b7d182449d" fs=ext4 model="Samsung PSSD T7" serial="S6XCNS0W510519N" size=1 000 204 886 016 free=991 542 566 912 interface="USB 3.20 5000Mbps" interface-speed=5.0Gbps raid-master=none nvme-tcp-export=no iscsi-export=no nfs-export=no smb-export=no

Empty file directory:

/file print 
Columns: NAME, TYPE, SIZE, CREATION-TIME
  #  NAME                                                              TYPE          SIZE      CREATION-TIME        
  0  usb3                                                              disk                    2023-08-02 18:30:12
  1  pub

After reboot everything comes back to normal for a while:

/disk/print detail 
Flags: X - disabled, E - empty, B - block-device; M - mounted, F - formatting; f - raid-member-failed; r - raid-member, c - encrypted; g - guid-partition-table, p - partition; t - nvme-tcp-export, i - iscsi-export, s - smb-export; n - nfs-export; O - tcg-opal-self-encryption-enabled, o - tcg-opal-self-encryption-supported 
 0 E        type=hardware slot="usb1" slot-default="usb1" parent=none interface="USB 2.00 480Mbps" raid-master=none nvme-tcp-export=no iscsi-export=no nfs-export=no smb-export=no 
 1 BM       type=hardware slot="usb3" slot-default="usb3" parent=none device="sda" uuid="bf26cbf8-bea7-4ac3-aa53-41b7d182449d" fs=ext4 model="Samsung PSSD T7" serial="S6XCNS0W510519N" size=1 000 204 886 016 free=991 542 566 912 interface="USB 3.20 5000Mbps" interface-speed=5.0Gbps raid-master=none nvme-tcp-export=no iscsi-export=no nfs-export=no smb-export=no

and file directory:

/file/print 
Columns: NAME, TYPE, SIZE, CREATION-TIME
  #  NAME                                                              TYPE             SIZE      CREATION-TIME      
  0  usb3                                                              disk                       2023-08-02 18:30:12
  1  usb3/lost+found                                                   directory                  2023-07-26 21:19:47
  2  usb3/test_file.txt                                                .txt file        0         2023-08-02 18:30:07
  3  usb3/docker                                                       directory                  2023-08-01 20:56:59
  4  usb3/docker/pull                                                  directory                  2023-08-01 20:55:22
  5  usb3/docker/cloudflared                                           container store            1970-01-01 02:00:00
  6  usb3/docker/adguard                                               container store            2023-07-27 13:57:45
  7  usb3/docker/kuma                                                  container store            2023-08-01 20:54:59
  8  usb3/docker/etc                                                   directory                  2023-07-26 21:31:26
  9  usb3/docker/etc/dnsmasq.d                                         container store            2023-07-26 21:31:26
 10  usb3/docker/etc/pihole                                            container store            2023-07-26 21:43:00
 11  usb3/docker/mounts                                                directory                  2023-08-01 20:56:59
 12  usb3/docker/mounts/kuma                                           container store            2023-08-01 20:57:04
 13  pub                                                               directory                  2023-07-02 10:36:06

As you may have noticed, I have several containers that like to explode when they lose access to usb3.

I will be grateful for any help.

any solution?

I have the same problem. After 24-72 hours of working fine, the USB flash device just disappears. There are no error logs, or, for that matter, no logs at all. The only indication of the problem is that the container that was running off that USB drive no longer works.
I reboot the device, and the USB stick is there again, and works as if nothing happened. Until it disappears, again. I’ve tried with different USB sticks, and they all eventually got disconnected.

Any suggestions how to debug the issue? Is there a way to get to the linux kernel logs? That may give a clue regarding what’s going on. Right now I don’t even know what’s to blame – is that the issue with the USB stick? If so, what kind of issue? Does my RB5009 have an issue with its USB port?

       routerboard: yes
             model: RB5009UPr+S+
     serial-number: xxxxxxxxxxx
     firmware-type: 70x0
  factory-firmware: 7.8
  current-firmware: 7.15.2
  upgrade-firmware: 7.15.2
  
[xxx@MikroTik] > /disk/ print
Flags: B - BLOCK-DEVICE; M - MOUNTED; p - PARTITION
Columns: SLOT, MODEL, SERIAL, INTERFACE, SIZE, FREE, FS
#     SLOT        MODEL              SERIAL                INTERFACE                     SIZE             FREE  FS
0 B   usb1        SanDisk SDDR-B531  xxxxxxxxxxxxxxxx      USB 3.10 5000Mbps  127 865 454 592
1 BMp usb1-part1                     @512-127865454592                        127 865 454 080  124 691 689 472  ext4
[xxx@MikroTik] > /system/resource/usb/print
Columns: DEVICE, VENDOR, NAME, SPEED
# DEVICE  VENDOR                NAME                  SPEED
0 1-0     Linux 5.6.3 xhci-hcd  xHCI Host Controller    480
1 2-1     SanDisk               SDDR-B531              5000
2 2-0     Linux 5.6.3 xhci-hcd  xHCI Host Controller   5000

Maybe after a while, the power supply stops, and you need to adjust some power-saving settings?

Check usb part what is being listed there as devices.
Does USB reset bring back the stick ?

If this persists, best to create supout.rif when it disappears again and create ticket with support.

You can also try another USB stick first. Not all brands are equal.

Do you have any issues with storage without USB hub in the way? I’ve got a single device connected to my RB5009’s USB port (ADATA UR340 32GB flash drive) and so far it’s rock stable. IMHO either RouterOS doesn’t like your particular drive for some reason or doesn’t like hub you’re using.