You're so close to solving the mystery. The dmesg output is actually telling you exactly what's happening. Let's break it down, and I'll guide you through the next steps.
What's Happening (in Plain English):
- Your server has detected the USB device (your external hard disk enclosure).
- It's identifying the USB-to-SATA bridge chip (JMicron JMS579) inside the enclosure.
- But... the kernel hasn't yet associated it with a block device (
/dev/sdX).
Here's the crucial part of your dmesg output:
[89530.785980] usb 3-2: new SuperSpeed Gen 1 USB device number 6 using xhci_hcd
[89530.806736] usb 3-2: New USB device found, idVendor=152d, idProduct=9561, bcdDevice= 1.00
[89530.806741] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[89530.806744] usb 3-2: Product: JMS579
[89530.806747] usb 3-2: Manufacturer: JMicron
[89530.806749] usb 3-2: SerialNumber: 015107558A39
Key Points:
idVendor=152d, idProduct=9561 → This tells us the USB device is a JMicron JMS579 chip. It's a very common USB-to-SATA bridge. Think of it like a translator: "Hey, I'm a USB port, but I've got a SATA hard disk attached behind me."
- You see
Manufacturer, Product, and SerialNumber, but there's no mention of sd 0:0:0:0: [sdb] or Attached SCSI disk. That means:
- The kernel saw the USB device.
- It loaded the correct driver for the JMS579 chip.
- But it hasn't yet "claimed" the underlying SATA disk as a block device.
Why lsblk Doesn't See It (Yet):
The JMS579 chip is supported by the Linux kernel, but sometimes (especially with USB enclosures) there's an extra step needed: UAS (USB Attached SCSI) mode.
Here's the deal:
- By default, the kernel might be using older
usb-storage mode instead of uas (USB Attached SCSI) mode.
uas is a faster, more modern protocol that lets the kernel treat the USB device as if it were a native SCSI/SATA disk.
- Without
uas kicking in, the disk isn't exposed as /dev/sdX.
FIX IT IN 3 EASY STEPS:
Step 1: Check If uas Driver Is Loaded
Run:
lsmod | grep uas
If you see:
uas 24576 0
Great! The uas module is loaded, but maybe not attached to your device. If you don't see anything, load it manually:
sudo modprobe uas
Step 2: Force uas for Your Specific Device
We need to tell the kernel: "Hey, whenever you see 152d:9561 (that's your JMS579), use uas!"
-
Edit (or create) the uas quirks file:
sudo nano /etc/modprobe.d/uas.conf
-
Add this line:
options usb-storage quirks=152d:9561:u
(152d:9561 matches your idVendor:idProduct from dmesg. The :u flag forces uas mode.)
-
Save and exit (Ctrl+X, Y, Enter).
-
Unload and reload the USB storage modules:
sudo rmmod uas usb-storage
sudo modprobe uas
sudo modprobe usb-storage
Step 3: Reboot (or Unplug/Replug) the USB Disk
Either:
- Reboot your server (cleanest way):
sudo reboot
- OR, just unplug and replug the USB cable of your external disk.
NOW, CHECK AGAIN:
After rebooting or replugging:
lsblk
dmesg | tail -n 30
If everything worked, dmesg will now show:
[ XXXX.XXXXX] usb 3-2: new SuperSpeed Gen 1 USB device number 7 using xhci_hcd
[ XXXX.XXXXX] usb-storage 3-2:1.0: USB Mass Storage device detected
[ XXXX.XXXXX] usb-storage 3-2:1.0: Quirks match for vid 152d pid 9561: 800000
[ XXXX.XXXXX] scsi host0: usb-storage 3-2:1.0
[ XXXX.XXXXX] scsi 0:0:0:0: Direct-Access WDC WD10 SPIN 1.00 PQ: 0 ANSI: 6
[ XXXX.XXXXX] sd 0:0:0:0: Attached scsi generic sg1 type 0
[ XXXX.XXXXX] sd 0:0:0:0: [sdb] 1953525168 512-byte logical blocks: (1.00 TB/931 GiB)
[ XXXX.XXXXX] sd 0:0:0:0: [sdb] Write Protect is off
[ XXXX.XXXXX] sd 0:0:0:0: [sdb] Mode Sense: 47 00 10 08
[ XXXX.XXXXX] sd 0:0:0:0: [sdb] Attached SCSI disk
And finally:
lsblk
Should show:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 465.8G 0 disk
├─sda1 8:1 0 512M 0 part /boot/efi
└─sda2 8:2 0 465.3G 0 part /
sdb 8:16 0 931.5G 0 disk <--- YOUR DISK IS NOW VISIBLE!
YOU DID IT. Now you can partition (fdisk /dev/sdb), format (mkfs.ext4 /dev/sdb1), and mount it as we discussed earlier.
If it still doesn't work, the issue is likely:
- A faulty USB enclosure (try another one).
- A failing hard disk inside the enclosure (test it on another computer).
- A rare kernel bug (update your kernel:
sudo apt update && sudo apt install linux-generic).
But 99% of the time, forcing uas mode fixes JMS579-related USB disks. Good luck!