Find the answer to your Linux question:
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 ...
  1. #1
    Just 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

  2. #2
    Linux Guru Rubberman's Avatar
    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!

  3. #3
    Just Joined!
    Join Date
    Jun 2010
    Posts
    2
    Quote Originally Posted by Rubberman View Post
    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.
    Thanks for the reply.

    this is not a school work. i have this kind of requirement in my project.

    Is there any way (hardware interrupts or anything) which allow us to change ecc code.

    Your help is highly needed.

  4. #4
    Linux Guru Rubberman's Avatar
    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!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...