A computer components & hardware forum. HardwareBanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » HardwareBanter forum » General Hardware & Peripherals » Storage (alternative)
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Copy with verify per block



 
 
Thread Tools Display Modes
  #1  
Old November 18th 07, 01:49 PM posted to comp.sys.ibm.pc.hardware.storage
Richard Foersom
external usenet poster
 
Posts: 1
Default Copy with verify per block

With Windows (2000 or XP) is there a way to perform verify and rewrite
as part of copy operations?

What I am looking for is some option where for each e.g. 1MB written it
is check read and rewritten in case of error.

On command line I have tried copy with option /v. This seems to verify
after complete copy. Errors are reported but there are no retry of
writing the blocks found to be wrong.

If not part of Windows is there some utility with copy operation like
that I can use?

This is to debug an unreliable interface not a faulty drive.

TIA, Richard
  #2  
Old November 18th 07, 02:22 PM posted to comp.sys.ibm.pc.hardware.storage
Arno Wagner
external usenet poster
 
Posts: 2,796
Default Copy with verify per block

Previously Richard Foersom wrote:
With Windows (2000 or XP) is there a way to perform verify and rewrite
as part of copy operations?


What I am looking for is some option where for each e.g. 1MB written it
is check read and rewritten in case of error.


On command line I have tried copy with option /v. This seems to verify
after complete copy. Errors are reported but there are no retry of
writing the blocks found to be wrong.


If not part of Windows is there some utility with copy operation like
that I can use?


This is to debug an unreliable interface not a faulty drive.


TIA, Richard


One thing is that this would have to be implemented on a very
low level, maybe the hardware driver. Otherwise it will just
get the date from the buffer-cache and not the device in the
verify. Come to think of it, the /v may very well also get
the copy from the buffer-cache unless the file is larger than
avaliable memory.

As to rewrite on error, I don't think this is available anywhere,
except maybe space-probes and some archiving storage
solutions. Ordinarily write errors are so rare, that typically they do
not call for rewite, but for unit replacement. Also there are many
reasons why a re-write is not a good error recovery strategy. One
exception is some tape technologies, that will verify-read written
blocks with a second head and write again to a different place on the
tape. An other one is MOD drives, were again, the drive does verify
each write and does reallocation and re-write in case of a marginal
read signal. These technologies are designed for long-term storage (I
have an MOD drive) and the error-resilience is implemented in the
drive. The OS never gets to see it, as it typically cannot do this.

As to your problem, I think you may have to disable or bypass the
buffer cache. I am not even sure that is possible. There may be
some option to use a ''raw'' device. An alternative is
to write files so large that they do not fit into memory and then
re-read them.

Arno
  #3  
Old November 18th 07, 06:23 PM posted to comp.sys.ibm.pc.hardware.storage
Folkert Rienstra
external usenet poster
 
Posts: 1,297
Default Copy with verify per block

Richard Foersom wrote in
With Windows (2000 or XP) is there a way to perform verify and rewrite
as part of copy operations?

What I am looking for is some option where for each e.g. 1MB written it
is check read and rewritten in case of error.

On command line I have tried copy with option /v. This seems to verify
after complete copy. Errors are reported but there are no retry of
writing the blocks found to be wrong.

If not part of Windows is there some utility with copy operation like
that I can use?


This is to debug an unreliable interface not a faulty drive.


Assuming IDE, make sure it runs in UDMA mode.
The interface will not be allowed to corrupt the data.


TIA, Richard

  #4  
Old November 18th 07, 07:16 PM posted to comp.sys.ibm.pc.hardware.storage
Alvin Andries
external usenet poster
 
Posts: 6
Default Copy with verify per block


"Richard Foersom" wrote in message
...
With Windows (2000 or XP) is there a way to perform verify and rewrite
as part of copy operations?

What I am looking for is some option where for each e.g. 1MB written it
is check read and rewritten in case of error.

On command line I have tried copy with option /v. This seems to verify
after complete copy. Errors are reported but there are no retry of
writing the blocks found to be wrong.

If not part of Windows is there some utility with copy operation like
that I can use?

This is to debug an unreliable interface not a faulty drive.

TIA, Richard


Why don't you write your own copy program that
1) copies 1MB of data
2) flushes the I/O
3) reads the 1MB from the destination file and compares it
4) repeats until all data is copied?

Regards,
Alvin.


  #5  
Old November 19th 07, 07:02 AM posted to comp.sys.ibm.pc.hardware.storage
Arno Wagner
external usenet poster
 
Posts: 2,796
Default Copy with verify per block

Previously Alvin Andries wrote:

"Richard Foersom" wrote in message
...
With Windows (2000 or XP) is there a way to perform verify and rewrite
as part of copy operations?

What I am looking for is some option where for each e.g. 1MB written it
is check read and rewritten in case of error.

On command line I have tried copy with option /v. This seems to verify
after complete copy. Errors are reported but there are no retry of
writing the blocks found to be wrong.

If not part of Windows is there some utility with copy operation like
that I can use?

This is to debug an unreliable interface not a faulty drive.

TIA, Richard


Why don't you write your own copy program that
1) copies 1MB of data
2) flushes the I/O
3) reads the 1MB from the destination file and compares it
4) repeats until all data is copied?


This will still read from cache.

Arno


  #6  
Old November 20th 07, 07:06 PM posted to comp.sys.ibm.pc.hardware.storage
Alvin Andries
external usenet poster
 
Posts: 6
Default Copy with verify per block


"Arno Wagner" wrote in message
...
Previously Alvin Andries

wrote:

"Richard Foersom" wrote in message
...
With Windows (2000 or XP) is there a way to perform verify and rewrite
as part of copy operations?

What I am looking for is some option where for each e.g. 1MB written it
is check read and rewritten in case of error.

