Data recovery and disk repair questions and discussions related to old-fashioned SATA, SAS, SCSI, IDE, MFM hard drives - any type of storage device that has moving parts
October 17th, 2011, 20:24
Does anyone know of a tool that sends a read_long command to a drive? Or the c code that would do that?
October 17th, 2011, 20:48
What are you trying to achieve?
October 17th, 2011, 20:54
read long is an obsolete command.
October 17th, 2011, 21:40
I know read long is an obsolete command. I need to recover data from a sector that was made bad with a write long.
October 18th, 2011, 10:26
@Cowtippa: There's no information volunteered so far about the h/w & s/w being used (are you deliberately trying not to give away much info?), but here are a few general comments to address those very general questions...
Cowtippa wrote:Does anyone know of a tool that sends a read_long command to a drive?
I used my own code in the past, so I don't have a recommendation for a tool. If you're looking for one, I suggest you investigate MHDD and its scripting (if your HBA is supported).
Cowtippa wrote:Or the c code that would do that?
Your answer depends on your chosen OS (and often the specific version of that OS), and the relevant ioctls which it supports - and in some cases, also varies with the HBA being used. If you're stuck for ideas, you might want to look at the work done in the smartmontools code, as they show some related techniques for different OS.
Powered by phpBB © phpBB Group.