[HwoTo] Write boot sector of disk directly?

14/12/2003 - 16:19 por Frank | Informe spam
Hi,everyone

My boss give me a task that write boot and file system info holder sectors
of disk by programme directly, for instance language c.

I have read some stuffs of structure details of file system storaged in
severl header sectors of disk. My task and work is write and modify such
sectors. But I am a perfect newbie on that,so please give me some
suggestions for implement it. And any reply is appreciated :p

Very thanx :-]
Frank


Frank F.Han

+--+
| winsays@:-)hotmail:-).com |
+--+

Preguntas similare

Leer las respuestas

#1 Don Burn
14/12/2003 - 16:49 | Informe spam
What does your boss think he will achieve by writing to these? There is a
high probability of making the data on the disk unusable. Tell us what the
goal is here and then a safe solution may suggest itself.


Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Remove StopSpam from the email to reply

"Frank" wrote in message
news:
Hi,everyone

My boss give me a task that write boot and file system info holder sectors
of disk by programme directly, for instance language c.

I have read some stuffs of structure details of file system storaged in
severl header sectors of disk. My task and work is write and modify such
sectors. But I am a perfect newbie on that,so please give me some
suggestions for implement it. And any reply is appreciated :p

Very thanx :-]
Frank


Frank F.Han

+--+
| winsays@:-)hotmail:-).com |
+--+


Respuesta Responder a este mensaje
#2 Jochen Kalmbach
14/12/2003 - 18:04 | Informe spam
CreateFile("A:\\");
CreateFile("PhysicalDisk0"); (see Docu of CreateFile)

and then WriteFile


Greetings
Jochen

Do you need a memory-leak finder ?
http://www.codeproject.com/tools/leakfinder.asp
Respuesta Responder a este mensaje
#3 Frank
15/12/2003 - 08:02 | Informe spam
Hi, Jochen

Very thanx for ur reply, would u tell me if it is possible for accessing
boot and FAT, MFT,...,etc sectors of hard disk? My boss let me modify them
by programming(with language c) under platform win9x/nt/2k/xp/2k3. Thanx
very very... much!! :p

Frank :p


"Jochen Kalmbach" дÈëÏûÏ¢ÐÂÎÅ
:
CreateFile("A:\\");
CreateFile("PhysicalDisk0"); (see Docu of CreateFile)

and then WriteFile


Greetings
Jochen

Do you need a memory-leak finder ?
http://www.codeproject.com/tools/leakfinder.asp
Respuesta Responder a este mensaje
#4 Jim
17/12/2003 - 22:38 | Informe spam
Anyone ever try to read say a compact flash this way? The calls always
succeed and you never know when the end of the media is reached or am I
missing something. The data does appear to be read but when the end of the
media is reached junk instead of an error, 0 bytes read etc. seems to be
returned.

"Jochen Kalmbach" wrote in message
news:
CreateFile("A:\\");
CreateFile("PhysicalDisk0"); (see Docu of CreateFile)

and then WriteFile


Greetings
Jochen

Do you need a memory-leak finder ?
http://www.codeproject.com/tools/leakfinder.asp
email Siga el debate Respuesta Responder a este mensaje
Ads by Google
Help Hacer una preguntaRespuesta Tengo una respuesta
Search Busqueda sugerida