Radified Community Forums
http://radified.com/cgi-bin/yabb2/YaBB.pl
Rad Community Technical Discussion Boards (Computer Hardware + PC Software) >> Norton Ghost 2003,  Ghost v8.x + Ghost Solution Suite (GSS) Discussion Board >> restore OS from an image to the same drive
http://radified.com/cgi-bin/yabb2/YaBB.pl?num=1153761560

Message started by manman on Jul 24th, 2006 at 12:19pm

Title: restore OS from an image to the same drive
Post by manman on Jul 24th, 2006 at 12:19pm
I think this is not a big deal, but i can't restore my OS:

I made an image using my Ghost 2003 from my OS partition ( G: ).
I re-created this partition (using MMC)
Then, I restored that partition from the image files. And, it didnt work. The Windows started, but froze (the colored screen with Windoes starts appeared, but the logon screen did not).

The letter assigned remain the same - G:

The image files are not corrupt (I have 2 sepparate images, and the behaviour is the same)

Also the harddisk is the same. The number of the partitions is differrent (i.e. I deleted another partition). But I repeat, the letter asigned to OS partition is the same.

What can I do? I have many programmes installed there.

Thank you




Title: Re: restore OS from an image to the same drive
Post by NightOwl on Jul 24th, 2006 at 12:45pm
manman


Quote:
I re-created this partition (using MMC)

Not sure what you are referring to--best not to use *abbreviations* until after you identify what they refer to.


Quote:
The number of the partitions is differrent

The boot process has two steps that are critical--and changing the *layout* of your system may muck this up:

1.  *boot.ini* has to point to the correct *partition*--that's probably where the problem is if you have changed the number of partitions.

2.  Once the boot process finds the correct partition from *boot.ini*, then the drive letter assignment has to correspond to what the OS registry points to.

What capabilities do you have?--

Are you able to create DOS boot disks and run DOS utilities?

Do you have PartitionMagic's DOS boot and program disks?  

Do you have another WinXP system where you can create WinXP boot disks (floppies)?  

Can you boot your system from floppies?

Title: Re: restore OS from an image to the same drive
Post by manman on Jul 24th, 2006 at 1:08pm
Thank you.

Soryy for MMC = Microsoft Management Console

The system is booting from the correct partition simply because I have only 2 hard disks:

HDD1: 3 partitions, the OS1 on the third - here is the problem
HDD2: 3 partitions, the OS2 on first - functional

When the system is booting, I press on "Microsoft Windows XP Professional" line. The corresponding line of the boot.ini is:

multi(0)disk(0)rdisk(0)partition(3)\WINDOWS="Microsoft Windows XP Professional" /noexecute=optin /fastdetect

(there is no other line in the file labeled like this)

I dont have any other OS on the 3rd partition, on HDD2. So that's why I don't think the cause is boot.ini file.


I have a ghost boot disk (floppy). I have a second OS, completelly functional, on HDD2, with Ghost 2003 installed on it.

And the problem is the system (Windows) is loading, but after some seconds, before the logon screen appearing,the system freeze.

Title: Re: restore OS from an image to the same drive
Post by NightOwl on Jul 24th, 2006 at 2:09pm
manman

So, explain again what you have done--you said you have changed the layout of the HDD that you restored to:


Quote:
The number of the partitions is differrent (i.e. I deleted another partition).

I don't see what you mean by this given your last post.

As far as creating an image and restoring--what was the sequence of procedures--which HDD is the source and the destination in each step?

Were both HDD's hooked up when booted to WinXP?

Did you do the Ghost procedures in DOS vs using the Ghost Windows GUI?

Title: Re: restore OS from an image to the same drive
Post by manman on Jul 24th, 2006 at 2:59pm
OK. Here are the sequence:

(Note: HDD2 remain the same, the OS2 is OK)

State 1:

Harddisk        Partitions
-----------------------------------------
HDD1:         C E F G        OS 1 (functional in this state)
HDD2:         D H I             OS 2 (functional)

Actions :

1. make an image of G;
2. delete E, F, G (using Microsoft Management Console from OS2, but I think it doesnt matter)
3. make 2 new partitons: E G
4. restore the image to the new partition G

So now am I in:

State 2:

Harddisk        Partitions
-----------------------------------------
HDD1:         C F G        OS 1 (with problems)
HDD2:         D H I            OS 2 (functional)

(E is CDROM - doesnt matter, I think)

The boot is OK, the selection screen with OS (from boot.ini) appears; I select OS1 and the system begin to load, the Windows loading screen appears (that screen with the cursor blinking), then the system freeze - it appears blue screen (not BSOD) but without users - just the logo

I think the problem is with the action 4, i.e. the new partition has a different identificator. Nota bene: the HDD1 (the psysical drive) is (remain) the same.

The boot.ini is on C:

I restored using the DOS versions og Ghost; furthetmore, I have 2 versions (images) of the same G, and the behavior is the same.


Title: Re: restore OS from an image to the same drive
Post by Pleonasm on Jul 24th, 2006 at 4:07pm
Manman, I infer that your end-in-mind objective is to reallocate space among partitions on HDD1 (and possibly hide one partition).  If that is the case, then have you considered (A) restoring your system to State 1, and then (B) using Partition Magic to accomplish the objective rather than Ghost?

Title: Re: restore OS from an image to the same drive
Post by manman on Jul 24th, 2006 at 4:33pm
yes, my goal was to reallocate the space between partitions.

But right now I cant restore the system to the state 1, simply because I have an image only for the G partitions.

Yes, I could use PartitionMagic, but, at that moment, I only had Ghost.

At this moment, restore the system to the state 1 manually (i.e. using Partition magic) is not a good solution for me. Reason: my F partition is ~ 90GB of important data. And, you know the rule - you use Partition Magic on your own risk. I could write 90Gb on DVDs but... no time.

Plus, I plan to use Ghost for restoring my system in the case of a drive failure. What on earth I will acomplish that, if, for the same HDD, and the same letter of volume it didint work?

But first I want to make the OS1 functional.

Another thing: on OS1 I have no important data - I want that OS only for installed programs and settings. Furtermore, the files (Program files, documents & settings) are restored, I can copy the files. Can I somehow repair Windows (Repair from WinXP CD) and then have those programs installed and functional?

thanks




Title: Re: restore OS from an image to the same drive
Post by NightOwl on Jul 24th, 2006 at 5:52pm
manman

If you put */SOS* at the end of the line for the problem OS, that eliminates the Windows splash screen during boot, and you might then see the error state that Windows is freezing at:


Quote:
multi(0)disk(0)rdisk(0)partition(3)\WINDOWS="Microsoft Windows XP Professional" /noexecute=optin /fastdetect /SOS


To find out if it's a *boot.ini* partition problem, probably the fastest testing is to create, using your functional WinXP (?) system, a WinXP boot floppy that bypasses the *boot.ini* and other boot files on the HDD.

See here for the outline:  How to use System files to create a boot disk to guard against being unable to start Windows XP.

Here's a *generic*  *boot.ini*:


Quote:
[boot loader]
timeout=10
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /noexecute=optin /fastdetect /SOS


I have created 4 boot floppies using the WinXP format, and not the MS-DOS startup disk option.  Added Boot.ini, NTLDR, and Ntdetect.com to each.   And for each floppy the *partition(x)* in *boot.ini* is incremented by 1--so 1 thru 4--these represent the 4 possible primary partitions that Windows can be booted from on a *standard* boot scenario for Microsoft.  (Alternatively, you can edit the *partition(x)* on a single boot floppy after each boot attempt with numbers 1 thru 4 and then attempt to re-boot after each edit.)

