Questions tagged [ata]

ATA(short for AT Attachment), also known as IDE, is commonly used as a synonym for PATA(parallel ATA). Its successor is SATA(serial ATA), which is currently in use as a standard. Because ATA/IDE was originally developed for and limited to hard drives, an extended protocol called ATAPI (ATA Packet Interface) has been introduced which wraps SCSI commands in ATA packets to connect to a variety of other devices like CD/DVD-Drives.

52 questions
1
vote
1 answer

The AoE standard appears to have no CRC field. Is this in violation of the ethernet standard?

I've been debugging AoE in one of my setups. In it I noticed that the AoE packets do not seem to have checksum fields on the frames. I looked up the AoE specification and it doesn't seem to have CRC checksums on the ends of the packets defined. Is…
hookenz
  • 36,432
  • 45
  • 177
  • 286
1
vote
1 answer

Does reading an I/O port have any side effects? What about in Programmed I/O?

Does reading a CPU port (through the in/out instructions) have any side effects whatsoever? For example: Does it "tell" a device that the port has been read? Could reading an arbitrary port carelessly cause any harm? I'm assuming it shouldn't, but…
user541686
  • 205,094
  • 128
  • 528
  • 886
0
votes
1 answer

Retrieve S.M.A.R.T information from ATA, SAS, SATA disk

I want to retrieve S.M.A.R.T information from ATA, SAS, SATA disk on windows. I'm using Visual Studio. I have already open disk using HANDLE hDevice = CreateFile(deviceName.c_str(), 0, FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, OPEN_EXISTING,…
csypt
  • 1
  • 2
0
votes
0 answers

ATA read/write sectors in longmode not working

I am not able to get this working. I got this code from here: https://wiki.osdev.org/ATA_read/write_sectors `;============================================================================= ; ATA read sectors (LBA mode) ; ; @param EAX Logical Block…
shawnixer
  • 1
  • 1
0
votes
0 answers

Ata interrupts fires constantly on real hardware

I have been writing some ata stuff recently. On real hardware the ata controller uses IRQ_11. To get the driver to work I had to mask IRQ_11 because it would constantly fire after issuing the identify command. Down here is some simplified code which…
0
votes
1 answer

Strange data when read disk sector with ATA/IDE PIO

I gets some unexpected data when I read a disk sector. I tried to read disk data without a kernel, but got strange data. I have a file fs.img and use it like qemu-system-i386 -drive file=fs.img,index=0,media=disk,format=raw,if=ide ...... hd…
stskyblade
  • 19
  • 4
0
votes
2 answers

Overflow error when trying to read drive properties with ioctl in python

When trying to extract a vendor-specific feature for one of my drives (cmd = 0x89), I get an overflow error: OverflowError: signed integer is greater than maximum. The error is thrown immediately after ioctl is called. The traceback is not very…
Daniel
  • 547
  • 5
  • 25
0
votes
0 answers

(ATA PIO) Garbage reads from port

I have been trying to write a ATA PIO driver to load files from protected mode, but it would seem that all the data I recieve from the port is garbage (0xffff). This is my first time writing a PIO driver so Iam not really sure what I'm doing is…
qwn
  • 347
  • 3
  • 15
0
votes
2 answers

Reading data from HDD without BIOS interrupts DRQ bit not setting

IMPORTANT: this code will render media unusable without formatting or recovery. Use unused, empty, or unneeded media. It should be straightforward to replicate BIOS interrupt functions' behavior but the information about it online is lackluster on…
user145453
  • 137
  • 10
0
votes
1 answer

How to make Raspberry Pi to be a VoIP ATA Device

I want to make a VoIP ATA (Analog Telephone Adapter) Device using Raspberry Pi, furthermore, I also want to add FXS ports to the Raspberry Pi. Kindly, tell me whether it is possible or not. If Yes, then how? Here is the Reference Link
Ammar Ashraf
  • 61
  • 3
  • 10
0
votes
2 answers

SQL code to get min,max at a time

How to display min and max salary from a table at a time (2 records at a time, one with max and another with min)? My input table data: empid ename sal 1 A 2000 2 B 1000 3 C 1500 4 D 5000 5 E …
0
votes
2 answers

How to execute SMART Self-Test

I am writing an application based on .NET that checks the heath of a disk or more disks in a system. I can use the WMI interface for ATAPI to get at the SMART data, followed by link: http://wutils.com/wmi/root/wmi/msstoragedriver_atapismartdata/ But…
Bamboo Do
  • 11
  • 5
0
votes
1 answer

Where can I find the SMART Threshold values of a HDD?

I am writing a SMART monitor tool and I managed to get SMART attributes [Current, Worst, Raw Data] with SMART_REA_DATA command, but I need the thresholds too, and I searched the ATA documentation but I have not found anything about how to read the…
Marus Gradinaru
  • 2,824
  • 1
  • 26
  • 55
0
votes
1 answer

Can not read CD using ATAPI

Here is my code. It fills ATAPI_RAWDATA array with 65535 in decimal. No Error codes. Secondary Error Register Port filled with 0. It does not halt and there is no cpu_triple_fault. When I remove Secondary Master CD device the procedure halts…
user2590769
  • 75
  • 1
  • 10
0
votes
3 answers

Sending ATA command "Read native max address (0x27 , 0xF8) not reponding over SAS controller using SAT(SCSI ATA translate)

i want to find out native max address of an HDD over SAS interface. i am using SAT ( scsi ata translation) with SCSI_PASS_THROUGH. but unable to find out any buffer or valid senseinfo of SCSI_PASS_THROUGH with IOCTL_SCSI_PASS_THROUGH from drive. cdb…
Prx
  • 11
  • 1