Hi!

> the corresponding code snippet from FDISK, where offsets >= 0x1BE
> are filled with zeros  by design (second do/while loop). Does anyone
> (Eric?) know the reason?

Sounds okay if you only want the MBR code and not the partition
table, but of course you also zap the 55 aa "this is bootable"
sign at the end with this masking. Good intention bad result...

Especially bad result for people who think that backing up
their MBR would also backup the beginning of their partition
table, of course. So I suggest to stop masking :-)

> void Save_MBR()
...
>   int index=0;
...
>   do
>     {
>     fputc(sector_buffer[index],file_pointer);
>     index++;
>     }while(index<0x1be);
>
>   do{
>     fputc(0,file_pointer);
>     index++;
>     }while(index<512);
...



-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user

Reply via email to