Boot offset modification



Frankie Lai
07-09-2005, 09:24 PM
Hi,

I would like modify the MBR location on the harddisk, there is no problem
about the offset modification on BIOS. However, I would like to inform that
what I have to do on XPE part?

Thank you so much.

Frankie Lai
Shanda Entertainment
SDO Development Department

Slobodan Brcin \(eMVP\)
07-09-2005, 09:24 PM
Frankie,

You can place your MBR code in BIOS itself if you want, but partition table is expected to be in first sector. Too many things
depend on this. ntldr, partition drivers, disk management programs.

So basically this can't be done (easily). What is the reason that you need to do this?

Solution for you:
- Modify bios int13 so that CHS and LBA request to sector 0 are internally redirected to sector that you want. (This will trick
programs that use BIOS like ntldr).
- Write disk filter driver or modify disk.sys (sources are in DDK) so that it remap sector 0 to position that you want. This will
trick all windows drivers and programs above it.

Regards,
Slobodan

"Frankie Lai" <lihannian@shanda.com.cn> wrote in message news:%23rWO2V2XFHA.3528@TK2MSFTNGP12.phx.gbl...
> Hi,
>
> I would like modify the MBR location on the harddisk, there is no problem
> about the offset modification on BIOS. However, I would like to inform that
> what I have to do on XPE part?
>
> Thank you so much.
>
> Frankie Lai
> Shanda Entertainment
> SDO Development Department
>
>


Boot offset modification