* can't read sectors with SG_IO
@ 2007-10-09 6:42 Kantor Zsolt
0 siblings, 0 replies; only message in thread
From: Kantor Zsolt @ 2007-10-09 6:42 UTC (permalink / raw)
To: linux-ide
Hi,I want to read for instance 1 sector from my ATA hard
disk with the SG_IO ioctl.I havecreated,set the fields for
the SG_IO ioctl,it returns 0 but no data in the buffer.I
even used the hdparm 7.7 sg16 function to read sectors from
the ATA device but no data came back.After the ioctl is
executed the sense buffer,status,device_status contains
data so there is a problem but I don't know what kind.For
instance the identify command works,so I can not read,and
probably write sectors.It is not possible to read sectors
with SG_IO ? and how ?
Thanks
Kantor
____________________________________________________________________________________
Check out the hottest 2008 models today at Yahoo! Autos.
http://autos.yahoo.com/new_cars.html
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-10-09 6:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-09 6:42 can't read sectors with SG_IO Kantor Zsolt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).