From your dmesg output, it looks like your system does detect the USB device (a JMicron JMS579-based enclosure), but it's not showing up as a block device (/dev/sdX) in lsblk. This is unusual but not unheard of. Here’s what’s happening and how to fix it:
Why is the USB disk detected but not appearing in lsblk?
-
The disk is not properly initialized
- The USB-SATA bridge (JMicron JMS579) is detected, but the actual disk inside might not be spinning up or communicating correctly.
- Some USB-to-SATA adapters have power issues, especially with larger drives.
-
The disk is failing or not spinning up
- If the disk is dead or not getting enough power, the kernel might detect the USB enclosure but not the disk itself.
-
Driver or firmware issue with the JMicron JMS579 chip
- Some JMicron-based USB-to-SATA adapters have quirks that require kernel workarounds.
-
The disk is in a weird state (e.g., sleep mode, encrypted, or corrupted)
- If the disk was improperly ejected or has a corrupted partition table, it might not mount automatically.
How to Fix It
1. Check if the disk appears in /dev/
Run:
ls /dev/sd*
If you see a new /dev/sdX (e.g., /dev/sdb), but lsblk doesn’t show it, try forcing a rescan:
sudo bash -c "echo 1 > /sys/block/sdX/device/rescan"
(Replace sdX with the actual device name.)
2. Check dmesg for errors
Run:
dmesg | grep -i "error\|fail\|timeout\|reset"
If you see errors like:
I/O error
Device not ready
Timeout on reset
Failed to start unit
...then the disk might be failing or not getting enough power.
3. Try a different USB port or cable
- Some USB ports (especially on older systems) don’t provide enough power for external drives.
- Try a powered USB hub or a different cable (preferably USB 3.0+).
4. Force the kernel to re-detect USB devices
Sometimes, unplugging and replugging doesn’t trigger a proper re-detection. Try:
sudo bash -c "echo 0 > /sys/bus/usb/devices/3-2/authorized"
sudo bash -c "echo 1 > /sys/bus/usb/devices/3-2/authorized"
(Replace 3-2 with the correct USB port from dmesg.)
5. Check if the disk is spinning up
- If the disk is not spinning, it might be a power issue.
- Try connecting it to a different computer to see if it works there.
6. Try usb_modeswitch (if the disk is in a weird mode)
Some USB-SATA bridges need a "mode switch" to work properly. Install and run:
sudo apt install usb-modeswitch
sudo usb_modeswitch -v 0x152d -p 0x9561 -M "55534243123456780000000000000000000000000000000000000000000000"
(Replace 0x152d and 0x9561 with the idVendor and idProduct from your dmesg output.)
7. Try sg_scan (for SCSI devices)
If the disk is being detected as a SCSI device but not as a block device, run:
sudo apt install sg3-utils
sudo sg_scan -i
If it shows up here but not in lsblk, there might be a deeper kernel issue.
Final Steps
- If none of the above works, the disk might be dead or the USB-SATA adapter might be faulty.
- Try the disk in a different enclosure or direct SATA connection (if possible).
- If you have another computer, test the disk there to rule out hardware failure.
Summary
- Your system sees the USB enclosure (
JMicron JMS579) but not the disk itself.
- This usually means power issues, a dead disk, or a faulty USB-SATA bridge.
- Try different cables, ports, or a powered hub first.
- If still not working, the disk or adapter might be defective.