Main Forum > Tweaking.com Support & Help

Registry Backup Beta

<< < (15/79) > >>

Shane:

--- Quote from: Ztruker on May 24, 2012, 07:11:33 pm ---Another possibility would be to add a line to backup_info.txt:

WindowsDrive=C:   (or whatever the boot drive actually is)

then you could read that from the dos_restore.cmd file but that's a lot more work. Easiest just to use the HOMEDRIVE variable when creating the cmd file.

--- End quote ---

See that's not the problem.

The problem is what drive letter did the repair environment give the windows drive?

In my test I found that it was giving the system reserved partition drive C: and the Windows partition drive D:

So the trick is to look for a file on each partition so it knows what drive letter to use.

That is also why I did it from higher to lower with C: being at the bottom. Better chance of it finding the right one on multiple installed systems. :wink:

I only had it go up to J: as just a base line, as I don't know how many are going to show up on someones system if they are multi boot.

I wonder what drive letter your Windows 8 will get when you go into the windows 7 recovery.

Let me know what each drive letter they get is :-)

Shane

Ztruker:
I booted the Recovery Console. My Win 7 boot drive was still C: even though I have a 100MB System Reserved partition. I know you can't depend on that though.

I guess a marker file on the partition is the best way to go unless each partition has a unique UUID or something that you can query in both environments.

The problem with a marker file is if there is more than one bootable Windows partition and Backup is used on each, then how do you tell which one to use?

Interesting problem. Could you key off the partition name? Each one has to be unique I think. For instance, mine are D370_C through D370_I.

Shane:
Marker file could work. And it would be added to the list to check just in case the system got the marker file deleted.

Could have it create either a random marker file that the restore cmd looks for or a marker file based on computer name perhaps?

Have the marker file stored in the windows dir. If I did it with just a computer name, which is easier to keep track of, what are the odds that the dual boot systems will have the same name for each OS?

Shane

Ztruker:
I think you can use the vol command:

>vol /?
Displays the disk volume label and s

VOL [drive:]

>vol c:
 Volume in drive C is D370_C
 Volume Serial Number is C89E-70E8
>vol d:
 Volume in drive D is D370_D
 Volume Serial Number is 9402-7174

It returns a unique VSN (Volume Serial Number) for each drive or partition. Now to figure out how to parse that info in the dos_restore.cmd file and I think it would be fail safe.

Shane:
It wouldnt need to look for it in the recovery.

I would have the main program make a file in the windows folder. And when it is done witht he backup it writes the restore cmd which at that point I can tell it what file it needs to look for.

So all I need to do is come up with what to name the file. :wink:

Shane

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version