Why does my USB hdd returns SG_IO: bad/missing sense data?
Solution 1:
This is what some USB mass storage devices return if they have trouble making sense of the data.
I have a lexar 8 in 1 card reader, and on some SDxc cards, while doing the write performance from debian palimpset, the reader just die with that error. and then the card will give that error on that reader forever.
if i put the card on a smarter/less buggy reader, and format, then the lexar reader will read it again without a problem.
i never wasted time to find out what data in the card memory trigger that behaviour. but i'm 100% sure it is data only. maybe the lack of a partition schema? no idea... but aparently, besides the incompatibility of the several SD sub-formats that plague card readers, not we also have to worry about crazy partition formats.
So the cause is: bogus data written to your partition record/boot sector/whatever SD cards have.
solution is to insert card/drive/whatever you are using for memory on another USB mass storage translator device and create a partition there. then your problem is solved.
if it is a monolithic device, i.e. something that has memory chips and the USB mass storage translator on the same board... you have a bigger problem, as there is not easy way to fix that now.