I then boot the system from the boot floppy one at a time until the system boots (if it's going to, at least  ;) !), then I know based on the *boot.ini* that worked, what number belongs in the *boot.ini* that's on the HDD.

I know you are going to argue that you have three partitions and the OS is on the third *physical* partition of the HDD--but--we don't get to see what Disk Management or MMC is doing to the partition table.  Here's the deal--there's 4 primary slots--the order of the partitions in the partition table depend on the order that the partitions were created--and not on the *physical* positions that they exist on the HDD.  I (and you) don't know if after you deleted the two partitions, if Disk Management and/or the HDD's partition table forces the next new partition that's created to go into that 4th position before going back to the first, second, or 3rd position to see if they are in use or available for enumerating the newly created partition.  So, it's possible that your partition table lists the partitions *out of order* relative to their *physical* placement.  And, the partition table order is what *partition(x)* looks at, and not the physical layout!!!!

There are ways to *look* at the partition table to determine if the order is not *sequential*, but that will take more time to explain and test out than the above *quick* test can take.

Results?


Title: Re: restore OS from an image to the same drive
Post by NightOwl on Jul 24th, 2006 at 6:32pm
manman

Here's the information on trouble shooting the partition table to see if it's sequential or *out of sequence*:

Editing the Boot.ini file using BTini

If you look under *Editing Boot.ini*, it explains how to use *PartInfo.exe* to generate a *Diagnostic Report*--after the shown example of the diagnositic report, it outlines how to determine what the actual boot number is that's needed for the *partitition(X)* in the boot.ini file

That *outline* starts after the line *To identify the order in which the primary partitions exist in the MBR, generate a PARTINFO report (see the following example).*.

Under the heading *Obtaining the Boot.ini file*--there's a link to download the program to edit boot.ini called *BTini*, or click the link below:

BTini.zip

***********************************************
There appears to be better tools for editing *boot.ini* now:

The Ghost 9.x and 10.x *Recovery Disk*, I think under *Advanced Utilities* has a *Edit Boot.ini* utility.

And there is a freeware program that can be run from DOS from TeraByte called *EditBINI* found here:

TeraByte Unlimited Freeware--look for EditBINI

***********************************************

You can get *PartInfo for DOS* here:

PartInfo.zip for DOS

and how to use it here:

Generating diagnostic reports using Partinfo.exe

***************************************

This tool may give the needed information faster:

MBRWizard - The MBR utility you've been looking for!

If you run the DOS version from a DOS boot floppy with the command line:  *mbrwizd.exe /list*

The website says this command line will:


Quote:
Display the partitions listed in the MBR, their order in the MBR, partition type, size, and whether active or hidden. The Pos field indicates the order the partitions are laid out on disk, while MBRndx shows them as they're listed in the MBR record.


So, you get one column *Pos* that shows the layout of the partitions on the disk, and a second column *MBRndx* showing the order they appear in the MBR (partition table)--that should be the number needed for the *partition(x)* value.




Title: Re: restore OS from an image to the same drive
Post by Ghost4me on Jul 24th, 2006 at 8:14pm
This may not be the exact answer/solution, but something you should consider.

As others have said, it is *possible* that the partition(number) is or was a factor.  However, at this point I don't think it is.

I believe the problem is that your system boot drive letter has changed.

State 1:

Harddisk        Partitions
-----------------------------------------
HDD1:         C E F G        OS 1 (functional in this state)
HDD2:         D H I             OS 2 (functional)

State 2:

Harddisk        Partitions
-----------------------------------------
HDD1:         C F G        OS 1 (with problems)
HDD2:         D H I            OS 2 (functional)

By deleting your state1 E partition, you have caused the drive letters on HDD1 to change.  Hence although you say, HDD1 is now C F G, I believe it is C E F.  The reason for that is that Windows (Dos, Windows 9x, XP etc) assigns the first partition on the first hard drive as c:, and then IF a second hard drive exists, it's first partition gets D:, then E, F, G, etc are assigned to the 2nd, 3rd, 4th, partitions of HDD1.

Your configuration now is:

HDD1: C E F, where F is your boot drive.

This normally never occurs because by default, c: is the normal boot drive partition and any partition manipulation occurs AFTER the c: partition.  In your case I will bet money that you at one time had a DUAL BOOT system (or maybe had Windows 98 and then created a dual boot system for XP which was put on G: )

To fix it you could/should put a small partition physically after C on HDD1.

The other choice is to run an XP Repair Install.

The other choice is to modify the registry offline (BartPE) something along these lines:

http://support.microsoft.com/kb/223188/  except you are trying to change F: so it says G: ( I think... )

Be sure you have confirmed TESTED backups before experimenting with any of this.

Sorry I don't have all my notes and references handy here now, but wanted to through this out in case you don't resolve it by modifying the boot.ini, as others have suggested.


Title: Re: restore OS from an image to the same drive
Post by Brian on Jul 24th, 2006 at 8:44pm
manman,

See this thread..

http://radified.com/cgi-bin/YaBB/YaBB.cgi?board=general;action=display;num=1140647361;start=

The joys of restoring an OS not on the C: drive.


Title: Re: restore OS from an image to the same drive
Post by NightOwl on Jul 24th, 2006 at 9:11pm
manman

In your first post, you were very emphatic:


Quote:
The letter assigned remain the same - G:

Why did you make that statement?

How are you so sure?

Title: Re: restore OS from an image to the same drive
Post by NightOwl on Jul 25th, 2006 at 1:07am
manman

Found this quote in the *Manual* for the program SavePart--aka Partition Saving that's mentioned in the thread Brian has referenced above:


Quote:
Windows 2000 and XP store partition position in the registry in order to preserve association between a partition and its corresponding driver letter. Partition position is composed of two parts: disk number that is stored into MBR (4 bytes) and offset of first byte of partition on disk (8 bytes).

This means when you changed the partition structure of your HDD1, because the beginning of the partition (partition offset value) was different--so WinXP would see an error and would be forced to *re-calculate* the partition value and *re-assign* drive letters on first boot.

So I concur with Ghost4me that your drive letters are probably now wrong.  (I'm guessing that you used that 2nd OS on HDD2 to assign drive letters--but those drive letter assignments only exist in the registry of that OS on HDD2--that has no effect on the OS registry of HDD1!)

Looks like SavePart--aka Partition Saving could be used to edit the drive letter assignments and you will probably be good to go.

The use of *SavePart* originally came from Dan Goodell's website here under *Method #1*:  Fixing Windows 2000/XP Drive Letters

Title: Re: restore OS from an image to the same drive
Post by Brian on Jul 25th, 2006 at 2:00am
I've used SavePart on one of my test computers and it wasn't as difficult as I expected.

Ghost4me introduced me to RegistryEditiorPE. John, do you think this

http://support.microsoft.com/kb/223188/

could be done with BartPE and the plugin? It can't be done from Windows here as Windows won't boot. Now that would be an interesting alternative to SavePart. The "G: drive" OS would need to be set active to be accessed by BartPE.

Title: Re: restore OS from an image to the same drive
Post by Brian on Jul 25th, 2006 at 2:21am
Dan's Method#2 can easily be done with BartPE and RegistryEditorPE plugin. Actually this is deleting the [MountedDevices] entries after the image has been restored rather than before the image had been created.

http://www.goodells.net/multiboot/partsigs.htm#method2

I think this technique is likely to resolve manman's problem as well.

Title: Re: restore OS from an image to the same drive
Post by manman on Jul 25th, 2006 at 5:24am
Thank you for all posts. I need some time to read & try.
For now, I tried to find out information about partitions. MBRWizard said so:

Disk: 3   Size=117G
Pos MBRndx Type/Name  Size Active Hide Start Sector   Sectors
--- ------ ---------- ---- ------ ---- ------------ ------------
0    0    07-NTFS    6.0G   Yes   No            63   12,289,662
1    1    0F-EXTEND  111G   No    No    12,289,725  227,817,765

(Well, at this moment I have another 3 disks, one with OS2 and another 2 disks, without any OS on them. So, I wont list them here)

It seems to be no problem here.

Thank tou again. I shall post the results.

Title: Re: restore OS from an image to the same drive
Post by manman on Jul 25th, 2006 at 6:46am
Partinfo - results for HDD1:

---------------
I condider myself a power user, I know HTML, but I cant insert yet a simple image !!

this does not work:

Code:

C:\partinfo.gif
C://partinfo.gif


with or without quotas

can i attach files?

in the help i did not find anything. Amazing userfriendliness... :(



Title: Re: restore OS from an image to the same drive
Post by manman on Jul 25th, 2006 at 7:32am
==================================================================================

Disk 0:  117240.0 Megabytes

============================= Partition Information ==============================

Volume        Partition                         Partition        Start     Total

Letter:Label  Type            Status   Size MB  Sector     #     Sector    Sectors

------------- --------------- -------- -------- ---------- - ---------- ----------

             NTFS            Pri,Boot   6000.8          0 0         63   12289662

             ExtendedX       Pri      111239.1          0 1   12289725  227817765

             EPBR            Log       89000.7       None -   12289725  182273490

             NTFS            Log       89000.7   12289725 0   12289788  182273427

             EPBR            Log       22238.4   12289725 1  194563215   45544275

             NTFS            Log       22238.4  194563215 0  194563278   45544212

It seems to be OK until now, isnt it?

Later edit:
I read some of the articles you posted, and I think that the problem is with MBR & offset (and the registry of WinXP). So, I am going to try to change tge registry of the restored image. I hope this work. Thank tou very much for the links.

Title: Re: restore OS from an image to the same drive
Post by NightOwl on Jul 25th, 2006 at 9:16am
manman

You have to have your images hosted online and use that online location to pull in the image with this forum's software.

Several folks have given *thumbs up* to the Photobucket that apparently will host your images for free.

Actually, from your postings above, it *does* appear that you have a partition problem--at least as posted--I'll explain more below.

Here's the *boot.ini* you claim is present on your HDD after restoring the image:


Quote:
multi(0)disk(0)rdisk(0)partition(3)\WINDOWS="Microsoft Windows XP Professional" /noexecute=optin /fastdetect

But both MBRWizard and PartInfo say your primary boot partition is #1, and not #3!  The ARC path in *boot.ini* does not use the alphabetical order of drive letter assignments to determine the boot partition--it uses the order as specified in the MBR partition table.

You never mentioned in your reports of your system that the drive letters are not listed in the order of the physical layout of your HDD partitions.

But, I know for a fact, that Ghost 2003 may edit the *boot.ini* (in the background--and in my opinion *behind my back*!--I can find nowhere in the documentation that this happens--but I have documented it), and Ghost 2003 may adjust the *partition(x)* to be what it needs to be--and it works okay--unless your partition table (like mine) is not in sequential order--then Ghost 2003 can really mess things up!

You need to run this program, TeraByte Unlimited Freeware--look for EditBINI, from DOS and confirm what the *boot.ini* file says.

Based on your posts, it should be *partition(1)*--so, if Ghost 2003 did not change it behind your back (or did not change it correctly), you will need to adjust that--the above program should allow you to edit the *boot.ini*.

But, as mentioned in my reply #12 above, I believe you will also have to deal with drive letters that have been re-assigned.

Report back with the results.

Title: Re: restore OS from an image to the same drive
Post by NightOwl on Jul 25th, 2006 at 9:55am
manman

Do you have any idea what the physical layout of partitions C, E, F, and G were in this *State 1*--and were the partitions *primary* or *logical* in an extended partition?


Quote:
State 1:

Harddisk        Partitions
-----------------------------------------
HDD1:         C E F G        OS 1 (functional in this state)
HDD2:         D H I             OS 2 (functional)

Title: Re: restore OS from an image to the same drive
Post by Ghost4me on Jul 25th, 2006 at 10:00am

Quote:
Based on your posts, it should be *partition(1)*--


NightOwl, I hope I am not adding more confusion here, but I think we're still not in possession of all the pertinent facts.

I think you are not making the correct distinction between the BOOT partition and the OPERATING SYSTEM partition. My understanding (correct me if I'm wrong) is that the active boot partition is the one that contains:
ntldr
ntdetec.com
boot.ini
This is the one that the hardware starts the boot process from.

Normally the Operating System (XP) is also on that same partition, but (as long as those 3 files are on the active one) XP can just as easily be on one of the other partitions! So, you can have the primary boot partition as the first one (C in most cases) and XP on E or F or G (on the same drive).

boot.ini (regardless of which partition it is read from initially) tells the operating system where to CONTINUE from that point forward.

Title: Re: restore OS from an image to the same drive
Post by Ghost4me on Jul 25th, 2006 at 10:08am

Brian wrote on Jul 25th, 2006 at 2:00am:
Ghost4me introduced me to RegistryEditiorPE. John, do you think this

http://support.microsoft.com/kb/223188/

could be done with BartPE and the plugin? It can't be done from Windows here as Windows won't boot. Now that would be an interesting alternative to SavePart. The "G: drive" OS would need to be set active to be accessed by BartPE.


As I mentioned, the registry edit has to be done "offline".  Manman has never successfully booted from his current configuration so no one knows what the registry shows.  BartPE, ubcd4win, or others that have the offline Registry EditorPE can fix the problem (assuming I am correct that XP thinks the systembootdrive is F.)

(P.S. I hope Windows Vista isn't going to create a whole new round of dual boot (XP/Vista) "unstandard" configurations that create havoc for years afterwards!)

Title: Re: restore OS from an image to the same drive
Post by manman on Jul 25th, 2006 at 10:38am

NightOwl wrote on Jul 25th, 2006 at 9:55am:
manman

Do you have any idea what the physical layout of partitions C, E, F, and G were in this *State 1*--and were the partitions *primary* or *logical* in an extended partition?


C was primary, and the other were extended (logical) partitions.

OK, I have tried with savepart. I have modified the offset written in the Windows registry, for the restored partition. I have 2 images of the same G:, so I have tried with each:
1. with an older partition (slightly different hardware configuration) - I did not work
2. With a newer partition (19 iul 2006) (practically the same hardware config.) - and.... IT WORKED.

So, this was the problem. The Windows'registry memorizes the HDDidentifier and the offset of each partition.
I made an image of the G, then I deleted G: (and some other partitions), and then recreted G. So, now, I have another offset, that is different from one marked in the Windows'registry.
Using savepart, I change the key in the registry (on the restored part.) and system works. It seems to be completelly functional.
I think this was the cause. But I could be wrong. If you think so, please tell me.

Thank you very much for all your posts. All your opinions were great for me.





Title: Re: restore OS from an image to the same drive
Post by manman on Jul 25th, 2006 at 10:52am

John. wrote on Jul 25th, 2006 at 10:00am:
NightOwl, I hope I am not adding more confusion here, but I think we're still not in possession of all the pertinent facts.

I think you are not making the correct distinction between the BOOT partition and the OPERATING SYSTEM partition. My understanding (correct me if I'm wrong) is that the active boot partition is the one that contains:
ntldr
ntdetec.com
boot.ini
This is the one that the hardware starts the boot process from.

Normally the Operating System (XP) is also on that same partition, but (as long as those 3 files are on the active one) XP can just as easily be on one of the other partitions! So, you can have the primary boot partition as the first one (C in most cases) and XP on E or F or G (on the same drive).

boot.ini (regardless of which partition it is read from initially) tells the operating system where to CONTINUE from that point forward.


This is right I understand the things work, too. So I thnik the primary partition wont be necesarilly the same as the OS partition.

Title: Re: restore OS from an image to the same drive
Post by NightOwl on Jul 25th, 2006 at 10:57am
Ghost4me

Hmmmm....I stand corrected--you are right--the *boot.ini* may need to point to *partition(3)*--which is the second logical partition in the extended partition based on the *partinfo* information and using the information on how to *count*  and enumerate the partition number for the *partition(x)* in *boot.ini* explained here (Editing the Boot.ini file using BTini ), that would make it *partition(3)*.

I was focused on *primary* partitions--my bad!

So, probably only needs to address the drive letter assignments using SavePart--aka Partition Saving.

Title: Re: restore OS from an image to the same drive
Post by NightOwl on Jul 25th, 2006 at 11:09am
manman

Good to hear you have figured things out!

I've not personally used *SavePart*--when you bring up your drive letter assignment using that program--does it show drive letter "G" and the old partition id based on the old partition offset--and you have to *calculate* the new offset and input it?

Or, does it show the new offset partition id and you just have to tell it to make that drive letter "G"?

Title: Re: restore OS from an image to the same drive
Post by manman on Jul 25th, 2006 at 11:51am
yes, it show the new offset partition id and you just have to tell it to make that drive letter "G" - you also point to the windows partition, so the program could ghange Windows registry. It works simple. You have nothing to manually calculate. Details:

http://damien.guibouret.free.fr/en/lisezmoi.html#Chapitre_11






Title: Re: restore OS from an image to the same drive
Post by Ghost4me on Jul 25th, 2006 at 1:14pm

manman wrote on Jul 25th, 2006 at 10:38am:
I have 2 images of the same G:, so I have tried with each:
1. with an older partition (slightly different hardware configuration) - I did not work
2. With a newer partition (19 iul 2006) (practically the same hardware config.) - and.... IT WORKED.


Glad to hear it is working again!

Ghost is not meant to restore images onto dissimilar hardware configuration, so #1 above doesn't surprise me.

Regarding #2 above ("practically the same...") I would surmise at this point that you had invalid or corrupted boot partition information.  You could probably have corrected it with the XP Recovery Console FIXBOOT command, but your use of the Save-Part probably did a similar fix.

http://support.microsoft.com/kb/314058/


Title: Re: restore OS from an image to the same drive
Post by Ghost4me on Jul 25th, 2006 at 1:37pm
Looking more closely at the SavePart information, it appears it does more than just fix the partition boot record (fixboot command).  It looks like it also does an offline registry edit of XP, similar to what I mentioned in reply #9 previously.

Title: Re: restore OS from an image to the same drive
Post by NightOwl on Jul 25th, 2006 at 3:08pm
Brian

In your reply #14, you speculated that Dan Goodell's *Method #2* might solve manman's problem:


Quote:
I think this technique is likely to resolve manman's problem as well.

But, *Method #2* only forces WinXP to *forget* it's current drive letter assignments--and therefore upon re-boot, WinXP goes through the process of re-assigning drive letters.  This method really only works if the OS is on the default location C:\.

But that would not help manman because his OS drive letter needs to be *G:\*, and that would not have occurred during WinXP's re-assignment process unless by pure luck if he happened to have another HDD hooked up that caused WinXP to give that 3rd partition on that first HDD the drive letter G:\ !

Title: Re: restore OS from an image to the same drive
Post by Brian on Jul 25th, 2006 at 3:44pm
NightOwl,

I think you are correct. Scratch Method #2 here.

What do you think about my suggestion in Reply #13? Using SavePart is probably quicker and easier.

Title: Re: restore OS from an image to the same drive
Post by NightOwl on Jul 25th, 2006 at 4:47pm
Brian


Quote:
Ghost4me introduced me to RegistryEditiorPE. John, do you think this could be done with BartPE and the plugin? It can't be done from Windows here as Windows won't boot. Now that would be an interesting alternative to SavePart. The "G: drive" OS would need to be set active to be accessed by BartPE.

*SavePart* seems to make this so easy.  I'm not sure having to mess around with BartPE to get that registry editing plug-in working, setting a logical partition in an extended partition as *active*--is that possible?--, and then having to do the calculations to figure out the value needed to correct the value(s) in the registry calculated from the new partition's beginning offset and the disk ID--I'm not up to that myself  ;D I'll let SavePart do that, thank you  ;) !

However, I'd be interested if Ghost4me thinks he could accomplish this!

Title: Re: restore OS from an image to the same drive
Post by Ghost4me on Jul 25th, 2006 at 5:57pm

NightOwl wrote on Jul 25th, 2006 at 4:47pm:
However, I'd be interested if Ghost4me thinks he could accomplish this!

I would agree that SavePart is the easiest automatic (assuming it works) way to go.  I don't think however it's necessary to calculate the offsets manually if you know what drive letter has changed and want to manually fix it:
http://support.microsoft.com/kb/223188/

That is what the Microsoft article explains--how to rename the bad drive letter to the correct one.  Also agree if you don't already have RegistryEditorPE and bartPE or other software and are already comfortable with it, it's too much to digest, especially for someone not familiar with it.

Bottom line, I agree:  SavePart is nice.  (But, it's also nice to understand what it's doing.)

Title: Re: restore OS from an image to the same drive
Post by Ghost4me on Jul 25th, 2006 at 7:47pm

NightOwl wrote on Jul 25th, 2006 at 4:47pm:
*SavePart* seems to make this so easy.  I'm not sure having to mess around with BartPE to get that registry editing plug-in working, setting a logical partition in an extended partition as *active*--is that possible?--, and then having to do the calculations to figure out the value needed to correct the value(s) in the registry calculated from the new partition's beginning offset and the disk ID--I'm not up to that myself  ;D I'll let SavePart do that, thank you  ;) !


I think the offset calculations that you or SavePart are referring to relate to REBUILDING the partition table, and not just fixing a drive letter problem.

Another partition repair program that I am familiar with (but never had to restore or rebuild a partiion with) is called Partition Table Doctor.

http://www.ptdd.com/

There is a free demo version which I use because it allows you to backup your partition table.  Nice insurance to have.

Also nice tutorial here:
http://www.ptdd.com/recover-partition-table.htm

Title: Re: restore OS from an image to the same drive
Post by NightOwl on Jul 26th, 2006 at 11:00pm
manman and everyone else

I know this thread has run its course--but if anyone is still looking--

I noticed something that shows what I had said earlier--that Ghost, behind the scene, adjusts the *boot.ini* file--and in manman's case, because his partition table was in order--and his layout was only for 4 partitions on the original, and 3 on the final, i.e. not too complicated--Ghost handled things okay.

Note, his original HDD state shows *G* as the 4th partition which is where his OS was installed:


Quote:
State 1:

Harddisk        Partitions
-----------------------------------------
HDD1:         C E F G       OS 1 (functional in this state)
HDD2:         D H I             OS 2 (functional)


manman, do you have Ghost 2003 installed in Windows?  If so you will have *Ghost Explorer* available.  If you were to open your Ghost image file and extract the *boot.ini* file to a *temp* folder, open it with Notepad, and I have to assume it will say:

multi(0)disk(0)rdisk(0)partition(4)\WINDOWS="Microsoft Windows XP Professional" /noexecute=optin /fastdetect

(If you do not have Ghost 2003 installed, but have the installation CD, you can find *Ghost Explorer* here:  

NORTON_GHOST X:\Install\Data.Cab\F1088_Ghostexp.exe

If I right-mouse-button click and select *Open with WinZip*, it opens in WinZip, and if I right-mouse-button click again, and select *Open*, I'm able to run that program from the installation CD.)

Anyway, just thought I'd point that out--I bet *boot.ini* would have been a problem if Ghost had not adjusted the partition statement to (3) for manman--I assume Ghost 9 and 10 do the same if you are changing the OS partition position when you are restoring it.

Title: Re: restore OS from an image to the same drive
Post by Brian on Jul 27th, 2006 at 2:54am
I'm interested too as I have no experience with the Microsoft system of dual booting.

Radified Community Forums » Powered by YaBB 2.4!
YaBB © 2000-2009. All Rights Reserved.