Re: Read the header of a disk sector
Welcome to the forums
Originally Posted by magmaman42
If i understand you correctly.....
I'm looking for a low-level linux program that I can use to read the header of a disk sector. I have an idea that dd might do it, but I'm not sure and I've been googling for a while. I'd like to be able to read the various pieces of information in that header: address identification, header parity bytes, etc.
I think most of this is handled by the drives firmware and, therefore, is proprietary.
I'm not sure if dd will do the job here.
I'm not sure if it will get the ECC parity information and sector addresses you are after as this information wraps the sector.
I believe dd will just pull the information from the/a sector it is currently looking at without the header and parity information. (I am open to correction here though).
If you can find a tool to do the job your require then it should be file system independent as this is at a very low level indeed on the platters and is the information that wraps the sectors telling the drives firmware where the sectors are and the ECC checksum for error correction.
Also, will my ability to do this be affected by the type of file system I use? e.g., a journaling file system or otherwise?
I'm intrigued and i am also Googling to see if there is some software you can use under Linux.
I'll post back if i find any.
If you believe everything you read, you better not read. ~ Japanese Proverb
If you don't read the newspaper, you're uninformed. If you read the newspaper, you're mis-informed. - Mark Twain