sata

How to emulate a SATA disk drive in QEMU

 ̄綄美尐妖づ 提交于 2019-12-22 11:15:37
问题 I want to emulate a SATA disk drive in QEMU to check a device driver I'm trying to develop. How can this be done? Would greatly appreciate your help. 回答1: The Gentoo Wiki offers these parameters: -drive id=disk,file=IMAGE.img,if=none \ -device ahci,id=ahci \ -device ide-drive,drive=disk,bus=ahci.0 Set emulation layer for an ICH-9 AHCI controller (not yet stable ) and use the specified image file for it. The AHCI emulation supports NCQ, so multiple read or write requests can be outstanding at

Hard disk id of SATA drives

孤街浪徒 提交于 2019-12-20 06:39:31
问题 I am using Hard disk ID for my software to check if the authentic user is using the software. For IDE type hard disk i get the id using the procedure GetIdeSerialNumber. but in case of SATA drives it gives the id as blank. Then in case of SATA drives i am using volume id as unique id. but volume id will change when system is formatted Now I want to know which hard drive i am using ,and how to get the hard disk id of SATA drive in delphi 7 ? EDIT: the software according to client

How to Read particular sector of a disk using ATA command?

好久不见. 提交于 2019-12-13 19:19:37
问题 I want to read a particular sector(MBR Sector) of a disk using ATA commands in vc++. I am new to VC++ so i am facing a problem when sending command to disk using DeviceIoControl . I am providing a code that i am using to read out a sector using command Read Sector(s)(0x20). BOOL status = FALSE; PATA_PASS_THROUGH_EX pATAData; DWORD dataSize = sizeof(ATA_PASS_THROUGH_EX) + 512; BYTE Buffer[sizeof(ATA_PASS_THROUGH_EX) + 512]; DWORD bytescopied = 0; pATAData = (ATA_PASS_THROUGH_EX*)Buffer;

Hard disk id of SATA drives

扶醉桌前 提交于 2019-12-02 10:01:22
I am using Hard disk ID for my software to check if the authentic user is using the software. For IDE type hard disk i get the id using the procedure GetIdeSerialNumber. but in case of SATA drives it gives the id as blank. Then in case of SATA drives i am using volume id as unique id. but volume id will change when system is formatted Now I want to know which hard drive i am using ,and how to get the hard disk id of SATA drive in delphi 7 ? EDIT: the software according to client specifications needs to be locked to the hardware, the ID's concerned are MAC address HD id (SATA or IDE) Controller