LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices



Reply
 
Search this Thread
Old 06-22-2010, 02:13 PM   #1
Discover07
LQ Newbie
 
Registered: May 2010
Posts: 2

Rep: Reputation: 0
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
 
Old 06-22-2010, 05:22 PM   #2
jefro
Guru
 
Registered: Mar 2008
Posts: 12,093

Rep: Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521
Do you mean checksum or md5 or shal. ECC is for memory not files (lest I never heard of that).
 
Old 06-25-2010, 07:07 AM   #3
Discover07
LQ Newbie
 
Registered: May 2010
Posts: 2

Original Poster
Rep: Reputation: 0
Hi jefro,

http://www.eurekatech.com/products/memory/NAND_Flash_faq.htm#11
I am talking about this.
 
Old 06-25-2010, 08:55 AM   #4
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,478
Blog Entries: 4

Rep: Reputation: 1526Reputation: 1526Reputation: 1526Reputation: 1526Reputation: 1526Reputation: 1526Reputation: 1526Reputation: 1526Reputation: 1526Reputation: 1526Reputation: 1526
Hi,

Quote:
Originally Posted by Discover07 View Post
Why?

The link above is still related to memory. Manipulation of the correction would conflict with the controller.
 
Old 06-25-2010, 04:25 PM   #5
jefro
Guru
 
Registered: Mar 2008
Posts: 12,093

Rep: Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521
I agree. What are you trying to do.


ECC is normally on server memory. It is special memory with a chip either registered or not. That chip along with the onboard memory controller and extra lines compute and keep track of memory.

It's function is to read and write the correct data. Changing the correction to some other number would leave data in an address space as untrusted. The checksum would be used to try to recover that data to the checksum value not the memory address location's data.
 
  


Reply

Tags
disk, ecc, flash, hard


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to edit linux kernel source code in MS Visual Studio? urfi Programming 13 04-28-2010 02:00 PM
Could be interesting while EDIT to have CODE icon too frenchn00b LQ Suggestions & Feedback 5 01-13-2010 10:09 AM
when we edit a post, it would be nice to have both QUOTE and CODE frenchn00b LQ Suggestions & Feedback 2 07-27-2009 09:36 AM
How to view and edit source code of a program? Metal_Merlin Linux - Newbie 3 05-03-2008 01:15 AM
How do i edit code in Suse 9.1 pro mesaman1553 Linux - Software 2 10-14-2004 09:02 PM


All times are GMT -5. The time now is 10:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration