Software⏱️ 3 min read📅 2026-06-11

How to Fix: USB device detected by Linux system but unusable with “no medium found” error

Linux system issue with USB device detected but unusable due to 'no medium found' error.

Quick Answer: Run the command "e4defrag -r /dev/sdb" to fix the issue.

The 'no medium found' error when trying to access a USB device can be frustrating, especially if the device was previously usable. This error typically affects users who have experienced a change in their USB device's functionality over time.

This issue is particularly vexing because it prevents users from accessing important data stored on the affected USB device.

🔍 Why This Happens

  • The 'no medium found' error often occurs due to a problem with the USB device's firmware or hardware. When the device's firmware becomes corrupted or outdated, it can cause issues with data transfer and recognition by the system.
  • Another possible reason for this error is physical damage to the USB device, such as a bent or broken connector, which can prevent the device from being recognized by the system.

🚀 How to Resolve This Issue

Recovering Data using dd command

  1. Step 1: Open a terminal and type the following command: `sudo dd if=/dev/sdb bs=4M status=progress of=output_file` Replace '/dev/sdb' with the actual device name, 'output_file' with your desired file name.
  2. Step 2: This will start the data recovery process. The output will show the progress of the data transfer.
  3. Step 3: Once the data transfer is complete, you can use a tool like `ddrescue` to recover the data from the output file.

Recovering Data using fsck and e2fsck

  1. Step 1: Open a terminal and type the following command: `sudo fsck -t ext4 /dev/sdb` This will start the file system check process.
  2. Step 2: If the file system is damaged, you may need to use `e2fsck` to repair it. Type the following command: `sudo e2fsck -f -n -C0 /dev/sdb`

✨ Wrapping Up

In summary, if you are experiencing the 'no medium found' error with a USB device, try using the dd or fsck/e2fsck methods to recover data. Be cautious when working with file systems and data transfer, as incorrect steps can result in further damage or loss of data.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions