ok used osrbang let it write a dump
booted using an iso and copied the pagefile.sys to some place
rebooted normally and let savedump.exe write the memory.dump
and examined the pagefile.sys in xpsp3vm the PAGEDUMP signature exists
and if you supply that pagefile.sys via -zp you get corrupt error as
it seems to be checking for
PAGE.DMP hexing the header bytes
there seems to be no apparent error but not sure how it is going to work
a session of
-z memory.dmp
versus
-z memeory.dmp -zp mod_pagefile.sys
doesnt show any noticeable difference in the few minutes i poked around
here is the error where the PAGE.DMP is comapred to PAGEDUMP
00A1FB48 0104F268 USER32.MessageBoxW
00A1FB4C 002A03B0 hOwner = 002A03B0 ('WinDbg:6.12.0002.633
X86 ',class=‘WinDbgFrameClass’)
00A1FB50 01071F80 Text = “Unable to use ‘pagefile.sys’,
Win32 error 0n1392…The file or directory is corrupted and
unreadable.”
00A1FB54 01076280 Title = "WinDbg:6.12.0002.633 X86 "
00A1FB58 00002040 Style = MB_OK|MB_ICONASTERISK|MB_TASKMODAL
Memory map, item 35
Address=00920000
Size=00010000 (65536.)
Owner= 00920000 (itself)
Section=
Type=Map 00041002
Access=R
Initial access=R
Mapped as=\Device\HarddiskVolume4\windbg\pagefile.sys
Handles, item 44
Handle=000000B4
Type=File (sys)
Refs= 2.
Access=00120089 SYNCHRONIZE|READ_CONTROL|READ_DATA|READ_EA|READ_ATTRIBUTES
Info=Size 209715200. (0C800000) bytes
Name=f:\windbg\pagefile.sys
00920000 50 41 47 45 44 55 4D 50 0F 00 00 00 28 0A 00 00 PAGEDUMP…(…
00920010 00 90 03 00 00 00 00 81 C0 B1 55 80 58 13 56 80 .?..???U?XV?
022730A6 |. F3:A7 REPE CMPS
DWORD PTR ES:[EDI], DWORD PTR DS:[ESI]
ECX=00000002 (decimal 2.)
DS:[ESI]=[00920000]=45474150
ES:[EDI]=[020497B0]=45474150
dbgeng.AddTargetInfoFile+0A6
ECX=00000001 (decimal 1.)
DS:[ESI]=[00920004]=504D5544 DUMP
ES:[EDI]=[020497B4]=504D442E .DMP
dbgeng.AddTargetInfoFile+0A6
80070570
!error 80070570
Error code: (HRESULT) 0x80070570 (2147943792) - The file or directory
is corrupted and unreadable.
On 11/8/12, raj_r wrote:
> oops like i said i am rusty
> the pagefiles that have PAGEDUMP or PAGEDU64 were probably pagefiles
> that were carved out from crashed systems before rebooting they all
> had a valid dump header of one page iirc
>
> the normal pagefile (not sure but i just booted an iso in a vm and
> scooped out a pagefile and rebooted normally and loaded the scooped
> out pagefile.sys in a hexeditor and i find it doesnt have any header
> at all the first 1000 bytes are empty
>
> ill see what is the pagefile status is when i do a blue screen and post
> back
>
> On 11/8/12, raj_r wrote:
>> iirc the major change is you need the header to be PAGE.DMP instead of
>> PAGEDUMP or PAGEDU64 which is default for 32 / 64 bit
>>
>>
>> refer IDebugClient4::AddDumpInformationFileWide method
>>
>> Type [in]
>> Specifies the type of the file in FileName or FileHandle. Currently,
>> only files containing paging file information are supported, and Type
>> must be set to DEBUG_DUMP_FILE_PAGE_FILE_DUMP.
>>
>> you can try reading
>> http://computer.forensikblog.de/en/2006/03/dmp-file-structure.html
>> http://computer.forensikblog.de/en/2008/02/64bit-crash-dumps.html
>> as i havent played with page file and windbg recently to recollect much
>>
>>
>>
>> On 11/8/12, George M. Garner Jr.
>> wrote:
>>> Windbg documents the existence of a -zp command which may be used to add
>>> a pagefile to the debug context. The documentation states enigmatically
>>> that “only specially-modified page files can be used.” But nowhere do I
>>> find more specific instructions on how to modify a pagefile for use with
>>> windbg. Would someone please elaborate on how, specifically, pagefiles
>>> may be used with windbg?
>>>
>>> Regards,
>>>
>>> George.
>>>
>>> —
>>> WINDBG is sponsored by OSR
>>>
>>> For our schedule of WDF, WDM, debugging and other seminars visit:
>>> http://www.osr.com/seminars
>>>
>>> To unsubscribe, visit the List Server section of OSR Online at
>>> http://www.osronline.com/page.cfm?name=ListServer
>>>
>>
>