Questions tagged [sata]

Serial ATA (SATA) is a forward-backward compatible family of advanced computer bus interfaces for mass storage devices with hot-swapping capability and transfer speeds up to 600 MiB/s.

55 questions
2
votes
2 answers

How to differ between external HDD and internal ones?

I want to know whether device is connected via USB (meaning it is a removable hard drive) or SATA (meaning it is an internal hard drive). That is how I get a list of devices SP_DEVINFO_DATA volumeData; volumeData.cbSize = sizeof…
Ganya
  • 25
  • 1
  • 6
2
votes
1 answer

Configuring a 7-Series GTXE2 transceiver for Serial-ATA (Gen1/2/3)

Hello this will be an experts questions :) You should be familiar with the following topics Xilinx Multi-Gigabit-Transceivers (MGTs), especially the 7-Series GTX/GTH transceivers (GTXE2_CHANNEL) Serial-ATA Gen1, Gen2 and Gen3, especially…
Paebbels
  • 15,573
  • 13
  • 70
  • 139
2
votes
1 answer

AHCI specification

I have a question regarding the AHCI spec: Is the variable pDmaXferCnt in the port used when the transfer is a DMA write or read? The description in the spec seems to indicate that it isn't, but the PRDs are used instead. But how does the HBA know…
2
votes
2 answers

CRC calculation for Serial ATA (SATA)

After reading a lot I came to know that there is no SINGLE method of calculating CRC. I need method/algorithm/VHDL code for calculating CRC specifically for Serial ATA (SATA)
2
votes
1 answer

Writing a large file prevents large block DMA allocation

I'm working with a board with an ARM based processor running linux (3.0.35). Board has 1GB RAM and is connected to a fast SSD HD, and to a 5MP camera. My goal is capturing high resolution images and write those directly to disk. All goes well until…
oferlivny
  • 300
  • 4
  • 15
1
vote
0 answers

how to determine what SATA ports are connected on motherboard using command prompt?

my PC motherboard has 2 SATA connectors. I'm far from office and PCs but I'd need to know, before to buy a new disk for a PC, what of those SATA ports are busy. I thought to WMIC commands or powershell but I'm struggling finding a command to do…
Ale MaDaMa
  • 25
  • 4
1
vote
2 answers

How to check for a drive's existence in Debian Linux

I have a Debian Linux server with two eSATA drives attached to it (NTFS, bleh). They are currently mounted fine and have proper fstab entries setup (using UUID, not /dev locations). I've come to the conclusion that I need to add 'noauto' mount…
Thomas Hunter II
  • 5,081
  • 7
  • 35
  • 54
1
vote
1 answer

Linux scsi ata cmd write or read sometimes work and sometimes didn't work when transfer length is over 1345

My code is as follows: unsigned char cmd[16]; cmd[0] = WRITE_16; //lba is start address cmd[2] = (lba >> 54) & 0xFF; cmd[3] = (lba >> 48) & 0xFF; cmd[4] = (lba >> 40) & 0xFF; cmd[5] = (lba >> 32) & 0xFF; cmd[6] = (lba >> 24) & 0xFF; cmd[7] = (lba >>…
Easyhyum
  • 307
  • 1
  • 3
  • 5
1
vote
1 answer

ATA PASS THROUGH DIRECT on SAS BUS in Windows XP

I want to send a "ATA Pass through Direct" command to a drive that is on the SAS(SATA attached SCSI) bus. The drive is SATA drive, in Windows XP(x86) envirnoment. I hoped there was a STP(SATA Tunneled Protocol) layer that would translate the ATA…
Firefox
  • 11
  • 4
1
vote
0 answers

Cannot write to SATA disks on AHCI controller in kernel mode program

I'm writing an experimental kernel-mode program to test some things. I want to do IO to and from a SATA disk attached to an AHCI controller. I have a C driver that previously worked on another similar project that ran on another PC I no longer have.…
1
vote
3 answers

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

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…
Sam
  • 61
  • 1
  • 10
1
vote
1 answer

How many physical channels SATA controller has?

Imagine a system with one SATA controller. If controller operates in IDE mode it will show up in device manager like this: Windows XP: IDE controller's name Primary IDE Channel Secondary IDE Channel Windows >= Vista: IDE controller's name ATA…
igntec
  • 1,006
  • 10
  • 24
1
vote
1 answer

Linux AHCI PRD allocation

I am a hardware developer who is creating a AHCI interface for an embedded system. I would like to know where the PRD DMA data is created and allocated to the PRDs. As SATA uses DWORDS I am assuming that the data will be aligned to multiples of 4…
1
vote
2 answers

obtaining WWN of SATA disks

recently I have been trying all sorts of things with harddrives. Now I am stuck... what I want to get is the serial,model,revision and WWN of harddrives. for scsi all of the above is obtainable by a scsi inquiry. for SATA drives I use…
user2882307
1
vote
1 answer

The memory model when bios transfers control to AHCI expansion ROM?

As I knew the AHCI expansion ROM uses IDP(Index/Data pair) to access the AHCI registers(global and Port registers). The ahci spec v1.3 says: The IDP mechanism allows host software to access all of the MMIO registers using indirect I/O…
liaoo
  • 193
  • 2
  • 15