문제

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)

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top