Search Results

Search: Posts Made By: sponnusa
Forum: Programming 03-04-2010
10,904
Posted By sponnusa
The approach which I have tried in Windows that...
The approach which I have tried in Windows that works is by opening the device directly as a file (using the PhysicalDrive# handle) and start issuing read / write commands, which returns failure for...
Forum: Programming 03-03-2010
10,904
Posted By sponnusa
I guess, we are debating on what I wrote on this...
I guess, we are debating on what I wrote on this thread rather. I had mentioned that I wanted to zero fill a drive in my first post.

Let's not go over into frenzy again! :)

I am able to do it...
Forum: Programming 03-02-2010
10,904
Posted By sponnusa
My requirement is simple. I want to zero...
My requirement is simple.

I want to zero fill a drive before I do "something" to it.

I want to know how many bad sectors on it as my decision of doing "something" is dependent on it.
...
Forum: Programming 03-02-2010
10,904
Posted By sponnusa
Updates!! :( Unfortunately, even the SG_IO...
Updates!! :(

Unfortunately, even the SG_IO method of sending write command (technically they are SAT commands, though the core is ATA commands) could not be failed for a bad sector.

I have...
Forum: Programming 02-24-2010
10,904
Posted By sponnusa
I guess I'm gonna try that. Will update soon....
I guess I'm gonna try that. Will update soon. thanks

---------- Post updated 02-24-10 at 11:30 AM ---------- Previous update was 02-23-10 at 08:15 PM ----------

Based on Corona688 suggestion, I...
Forum: Programming 02-23-2010
10,904
Posted By sponnusa
Thanks for the link. Will look into the sleuth...
Thanks for the link. Will look into the sleuth kit's sources.

I don't want to do an ATA transfer, but would like transfer the data at a higher level. :)
Forum: Programming 02-23-2010
10,904
Posted By sponnusa
I feel that the implementation is manufacturer...
I feel that the implementation is manufacturer and model specific in most of the cases I've seen so far. Also, the revision of ATA specs the drive implements. Older the drive, the longer it takes on...
Forum: Programming 02-22-2010
10,904
Posted By sponnusa
thanks. Will try the linux kernel mailing lists. ...
thanks. Will try the linux kernel mailing lists.

Regarding the device interfacing, my requirement deals with a set of data transfers, either be in DMA or PIO mode (for older hdds), in the current...
Forum: Programming 02-22-2010
10,904
Posted By sponnusa
Wow! It's all I can say! That was a...
Wow! It's all I can say!

That was a fantastic reply straight to temple! :)

Yup! I read about the Libata stuff implementation and got to know that I cannot implement it in a program as you have...
Forum: Programming 02-22-2010
10,904
Posted By sponnusa
yep. you are right. For (IDE) PATA / SATA...
yep. you are right. For (IDE) PATA / SATA (t13.org) disks there are the ATA / ATAPI standards which specifies how to query the device directly and SCSI has a loads of standards (t10.org) for...
Forum: Programming 02-21-2010
10,904
Posted By sponnusa
okey. will try posix_fadvise() now.
okey. will try posix_fadvise() now.
Forum: Programming 02-21-2010
10,904
Posted By sponnusa
Yes. I have tried the read call. It does not...
Yes. I have tried the read call. It does not return a failure for the read operation on bad sectors.

It returns success. It says it had read the amount of data I request for.

The only way I...
Forum: Programming 02-21-2010
10,904
Posted By sponnusa
thank you. So, there is no way around it...
thank you.

So, there is no way around it without writing a device driver to handle the read/write operations? Is that right?

I have a utility written in python which able to identify the bad...
Forum: Programming 02-21-2010
10,904
Posted By sponnusa
read passes too. It does not return error until...
read passes too. It does not return error until the device itself fails.

I just want to catch / count the read / write I/O errors from the program.

With the read atleast i can identify by...
Forum: Programming 02-21-2010
10,904
Posted By sponnusa
Here is the code which I am using. int...
Here is the code which I am using.

int writesector(const uint64_t offset, const int fd, const uint8_t *mybuff, const uint16_t len)
{
if(!fd)
{
return 4;
}
errno = 0;
...
Forum: Programming 02-21-2010
10,904
Posted By sponnusa
I wanted the write to fail only for the bad...
I wanted the write to fail only for the bad sectors, but it was failing for all the sectors in the O_DIRECT mode, but I got a working program. (Well, working means, I was able to write to the...
Forum: Programming 02-21-2010
10,904
Posted By sponnusa
thanks for the reply. I know O_DIRECT might...
thanks for the reply.

I know O_DIRECT might work, and I tried with O_DIRECT, but it fails for some reason. I have tried with aligned the write buffer after getting the block size from the HDD. But...
Forum: Programming 02-21-2010
10,904
Posted By sponnusa
write() issue during a low level hdd access
Hi,

I am trying to write zeroes to the hdd using a c program. I don't want to use the dd or ddrescue or any such inbuilt program because of reasons like real time progress, writing custom...
Showing results 1 to 18 of 18

 
All times are GMT -4. The time now is 01:06 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy