Answer the question
In order to leave comments, you need to log in
How to deal with media sectors directly in C?
I was wondering how I can access the memory locations of a hard drive or other media such as a USB flash drive using the C language, something like "0xffffff = a".
I've been scouring the internet for 30 minutes now and haven't found anything yet. Somehow they write low-level programs for recovering files, for example.
I understand that in many ways I still do not understand anything, but I think that you have at least some understanding of the issue.
Answer the question
In order to leave comments, you need to log in
read and write directly to / dev / sd * and others like them :) there is no deeper meaning.
then driver troubles begin, which can be unique for each carrier.
Plus, you still won't get access directly to the "iron" sectors anyway. now even in the carrier there is a layer of abstraction from iron. through it, for example, they remap bad sectors in hard drives or spray the write load over different cells in flash drives, etc. etc.
written by guys who studied low-level operations for years, who bought documentation from manufacturers, who gained a lot of experience from application problems, who killed a lot of iron in experimental tests, etc. etc.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question