LBA level disk access
What's the best way to issue disk commands (read k blocks from lba n etc.) to a SATA disk? The choice of OS does not开发者_开发问答 matter. I also need to be able to issue ATA commands. I would rather do this through a tool/application than use ioctls programmatically.
On Linux, http://tldp.org/HOWTO/SCSI-Generic-HOWTO/ is exactly what you're going for - you can control the drive 100% from user mode, just like you would have to in kernel mode. SATA drives register as SCSI on Linux these days (and modern ATA commands are intentionally similar to SCSI commands)
精彩评论