Re: hibernation file location



"Don Burn" wrote:
I guess I am trying to understand why you think this works? The hiberfile
is written by OS using the dump file mechanism and has nothing to do with
int 13h. I have not looked at the startup so this may have value here, but
when the system is running it is going to doing the hiberfile to boot disk.

With XP and 2K the hiberfile is read into memory by NTLDR which can only
access the file via ROMBIOS int 13h. Of course when the OS is running it
could write the file onto any drive during hibernation. NTLDR only searches
for the hiberfile on the actual boot drive so writing it anywhere else would
appear to make it inaccessible.

Though it is common to load the non-bootstrap components of the OS from a
non-int 13h accessible drive using an ntbootdd.sys mini-port driver, I am
assuming NTLDR doesn't search anything other than the actual boot drive since
the presence of a valid hiberfile prevents boot.ini from being processed and
thus any information about the actual system drive would not be available.

A good overview of how NTLDR processes the hiberfile can be found in chapter
5 of "Windows Internals 4th edition".

I doubt the int 13h on restart even, since with Vista Microsoft allows
filter drivers on the hiberfile read / write path. I have not seen the
spec on how the filters are done, so I do not know whether a filter could
change the drive.

I suspect that the changes to Vista necessary to support BitLocker and BCD
would allow Vista to locate the hiberfile on any drive but I doubt Microsoft
would document such behavior because it would be a giant security hole on a
BitLocker system.

Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr
Remove StopSpam to reply

"John Hensley" <resqware@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:B65D5E48-5C19-4F5C-8FCF-009B7446BB7F@xxxxxxxxxxxxxxxx
These suggestions are based on the assumption that you only want to do
this
on your own co

It is possible to trick Windows into using a second drive to hold the
hiberfile if the second drive is accessable through the ROMBIOS int 13h
interface at boot time.

If the ROMBIOS supports booting from the second drive you will only need
to
put the bootstrap files from root directory of the original boot onto the
second drive, update the boot.ini file on the second drive so that it
loads
Windows from the first drive and then change the ROMBIOS to boot from the
second drive.

If the ROMBIOS does not support booting from the second drive you can
still
might be able to make it work by putting a BOOTSEC.DAT file on the boot
drive
containing a modified boot sector from the boot partition on the second

--
John Hensley
www.resqware.com


"Andrew Sha" wrote:

Is there a way to re-assign the hibernation file to be located on a hard
drive that is not the system (boot) one?

TIA



.



Relevant Pages

  • Re: hibernation file location
    ... when the system is running it is going to doing the hiberfile to boot disk. ... Windows 2k/XP/2k3 Filesystem and Driver Consulting ... If the ROMBIOS supports booting from the second drive you will only need ...
    (microsoft.public.development.device.drivers)
  • Re: hibernation file location
    ... prompt with administrator privileges you will see the hiberfile and it's ... interface at boot time. ... If the ROMBIOS supports booting from the second drive you will only need ... put the bootstrap files from root directory of the original boot onto the ...
    (microsoft.public.development.device.drivers)
  • [Git pull] x86 update
    ... x86 boot: document for 32 bit boot protocol ... +LinuxBIOS, etc, and kexec, the 16-bit real mode setup code in kernel ... int fix, num; ...
    (Linux-Kernel)
  • RE: windows xp "cmdcons"
    ... from the root directory of your hard drive. ... I don't know if there is a way to enter the ROMBIOS setup on your ... alternate boot environment like cmdcons and adds it to the boot menu, ... "John Hensley" wrote: ...
    (microsoft.public.windowsxp.setup_deployment)
  • Re: external eSata enclosure drive recognition?
    ... what the "main chip" is, but I guess that depends on the nature of the card). ... Probes by the BIOS, to the configuration space of the SIL3132, will ... If the above BIOS chip, has INT 0x13 code present, then that storage card ... SIL3132 cannot be used to boot the computer. ...
    (microsoft.public.windowsxp.hardware)