On command line I have tried copy with option /v. This seems to verify
after complete copy. Errors are reported but there are no retry of
writing the blocks found to be wrong.

If not part of Windows is there some utility with copy operation like
that I can use?

This is to debug an unreliable interface not a faulty drive.

TIA, Richard


Why don't you write your own copy program that
1) copies 1MB of data
2) flushes the I/O
3) reads the 1MB from the destination file and compares it
4) repeats until all data is copied?


This will still read from cache.

Arno


Can't you flush the cache like "sync" under UNIX? I think I recall a command
to do this for removable storage.

Alvin.


  #7  
Old November 20th 07, 09:38 PM posted to comp.sys.ibm.pc.hardware.storage
Eric Gisin
external usenet poster
 
Posts: 308
Default Copy with verify per block

"Alvin Andries" wrote in message
...

"Arno Wagner" wrote in message ...

Why don't you write your own copy program that
1) copies 1MB of data
2) flushes the I/O
3) reads the 1MB from the destination file and compares it
4) repeats until all data is copied?


This will still read from cache.

Arnie is a certified moron.

In Windows, use FILE_FLAG_NO_BUFFERING to bypass the OS cache.
However, the disk can still read from the cache (several MB now),
and only SCSI has an option to bypass the cache on reads. Does SATA2?

Can't you flush the cache like "sync" under UNIX? I think I recall a command
to do this for removable storage.


Safe Removal, or SysInternal's sync.


  #8  
Old November 21st 07, 06:17 AM posted to comp.sys.ibm.pc.hardware.storage
Arno Wagner
external usenet poster
 
Posts: 2,796
Default Copy with verify per block

Previously Alvin Andries wrote:

"Arno Wagner" wrote in message
...
Previously Alvin Andries

wrote:

"Richard Foersom" wrote in message
...
With Windows (2000 or XP) is there a way to perform verify and rewrite
as part of copy operations?

What I am looking for is some option where for each e.g. 1MB written it
is check read and rewritten in case of error.

On command line I have tried copy with option /v. This seems to verify
after complete copy. Errors are reported but there are no retry of
writing the blocks found to be wrong.

If not part of Windows is there some utility with copy operation like
that I can use?

This is to debug an unreliable interface not a faulty drive.

TIA, Richard


Why don't you write your own copy program that
1) copies 1MB of data
2) flushes the I/O
3) reads the 1MB from the destination file and compares it
4) repeats until all data is copied?


This will still read from cache.

Arno


Can't you flush the cache like "sync" under UNIX? I think I recall a
command to do this for removable storage.


This does flush the buffer to disk, but does not clear the read cache.
I am not aware of eny command that emties the read cache.

Arno


  #9  
Old November 21st 07, 03:13 PM posted to comp.sys.ibm.pc.hardware.storage
Folkert Rienstra
external usenet poster
 
Posts: 1,297
Default Copy with verify per block

Arno Wagner wrote in
Previously Alvin Andries wrote:
"Arno Wagner"
wrote in message ...
Previously Alvin Andries
wrote:
"Richard Foersom"
wrote in message ...
With Windows (2000 or XP) is there a way to perform verify and rewrite
as part of copy operations?

What I am looking for is some option where for each e.g. 1MB written
it is check read and rewritten in case of error.

On command line I have tried copy with option /v. This seems to verify
after complete copy. Errors are reported but there are no retry of
writing the blocks found to be wrong.

If not part of Windows is there some utility with copy operation like
that I can use?

This is to debug an unreliable interface not a faulty drive.

TIA, Richard

Why don't you write your own copy program that
1) copies 1MB of data
2) flushes the I/O
3) reads the 1MB from the destination file and compares it
4) repeats until all data is copied?

This will still read from cache.

Arno


Can't you flush the cache like "sync" under UNIX? I think I recall a
command to do this for removable storage.


This does flush the buffer to disk, but does not clear the read cache.


I am not aware of eny command that emties the read cache.


That's nicer words for you being clueless, babblebot.
The system cache is not the problem as long you can bypass it.


Arno

  #10  
Old November 22nd 07, 11:12 AM posted to comp.sys.ibm.pc.hardware.storage
R.Wieser
external usenet poster
 
Posts: 22
Default Copy with verify per block


Folkert Rienstra schreef in berichtnieuws
ws.net...

Can't you flush the cache like "sync" under UNIX? I think I recall a
command to do this for removable storage.


This does flush the buffer to disk, but does not clear the read cache.


I am not aware of eny command that emties the read cache.


That's nicer words for you being clueless, babblebot.
The system cache is not the problem as long you can bypass it.


Dear Folkert,

Although your claim is quite true its allso quite worthless to the
poster(s), in more ways than one :

Apart from making it look like you know something the poster(s) do(es) not,
*but not posting that information*, you allso use a condition in your
statement that could, for all we know, evaluate to "false".

You seem to have no problem with defining the a poster as "clueless". But
than how should we define you ? Especially when seeing that your
bad-mouthing is your *only* response in this thread.

Regards,
R.Wieser



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
failing to verify Craig Homebuilt PC's 35 July 2nd 07 02:39 PM
Game Copy Pro - video games,copy ps2, psx, pc, and dreamcast rachael goddard Cdr 0 December 13th 06 01:18 PM
how to verify P3 laptop CPU Sam Dell Computers 13 September 5th 05 09:36 PM
Nero 6 - Copy on the fly, quick copy---Can someone test this and save log file?, tryitoz Joe Donaldson Cdr 0 January 6th 04 04:36 AM
AIW 9000 pro? still block copy gaurd John Smallberries Ati Videocards 1 October 24th 03 11:37 PM


All times are GMT +1. The time now is 04:28 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 HardwareBanter.
The comments are property of their posters.