If lsblk doesn't show the drive, it means the Linux kernel isn't even detecting it as a block device. This points to a problem at a lower level than partitioning or mounting. Here's a systematic approach to troubleshoot:
Step 1: Basic Physical Checks (Most Common Issues)
- Is it powered on? A 20TB drive almost certainly requires an external power supply. Make sure it's plugged in and the drive's power light is on.
- Is the USB cable good? Try a different USB cable, if you have one. Cables can go bad.
- Is the USB port good? Try plugging the drive into a different USB port on your server.
- Is the drive itself working? The ultimate test: Plug the 20TB USB drive into another computer (e.g., a Windows PC, a Mac, or another Linux machine). If it doesn't show up there either, the drive or its enclosure is likely faulty.
Step 2: Check Lower-Level USB Device Detection
Even if lsblk doesn't see it as a storage device, the kernel might still see it as a generic USB device.
-
Plug in the drive.
-
Check lsusb output: This command lists all USB devices connected to your system.
lsusb
Look for an entry that might correspond to your drive (e.g., a manufacturer name, "Mass Storage Device," or a generic USB hub). If you don't see anything new or related to the drive after plugging it in, it strongly suggests a physical connection, power, or cable issue.
-
Monitor Kernel Messages (dmesg): The kernel logs messages about new hardware connections.
dmesg | tail -n 50 # Shows the last 50 kernel messages
Alternatively, plug in the drive while running:
dmesg -w
Then plug in the drive. Look for lines related to "usb," "scsi," "storage," or "new device." These messages can indicate if the kernel is seeing something and what it's trying to do with it, or if there's an error.
Example of what you might see (or not see):
- If detected:
usb 1-1: new high-speed USB device number X using ehci-pci
- Then, related to storage:
scsi hostX: usb-storage X-Y:Z
- And eventually:
sd X:Y:Z:0: [sdb] <drive details> (which lsblk would then pick up)
If you see nothing related to USB device detection when plugging in the drive, the problem is very low-level (power, cable, port, or dead drive/enclosure).
Step 3: Rescan SCSI Hosts (If you see lsusb activity but no lsblk)
If lsusb shows the drive, but dmesg doesn't clearly show sdX entries, and lsblk is still empty, you can try forcing a SCSI host rescan. This is less likely if dmesg isn't showing initial detection, but worth a shot.
# Find your SCSI hosts
ls /sys/class/scsi_host/
# For each host (e.g., host0, host1, etc.), echo '- - -' to its scan file.
# You might need to try this for each host if you're not sure which one
# the USB controller is mapped to.
echo "- - -" | sudo tee /sys/class/scsi_host/host0/scan
echo "- - -" | sudo tee /sys/class/scsi_host/host1/scan
# ... and so on for other hosts you find.
After running this, try lsblk again.
Summary of what to look for:
- No
lsusb entry, no dmesg messages on plug-in:
- Likely cause: Physical problem (cable, power, port, dead drive/enclosure). Test on another computer.
lsusb entry, but no dmesg sdX messages, no lsblk:
- Possible cause: Kernel module not loading, driver issue (less common for standard USB storage). Check
dmesg for errors or warnings related to usb-storage or scsi. Try sudo modprobe usb_storage.
lsusb entry, dmesg sdX message, but no lsblk:
- Highly unlikely.
lsblk directly reads block devices that the kernel has identified. If dmesg shows sdX, lsblk should show it. This would point to a severely corrupted kernel state, which is rare.
The most common scenario when lsblk doesn't show it after plugging in a 20TB USB drive is a physical connection issue, especially inadequate power.