This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
I have a customer asking the following:
We are trying to change a scsi disk operation to a IEEE1384b interface. I found NitroAV that makes a PCI card that uses the TI chip XIO2213B. Are there utilities under windows that allow access to sector reads on the disk? Our data is written to the disk without a file system.
This has nothing to do with IEEE-1394 or the XIO2213B; you can access SBP-2-connected disks like any other disk.
That is, you can just open the file "\\.\PhysicalDrive0" (1, 2, …).
Are you saying that from inside a C program, I can ...
FILE *fp;
char buf[512];
fp = fopen("\\.\PhysicalDrive0", r);
fread(buf, 1, 512, fp);
And this will read sector 0 of my C-drive into buf?
No — you have to escape the backslashes, and to use binary mode: fopen("\\\\.\\PhysicalDrive0", "rb")
Please note that there are many functions that do not work with file names in the device name space, and that you will not be able to do everything you could do with a file, such as memory-mapping it. However, fopen/fread should work, and in any case, using CreateFile/ReadFile is guaranteed to work.