Results 1 to 4 of 4
Hi , can I change the ECC code for a block of a file stored on a flash drive by any means ? of a file stored on a HDD ...
- 06-21-2010 #1Just Joined!
- Join Date
- Jun 2010
- Posts
- 2
how to Edit ECC code
Hi , can I change the ECC code for a block of a file stored on a flash drive by any means ? of a file stored on a HDD (though I don't think there would be a difference between the two)
Maybe , through some hardware interrupts or anything like that?
Also if possible I need the solution to be in C/C++.
thanks
- 06-22-2010 #2Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,970
School work? In any case, I'm not sure you can change the ECC code on a disc block as it is usually added and checked by the disc controller. Ie, it is a hardware thingy. Also, helping with school assignments is prohibited in the terms of use for these forums.
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 06-22-2010 #3Just Joined!
- Join Date
- Jun 2010
- Posts
- 2
- 06-22-2010 #4Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,970
Sorry. Never needed to get into block-level ECC code for disc storage, other than in the theoretical aspects of it. Most use Reed-Solomon codes for error correction. ECC RAM usually uses some variety of Hamming codes. It either case, the ECC encoding/decoding is embedded in the controller hardware for performance sake. If you need additional protection, then you could embed a code in a data block with the block I/O device driver software. Is that what you want to do? Note that if you do that, then only your driver, or one that has the same capability, would be able to read the data back.
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!


Reply With Quote
