Re: Recover my XPe image

From: KM (konstmor_at_nospam_yahoo.com)
Date: 08/03/04


Date: Tue, 3 Aug 2004 12:04:55 -0700

Even though I vote for the bootsector.DOS loaded by ntldr solution (the code is definitely really simple and just a few INT 13
calls), there are many solutions as Slobodan mentioned.

In one of "high level" approaches where I did not have a full control of the hardware (could not change partition layout), I had to
go with a quick solution - I just used ntldr to boot another XPe image from the same partition. The second "recovery" image was
loading a set of batch files to *prepare* the main XPe image. Since you are able to change boot.ini through a batch, the entire
procedure is easy to automate (only the procedure initiation is required).

-- 
 Regards,
        KM, BSquare Corp.
> Hi Malvem,
>
> There are too many possible ways to do this.
> Depending on OS that you will use on second partition. (Or no OS at all)
>
> I would make simple ultra short code in asm (<100 bytes compiled) and let ntldr load and execute it as it would try to load DOS.
> This code would use int 13 for reading from second partition and writing to first partition.
>
> If not then you have on your disposal tools like ghost or tools for manipulating SDI file.
>
> Or you can use API functions like CreateFile, ReadFile, and WriteFile from second XPe to copy content of file to volume.
>
> I hope that this will give you some idea that is applicable in your case.
>
> Regards,
> Slobodan
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Do have an opinion on the effectiveness of Microsoft Windows Mobile and Embedded newsgroups?  Let us know!
> https://www.windowsembeddedeval.com/community/newsgroups
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> "Malvem" <velbony@yahoo.com.tw> wrote in message news:54e0dde9.0408030451.3714550f@posting.google.com...
> > Hi Slobodan,
> > Plz tell me more detail.
> > reimage? How to reimage?
> >
> >
> > Regards,
> > Malvem
> >
> >
> > "Slobodan Brcin \(eMVP\)" <sbrcin@ptt.yu> wrote in message news:<erZZaEIeEHA.720@TK2MSFTNGP11.phx.gbl>...
> > > Hi Malven,
> > >
> > > If you want it to look nice then hardly if not:
> > > Make multi OS boot.ini.
> > >
> > > On second partition place recovery OS that will reimage first partition. (Yuk.)
> > >
> > > Regards,
> > > Slobodan
> > >
> > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > > Do have an opinion on the effectiveness of Microsoft Windows Mobile and Embedded newsgroups?  Let us know!
> > > https://www.windowsembeddedeval.com/community/newsgroups
> > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>


Relevant Pages

  • Re: Location of EWF overlay "flags" in disk partition?
    ... Hi Slobodan, ... system may actually use overlay data on reboot instead of always restoring ... KM listed in hopes of being able to navigate to the partition and watch the ... After BIOS, MBR, and FS boot sector are done executing ntldr is loaded ...
    (microsoft.public.windowsxp.embedded)
  • Re: hibernation file location
    ... If a disk controller driver was copied to system partition (where NTLDR, BOOT.INI, and NTDETECT.COM reside), and renamed as NTBOOTDD.SYS, then NTLDR would be able to read a kernel and drivers from the boot partition on a drive connected to that controller, even if the controller didn't have a BIOS. ... IIRC the NTBOOTDD.SYS driver is only loaded if the the ARC path in the boot.ini file uses the SCSI or SIGNATURE format when specifying the system drive. ... This actually makes sense because the hiberfile contains all of the boot driver stacks and there would be no need to load the NTBOOTDD.SYS driver when resuming from hibernation. ...
    (microsoft.public.development.device.drivers)
  • Re: hibernation file location
    ... If a disk controller driver was copied to the system partition (where NTLDR, BOOT.INI, and NTDETECT.COM reside), and renamed as NTBOOTDD.SYS, then NTLDR would be able to read a kernel and drivers from the boot partition on a drive connected to that controller, even if the controller didn't have a BIOS. ... Thinking about the generalities of the BOOT.INI file, specifying a number of controllers and drives and partitions, I'm still trying to figure out how NTLDR could load drivers for all of those controllers when all of the drivers had to be given the same filename NTBOOTDD.SYS. ...
    (microsoft.public.development.device.drivers)
  • Re: hibernation file location
    ... If a disk controller driver was copied to system partition (where NTLDR, ... actually makes sense because the hiberfile contains all of the boot driver ...
    (microsoft.public.development.device.drivers)
  • Re: Bootfiles suddenly missing (NTLDR,...); CONVERT dont work
    ... This message is included in Partition boot record and not in MBR. ... ntldr is always read from original partition since ewf_ntldr is the first program that start using overlay data for loading other ... in some cases it's impossible to restore a EWF-level (how to do if NTLDR ...
    (microsoft.public.windowsxp.embedded)