Maker tech hub — AI · 3D print · Pi · ESP32 · plus the classic tech archive.

Free ESP32 kit · Books · Network Ninja · Archive

Classic tech archive. From the original averyjparker.com tech blog — historical context; pair with modern guides where noted. Full archive · Maker projects · Network Ninja

Classic tip · Classic

fdisk Unable to read /dev/sda

The other day I was trying to partition a drive hooked up via usb. (So it get's /dev/sda as it's device in linux)... I tried a few utilities to access the partition table and all failed, finally, I r…

Written by

Avery J. Parker

IT veteran, maker educator, and author of Network Ninja, 3D Printing Mastery, and AI Workflow Mastery. Business IT: Diversified Tech Solutions.

The other day I was trying to partition a drive hooked up via usb. (So it get's /dev/sda as it's device in linux)... I tried a few utilities to access the partition table and all failed, finally, I resorted to fdisk /dev/sda and was told "unable to read /dev/sda" which I thought was peculiar. The drive had come back in a "warranty replacement" swap for another drive and should have been wiped clean and should have been good as well.


I looked online and found people with similar problems, some of which saying they had to use the drive manufacturers tools for partitioning.... I'd rather not if at all possible.... so I took another look at the drive and noticed that the jumper had been set for master. I moved it to cable select, plugged it back into the usb adapter and was able to fdisk away... The moral of the story, is that cable select can make your life easier with usb hard drive adapters (in fact the same can be said of internal ide adapters.)