Unable to mount partitions on external USB drive

Creating a bug report/issue

I have searched the existing open and closed issues

Required Information

  • DietPi version | G_DIETPI_VERSION_CORE=9 G_DIETPI_VERSION_SUB=8 G_DIETPI_VERSION_RC=0 G_GITBRANCH=‘master’ G_GITOWNER=‘MichaIng’
  • Distro version | Bookworm
  • Kernel version | Linux 4WiseGaba 6.6.56-current-rockchip64 #1 SMP PREEMPT Thu Oct 10 10:50:06 UTC 2024 aarch64 GNU/Linux
  • Architecture | arm64
  • SBC model | ROCK 4 (aarch64)
  • Power supply used | 5V 2A
  • SD card used | Sandisk

Additional Information (if applicable)

512GB M.2 NVME SSD in USB enclosure

  • Can this issue be replicated on a fresh installation of DietPi?
    Unsure, depends on hardware setup

Steps to reproduce

  1. Fresh install of Dietpi latest version
  2. Connect USB enclosure to one of the USB port (tried both USB 2 and USB 3.1 ports)
  3. Start dietpi-drive_manager

Expected behaviour

Drive should be visible in dietpi-drive_manager with all existing partition visible to mount

Actual behaviour

Drive is appearing as /tmp/sdb and cannot mount.
Attempt to format and mount also generating error.

Extra details

I have re-installed Dietpi from SD card and works fine. I also connected up Sandisk 32gb USB drive and is detected by dietpi-drive_manager and mounted successfully.

I’m trying to connect 512GB M.2 NVME SSD in USB enclosure for external data storage. SSD already has 4 partitions - one Ext4 and 3 Exfat. Win 11 easily detects 4 partitions (as separate drives) and able to access 3 Exfat partitions.

When using it with Dietpi, lsblk command is showing as sdb but not the partitions within. Dietpi-drive_manager is showing as /dev/sdb with message no filesystem | format required. Attempting to format as Ext4 is generating error "dd: error writing ‘/dev/sdb’: No space left on device "

Disconnected SSD enclosure > ran ‘sudo dmesg -w’ > reconnected the enclosure and monitored the messages appear on terminal. Below is the copy if it helps to debug.

[34353.011123] usb 7-1: new high-speed USB device number 3 using ehci-platform
[34353.174368] usb 7-1: New USB device found, idVendor=0bda, idProduct=9210, bcdDevice=20.01
[34353.174422] usb 7-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[34353.174445] usb 7-1: Product: RTL9210B-CG
[34353.174463] usb 7-1: Manufacturer: Realtek
[34353.174481] usb 7-1: SerialNumber: 012345679039
[34353.178855] usb-storage 7-1:1.0: USB Mass Storage device detected
[34353.181216] scsi host1: usb-storage 7-1:1.0
[34354.210866] scsi 1:0:0:0: Direct-Access     Realtek  RTL9210B-CG      1.00 PQ: 0 ANSI: 6
[34354.211660] sd 1:0:0:0: Attached scsi generic sg1 type 0
[34354.219798] sd 1:0:0:0: [sdb] Read Capacity(10) failed: Result: hostbyte=0x00 driverbyte=DRIVER_OK
[34354.219839] sd 1:0:0:0: [sdb] Sense Key : 0x5 [current]
[34354.219852] sd 1:0:0:0: [sdb] ASC=0x20 ASCQ=0x0
[34354.222296] sd 1:0:0:0: [sdb] 0 512-byte logical blocks: (0 B/0 B)
[34354.222329] sd 1:0:0:0: [sdb] 0-byte physical blocks
[34354.229254] sd 1:0:0:0: [sdb] Test WP failed, assume Write Enabled
[34354.231240] sd 1:0:0:0: [sdb] Asking for cache data failed
[34354.231277] sd 1:0:0:0: [sdb] Assuming drive cache: write through
[34354.233291] sd 1:0:0:0: [sdb] Attached SCSI removable disk

Why Dietpi-drive_manager would not mount the drive with existing partition? Not sure what I’m missing here.

root@4WiseGaba:~# blkid
/dev/mmcblk1p1: UUID="2ca1b578-e696-4fc5-a176-1e9af7cb7656" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="a51dc6fe-01"
/dev/sda1: LABEL="32G" UUID="7F75-76C1" BLOCK_SIZE="512" TYPE="exfat" PTTYPE="dos" PARTUUID="b76c1377-01"