• All Community
    • All Community
    • Forums
    • Ideas
    • Blogs
Advanced

Not what you are looking for? Ask the experts!

Kudos0

Ghost How does one load an image to a partition then schedule it?

Yes,

I have searched for a while, no answeres here or google searches for this seemingly simple question

I have machines with 2 partitions partition 1 is c:  Partition 2 is D:

D: has the .gho image I want to restore to C:

ghost.exe resides on th D:

I get no results when I use  

ghost -clone,mode=pload,src=d:\restore.gho,dst=1:1 -fx -sure -batch  (borrowed this from the internets)

ghost and the image are on D:

I don't understand how the parameters above would force the restore on  C: anyway sice there is no refrence

I want to use the msft task scheduler to trigger restoring C:  From a saved image in partition D:

Is what I'm requesting even possible?

Replies

Kudos0

Re: Ghost How does one load an image to a partition then schedule it?

Yes,

I have searched for a while, no answeres here or google searches for this seemingly simple question

I have machines with 2 partitions partition 1 is c:  Partition 2 is D:

D: has the .gho image I want to restore to C:

ghost.exe resides on th D:

I get no results when I use  

ghost -clone,mode=pload,src=d:\restore.gho,dst=1:1 -fx -sure -batch  (borrowed this from the internets)

ghost and the image are on D:

I don't understand how the parameters above would force the restore on  C: anyway sice there is no refrence

I want to use the msft task scheduler to trigger restoring C:  From a saved image in partition D:

Is what I'm requesting even possible?

Kudos1 Stats

Re: Ghost How does one load an image to a partition then schedule it?

The versions of Ghost that use .gho files from the command line are DOS based or can use ghost32.exe that is a windows executable.  However, you cant run it from within windows to restore that same operating system partition.

The windows executable can only restore partitions not in use.

The command line you show doesn't have a path for the ghost.exe DOS executable because it assumes it was run off a floppy disk and the batch file and executable are in the same place.

Here is a list of the ghost command line switches, I didn't get a chance to check yours.

http://service1.symantec.com/SUPPORT/on-technology.nsf/docid/1998082612540625

I'm not sure how you could schedule such a task.

Maybe schedule a reboot and have a bootable floppy left in the drive?

I'm curious, is this something that is going to be restored a lot?  Like an internet cafe or something?

Dave

Kudos0

Re: Ghost How does one load an image to a partition then schedule it?

Dave,

Thank you for the reply.

I did not see anything pertaining to partition from image command so I'm still looking for how to do this from the command line.

On drive 2, where I have the image to restore, ghost32.exe resides  I'm attempting to load the image from D to partition C:

Normally I insert a ghost usb key and reboot then make my selections manually

The link below is to a Ghost manual.  On page 539 is where the fun begins, the clone switch is kinda explained.  You'll note no explanation save one for restoring a partition from an image.

http://service1.symantec.com/SUPPORT/on-technology.nsf/docid/2008050108242360

This is what I submitted

ghost -clone,mode=pload,src=d:\restore.gho,dst=1:1 -fx -sure -batch  (borrowed this from the internets)

This is revised

ghost -clone,mode=prestore,src=d:\restore.gho,dst=1:1 -fx -sure -batch    Not much of a change.

Still neither work.

Stil there is no example for restoring a partition from an image.   Again, am I adking the impossible of ghost?  I can execute this operation manually, why can't I execute from the command prompt?

Is there an open source alternative  you reccomend?

Kudos1 Stats

Re: Ghost How does one load an image to a partition then schedule it?

Mike,

I played with this some time ago. I had the computer scheduled to shut down at 3 am, run the DOS Ghost restore and restart into Windows.

Just a few questions. Which OS? Which DOS Ghost? How do you plan to run the Ghost command line? From a USB flash drive, from a CD, from a HD DOS partition, etc? How often will you be doing this? Apart from general interest, why do you want to do this?

Kudos2 Stats

Re: Ghost How does one load an image to a partition then schedule it?

OK, your talking about Ghost solution suite.

I'm pretty sure "prestore" is used to restore a selected partition from a multi-partition image (a whole disk image).  When you use that you would have to specify the partition you want to restore after the path to the image.

ghost -clone,mode=prestore,src=d:\restore.gho:X,dst=1:1 -fx -sure -batch

The ":X" I added there would be partition to restore 1, 2, etc.

But if it's a image of a single partition you just need to use mode=restore

Just take the "p" of the front of "restore" in your line there and it should work.

But as Brian asked, you need to first figure out how your going to run Ghost from the command line or batch file.

What I was trying to explain was that right now if you started the Ghost32 executable on the D drive and manually tried to restore the image it would not work.  You would be trying to use Windows on the C drive to run the executable and you can't restore the windows partition on a windows partition that is in use.

When your doing this from your flash drive you are doing this "outside" of the operating system your restoring.

So you'll need to also do this "outside" of windows, either from DOS, or another operating system.

Dave

Kudos0

Re: Ghost How does one load an image to a partition then schedule it?

Dave and Brian,

Thank you for your comments.

OK so what am I trying to do?

I have a rack of 5 test machines, each with 2 partitions, c: is the working drive, D: is the repository

I want to have the machines restore at a set time just as Brian described.

Currently all machines are W7x32 with one W7x64

Why do I want to do this?

I am trying to automate test deployments, part of this requires restoring the test machines to a baseline.  I've got all of the GUI automation working (C# with the WHITE wrapper).  Now I need to automate the restoration of a machine to facilitate the install.

I would have used a virtual machine solution (easier) except the application under test needs physical components, VM's don't do that hence Ghost..

As an aside, last time I ran across a similar issue that seemed simple, programatically generating a process dump using C#.  Lots of info on how to do it by invoking a separate tool, zero info on how to code a dump generator that does not rely upon any other installed software (well, not anymore, I share my information:-)One Christmas vacation later I coded my own solution using a C++ interop since C# does not provide this functionality.  Lesson learned, what sems to be simple can be insanely complicated

What if I create a micro partition on the host drive with DOS and place ghost there?

Brian, what did you do to schedule the task nightly?  I use the task scheduler regularly?

Thank You,

Mike

Kudos1 Stats

Re: Ghost How does one load an image to a partition then schedule it?

Mike,

I found it to be an interesting exercise.

I used an 8 MB DOS partition containing ghost.exe (Ghost 2003) and pqboot.exe. At 3 am a Windows Scheduled Task would run pqboot32.exe to restart the computer into DOS. The command line would run and pqboot.exe would take the computer back into Windows.

You didn't mention which DOS Ghost you are using. It could make a big difference with Win7 as the BCD may need to be edited to run smoothly.

This was my restore command line. Adapt it to your situation and see if it works. Get back to us. Auto restores are fascinating.

ghost -clone,mode=prestore,src=2:2\winxp.gho:1,dst=1:1 -fx -sure

prestore has replaced pload in Ghost 8 and later although pload is probably OK

My winxp.gho was on the second HD, second partition (numbers determind by the Ghost app, drop down list)

The restore partition was on the first HD, first partition

winxp.gho:1   The :1 was necessary but I can't recall why.

Kudos0

Re: Ghost How does one load an image to a partition then schedule it?


Brian_K wrote:

winxp.gho:1   The :1 was necessary but I can't recall why.


I just told you why, do you have your preferences set to not disply my posts? LOL

Would you happen to know how DOS could be setup on a drive other than C?

Or how you could change the windows 7 bootmenu from a command line?

If I were to do something like this using XP I would setup a dual boot between DOS and XP.

In DOS I would have the autoexec go into the Ghost restore of the XP partition.

Then I would make 2 boot.ini files, one that booted XP and one that booted DOS.

The scheduled task in XP would first rename the current boot.ini to boot.xp and would rename the boot.dos to boot.ini

Then it would trigger a reboot.

The system would boot into DOS and restore the image, the last couple lines of the autoexec.bat would switch the boot.ini files back around.

If I wanted to get fancy I would add a "choice" command to the autoexec. The default choice would do the restore, the one that needed a user input would just start ghost (use that to update the recovery image as needed).

Since the boot.ini files are only switched in a scheduled task, the end users never see the option to boot into the restore and they could reboot as normal to install software.

I have no idea how I would do it with Windows 7. LOL

Dave

Kudos0

Re: Ghost How does one load an image to a partition then schedule it?


DaveH wrote:

I just told you why, do you have your preferences set to not disply my posts? LOL


Dave, you did too! I was using a partition image not a whole drive image so your comment didn't sink in to my thick skull.

Did you ask how I set up DOS? I have it written out if anyone is interested.

I'm not sure if pqboot32.exe runs in Win7. If it doesn't there are alternatives.

Kudos0

Re: Ghost How does one load an image to a partition then schedule it?

I was wondering if you knew how install DOS to another partition. If Mike has to keep windows 7 on the C drive he would need a way to boot to DOS on another lettter.  I also have no idea how to start DOS from the windows 7 boot manager.

I opened EasyBCD and I see an option to add windows 98 so it must be possible.

Dave

Kudos0

Re: Ghost How does one load an image to a partition then schedule it?

Drive letters exist in the mind of the booted operating system so Win7 will be C: drive and DOS will also be C: drive. I have about 15 C: drives in my computer.

I tried pqboot32.exe in Win7 in my test computer. It sort of works. There are a few error messages but then Win7 reboots. I'll try it later on a better computer.

Brief instructions on how to install DOS in an 8 MB partition, anywhere on HD0 (using WinXP here but Win7 could be present instead)....

Download
http://www.allbootdisks.com/downloads/ISO/AllBootDisks_ISO_Image_Downloads25/Win98SEnoram_bootdisk.iso  

Burn as an image to a CD.

Install BING

In BING create an 8 MB FAT partition
Create a DOS boot item with only one partition in the MBR and make it active (shift boot)
Boot from the Win98SE CD and sys C: 
Put the DOS partition in WinXP boot MBR. Boot to WinXP and copy all the files from the CD (have to unhide OS files to get them all) to the DOS partition. Don't over write files already present..  You can delete unnecessary files later.
(After unhiding hidden OS files you see command.com, drvspace.bin, io.sys and msdos.sys)

Copy ghost.exe, pqboot.exe and ctmouse.exe to the DOS partition. Create your ghost.bat.

Edit autoexec.bat to

@ECHO OFF
PROMPT $p$g
echo.
ctmouse.exe
call ghost.bat
echo.

Edit msdos.sys to (have to temporarily remove Read Only)

[Options]
BootWarn=0
BootWin=1
Logo=0

Edit config.sys to

DEVICE=HIMEM.SYS /testmem:off
DOS=HIGH,UMB
FILES=30
buffers=10

BING can be uninstalled.

Edit.... Once you have made the DOS partition you don't have to do it again. You can image/restore to other computers.

Kudos0

Re: Ghost How does one load an image to a partition then schedule it?

Thanks Brian, very interesting.

I have pqboot in partition magic and Drive Image. This system I'm on right now I use drive image for backups.

I never knew what pqboot does, I ran the DOS version with /? and it says "Activates the selected partition and reboots the computer"

So that solves the problem of active partitions and rebooting.  You wouldn't need to use my suggestion of installing DOS on the C drive because thats the reason why I thought it would have to be on C.

Assuming that XP is NTFS if you created a second FAT32 partition and booted with the win98 boot disk or ISO, of course it couldn't read the NTFS drive, it would give the second partition the temporary letter C.  When you did a "sys C:" I'm pretty sure it would then be transfering the system files to the second partition.

Then you could copy the rest of the files over and maybe even use fdisk to make the first partition active again.

(I haven't tested any of that yet)

But if you made it that far you would only need to add the DOS to the boot menu and back in xp\7 copy the rest of the files there and write the autoexec.bat

You might as well make it a larger FAT32 partition and keep your images there too.

Kudos0

Re: Ghost How does one load an image to a partition then schedule it?

My ghost.bat was

ghost -clone,mode=prestore,src=2:2\winxp.gho:1,dst=1:1 -fx -sure
pqboot /p:1

So after the restore had completed, Win7 (partition 1) would boot.

I'm still looking at running pqboot32.exe from Win7. There is an error but after pressing Enter it works. Do you know how to get around this?  pqboot32.exe is needed to shut down Windows at 3 am and boot into DOS.

Kudos0

Re: Ghost How does one load an image to a partition then schedule it?

I tried it again and BING doesn't have to be installed.

Create an 8 MB FAT partition using the BING CD
Boot from Win98 CD and sys C:  (check to make sure C: is the DOS partition before doing this)
Boot into Windows and copy the files as previously described


If you later want to boot into DOS, set it active from the BING CD.

Edit... You should be able to do this project without using BING. Use your favourite partitioning app.

Kudos0

Re: Ghost How does one load an image to a partition then schedule it?

I don't know how you could get past a key press unless there are some undocumented switches to continue.

Maybe for windows 7 a batch file could be scheduled?

I'm not sure how you would "string together" all the commands for diskpart to set an active partition but the reboot part would be easy: shutdown /r

Going from DOS/XP back to 7, pqboot is a clear winner.

If someone didn't have pqboot it would have to be a 2 step deal.

How about mbrwork?

edit- I don't have a windows 7 system on right now, just XP

I run mbrwork /? from a command line and got these options

Valid parameters:

Ax - Set partition x (0-3) active

R - show recovery option even when EMBR exists

Kudos0

Re: Ghost How does one load an image to a partition then schedule it?

To have it automated, pqboot or TeraByte's bootndos and mbr.exe would work. There must be more.

pqboot32,exe works fine in WinXP but not in Win7.

Kudos0

Re: Ghost How does one load an image to a partition then schedule it?

Brian- I once spent a lot of time trying to figure this one out and since you mention pgboot I wonder if you know.

Do you know how powerquest drive image and I assume partition magic were able to boot into a floppy image?

As an example, drive image has a floppy image and it also gives you a tool (winimage) to edit it if you need to add drivers or something.  When you set the program to image or restore the system partition, it does something that makes the system boot into this floppy image. The image gets created or restored from the floppy image just like what were trying to do here.

However, unlike the old ghost 2003 that used a virtual partition, these did it from a floppy image.

Would you have any idea how it did that?

Kudos0

Re: Ghost How does one load an image to a partition then schedule it?

Dave, I used Drive Image years ago but I never understood how the virtual image worked.

Is Drive Image still OK? I heard there was a limitation. Can it handle large HDs? I've forgotten the details.

Kudos0

Re: Ghost How does one load an image to a partition then schedule it?

I'm not sure if it has any drive size limitations. I never had a primary partition over 30-40GB.  I think on my wifes laptop she has an 80GB partition.  I also don't think I ever used it with a drive over 250GB but it wouldn't suprise me if it had the same large drive limitation that powerquest partition magic has (1TB?)

The big limitations that I know of is that it's unable to write an image onto an NTFS partition.  It can image and restore one, it just can't read and write an image to NTFS. But that doesn't bother me, I setup my systems using it with a FAT32 partition to hold the image.

The second limitation is it doesn't work with windows 7 :(

I been using it for years and really trust it.

I also picked up a whole mess of deeply discounted version 2002 and back when I used to fix and build systems I would install a version on every system and image it so when the user screwed it up I could restore it in a snap. ;)

I never been able to figure out how Ghost 2003 could write to NTFS without any drivers. Amazing feat actually.  But I disliked the way the program required a free primary spot to be able to reboot and do the image.  It booted into a virtual hard drive partition and drive image booted into a floppy disk image.

I tried figuring it out before but never could.  It boots into the floppy image well before the point where windows starts to load.

It must be manipulating something before or at the boot sector.

I thought it would be a handy thing to figure out at the time. Being able to multi-boot into different floppy images would have been helpful.

I recently ended up making those floppy sets into DOS based ISO's and boot them with grub, starting grldr from my boot.ini

Kudos0

Re: Ghost How does one load an image to a partition then schedule it?

pqboot32.exe doesn't run properly as a scheduled task in Win7. No problem however. Forget it.

You can run a diskpart task at 2:55 am to set the DOS partition active and a shutdown task at 3 am to restart the computer into DOS.

In the DOS partition, if you don't have pqboot.exe you can use TeraByte's mbr.exe (free app).

eg       mbr 0 0 /a /reboot 

This will set partition 0 on hard drive 0 active and cause a reboot.

Edit.... Even easier than using diskpart and shutdown. You can use the Windows version of mbr.exe. It is far better. A single simple command line. Similar to above.

eg mbr 0 1 /a /reboot

( In the above examples the HD is 0, partition 0 is Win7, partition 1 is DOS)

Kudos1 Stats

Re: Ghost How does one load an image to a partition then schedule it?

Following Brians instructions, I just did it in windows vista.  I'm using virtual PC and I chose Vista because it runs so much better than windows 7.

(They never released any windows 7 additions for virtual PC).

On a working Vista installation I used disk management to shrink the vista partition about 30MB, however I would consider shrinking it enough to store the images on it as well. On a FAT32 partition ghost will split the image files into 2 or 4GB pieces but that won't matter.  Since my free space was so small I had to choose FAT.

So in disk management I made the free space a 30MB FAT primary partition.

Note that I have vista on one partition, I also install my Windows 7 installs on one partition without the SRP.

I end up with one virtual hard drive having 2 partitions. Vista on NTFS, DOS will be on the small FAT one.

I boot the drive with a Windows 98SE boot disk and do a: SYS C:

(I had already checked that it didn't see the NTFS partition and lettered the small FAT one as C)

Then I boot back into Vista, it boots right up since I have not changed the active partitions yet.

I go to the D drive (DOS) partition, delete drvspace.bin and make a folder called Dos so I can keep everything tidy.

In the Dos folder I add: Mouse.com, ghost.exe, choice.com, edit.com, mbr.exe (the dos version) and mbr32.exe (the windows version I renamed)

I also make and add 2 .bat files for that folder

BootDOS.bat

contains:

D:\DOS\mbr32.exe 0 1 /a /reboot

Boot7.bat

contains:

mbr 0 0 /a /reboot

Back in the root of the D drive I make an autoexec.bat file with this:

@echo off
PROMPT $P$G
path=C:\;C:\DOS
MOUSE.COM

CHOICE /C:123 /T:1,15 Press 1 for Restore, 2 for Win7, 3 for DOS
IF ERRORLEVEL 3 GOTO DOS
IF ERRORLEVEL 2 GOTO WIN7
IF ERRORLEVEL 1 GOTO RESTORE

:RESTORE
echo Restore System
REM Put your Ghost command here
REM boot7.bat
GOTO END

:DOS
echo Your in DOS
GOTO END

:WIN7
boot7.bat

:END

You see that I didn't put in the ghost.exe commands. I didn't actually test that part.

Right clicking on the BootDOS.bat file and selecting "run as administrator"  reboots the system into DOS.

To make it a scheduled task you may not have to run the batch file, just put that one line command in.

When the system boots to DOS I get 3 choices:

1) will do the restore and it will default to this selection after 15 seconds.

2) Boots into Win7 (Vista) without doing anything

3) drops into DOS (use this to make or update the image, just type: ghost)

I added edit.com cause I had to make a few changes to get it to work.  I actually added a bunch of other DOS tools but didn't end up needing any.

Thanks Brian :)

Dave

Kudos0

Re: Ghost How does one load an image to a partition then schedule it?

Dave,

That is really nice. A menu is something I hadn't considered but it makes sense as the choices would be appropriate on occasions. In fact you could add extra choices to the menu such as backing up and restoring other partitions.

Great work.

Kudos0

Re: Ghost How does one load an image to a partition then schedule it?

I wanted the menu as a "way out" in case I got stuck in a reboot loop, but the more I thought about it the more things I figured I could do with it.  But your right, it could easily be setup to do other automated tasks and then you jusy change the default action to do something else.

Kudos0

Re: Ghost How does one load an image to a partition then schedule it?

The purpose of Mike's thread is to have an automatic restore. Your menu allows that but it also allows other choices if they are needed. I like that menu a lot.

I have a CD with a 9 choice menu. I needed more so I had to create a second menu. I use it in my test computer to quickly restore OS.

menu1.bat is

@echo off
REM example of displayed menu using CHOICE command

:menu
cls
echo.
echo Please Select From The Options Below:
echo.
echo 1. Restore 6
echo 2. Restore Ubuntu
echo 3. Restore Win7 basic
echo 4. Restore Win7 Ghost
echo 5. Restore WinXP Ghost
echo 6. Restore SRP Win7 basic
echo 7. CopyWipe
echo 8. Second menu
echo E. Exit batch file
echo.
choice /c12345678e "Your choice: "
echo.

if errorlevel 9 goto exitbatch
if errorlevel 8 goto option8
if errorlevel 7 goto option7
if errorlevel 6 goto option6
if errorlevel 5 goto option5
if errorlevel 4 goto option4
if errorlevel 3 goto option3
if errorlevel 2 goto option2
if errorlevel 1 goto option1

:option1
echo This is Restore 6
echo.
pause
call rest_6.bat
goto menu

:option2
echo This is Restore Ubuntu
echo.
pause
call ubun_4.bat
goto menu

:option3
echo This is Restore Win7 basic
echo.
pause
call win7.bat
goto menu

:option4
echo This is Restore Win7 Ghost
echo.
pause
call win7gh.bat
goto menu

:option5
echo This is Restore WinXP Ghost
echo.
pause
call rXPG.bat
goto menu

:option6
echo This is Restore SRP Win7 basic
echo.
pause
call srpwin7.bat
goto menu

:option7
echo This is CopyWipe
echo.
pause
call copywipe.bat
goto menu

:option8
echo This is Second menu
echo.
call menu2.bat
goto menu

:exitbatch

menu2.bat is

@echo off
REM example of displayed menu using CHOICE command

:menu
cls
echo.
echo Please Select From The Options Below:
echo.
echo 1. Backup 6
echo 2. Backup Ubuntu diff
echo 3. 33
echo 4. 44
echo 5. 55
echo 6. 66
echo 7. MBRWork
echo 8. DiskEditor
echo E. Exit Second Menu
echo.
choice /c12345678e "Your choice: "
echo.

if errorlevel 9 goto exitbatch
if errorlevel 8 goto option8
if errorlevel 7 goto option7
if errorlevel 6 goto option6
if errorlevel 5 goto option5
if errorlevel 4 goto option4
if errorlevel 3 goto option3
if errorlevel 2 goto option2
if errorlevel 1 goto option1

:option1
echo This is Backup 6
echo.
pause
call Back_6.bat
goto menu

:option2
echo This is Backup Ubuntu diff
echo.
pause
call Ubdiff.bat
goto menu

:option3
echo This is 33
echo.
pause
::call win7.bat
goto menu

:option4
echo This is 44
echo.
pause
::call win7gh.bat
goto menu

:option5
echo This is 55
echo.
pause
::call de.bat
goto menu

:option6
echo This is 66
echo.
pause
::call mbrwork.bat
goto menu

:option7
echo This is MBRWork
echo.
pause
call mbrwork.bat
goto menu

:option8
echo This is DiskEditor
echo.
pause
call de.bat
goto menu

:exitbatch

Kudos0

Re: Ghost How does one load an image to a partition then schedule it?

Hey thats real slick.

It's been a long time since I did much DOS.  Although it works without it, I really should use the "call" command to run one batch from another.

I also really like how you echoed all the menu choices on the screen like that.

Much better looking and easier to read.

I think I'll borrow (steal) that part from you. ;)

Kudos0

Re: Ghost How does one load an image to a partition then schedule it?


DaveH wrote:

I think I'll borrow (steal) that part from you. ;)


That's how I got most of it.

Kudos0

Re: Ghost How does one load an image to a partition then schedule it?

Hey Mike,

We're anxious to hear about your progress.

Kudos0

Re: Ghost How does one load an image to a partition then schedule it?

Dave,

I followed your example and setup a Virtual PC with WinXP and a DOS partition containing Ghost 2003. It is scheduled to restore the WinXP partition every 10 minutes. I love automation. Each restore cycle only takes 3 minutes.

Kudos0

Re: Ghost How does one load an image to a partition then schedule it?

I need to update and fix one of my employees home computers this week and I been thinking about doing the same for her.

She has ghost 2003 and I thought it would be nice to schedule images.  Maybe once or twice a month and in between just run a file and folder backup of stuff that changes. 

I been meaning to see if there is some variable that can be used for the image date.

I also been thinking of some way to maybe keep only 2 or 3 older images and delete the rest.  Maybe have 3 folders:

current, 2weeks, and lastmonth and have it delete the lastmonth folder and rename the others before making a new folder with the current image.

How do you handle that on your systems, or do you just need the most current image?

Dave

Kudos0

Re: Ghost How does one load an image to a partition then schedule it?

Dave,

Would this suit?

My image creation command line (example) for Ghost 2003 is..

ghost -clone,mode=pcreate,src=1:1,dst=2:2\winxp.gho -z1 -fx –sure

Let’s say you only wanted to keep the last 3 .gho images, you could run a batch file after each winxp.gho has been created.

IF EXIST ghost_C.gho (DEL ghost_C.gho)
IF EXIST ghost_B.gho (REN ghost_B.gho ghost_C.gho)
IF EXIST ghost_A.gho (REN ghost_A.gho ghost_B.gho)
REN winxp.gho ghost_A.gho

Note, ghost_A.gho is always the most recent backup image so you could have a restore command line referencing  ghost_A.gho

ie something like

ghost -clone,mode=prestore,src=2:2\ghost_A.gho:1,dst=1:1 -fx –sure

The backup images would be scheduled but the restore would not. You could have batch files to initiate the restore from DOS and also initiated from Windows,

Kudos0

Re: Ghost How does one load an image to a partition then schedule it?

If you want a dated and a timed folder for any purpose...

REM In regional settings, must have dd-mm-yy, not dd/mm/yy   Short date.
REM  Can have yy-mm-dd for USA. That's OK.
REM Create sub directory called \dd-mm-yy_hhmmss
REM where dd-mm-yy_hhmmss is a date_time stamp like 01-03-09_134200

set hh=%time:~0,2%

REM Since there is no leading zero for times before 10 am, have to put in
REM a zero when this is run before 10 am.

if "%time:~0,1%"==" " set hh=0%hh:~1,1%
set timestamp=%time:~0,8%
if @%timestamp:~0,1% == @ set timestamp=0%timestamp:~1,7%
set timestamp=%date:.=%_%timestamp::=%
echo.Timestamp :: %timestamp%
MD %timestamp%


Kudos0

Re: Ghost How does one load an image to a partition then schedule it?

I'm sure that would work, but maybe not for my situation.

I was going to make the images onto the FAT32 partition, so it's going to be an archive.  Not a lot of files, maybe 7 or 8GB assuming 50% compression.

Thats why I was thinking folders might be easier.

If the filename can't be made to reflect the date, maybe the batch file can echo the date into a text file before making the image?

Dave

Kudos0

Re: Ghost How does one load an image to a partition then schedule it?

I avoid dated file and folders because I can't automatically restore the image. I need a fixed name. That's why I prefer something like Message #30. You can always see what date the image was created by looking in the Date Modified column.

Kudos0

Re: Ghost How does one load an image to a partition then schedule it?

You got a good point there, although I don't have a need for automated restores.

But thats another good reason for working with folders

I could CD into the current image folder and just do a: date>date.txt

Kudos0

Re: Ghost How does one load an image to a partition then schedule it?

For your friend you could have the backups automated. In DOS you could have your Choice Menu with Ghost_A, Ghost_B or Ghost_C restore choices. So she doesn't have to know anything about Ghost but she could restore an image.

Kudos0

Re: Ghost How does one load an image to a partition then schedule it?

LOL, she would have me do it.

I built the system for her years ago so I have kind of inherited it.  I put radmin on it so when she had a problem she turns on radmin and I connect into it and fix it.

But she's an invaluable employee of mine, I actually just bought her a little pink eee and been getting that all setup for her.

She's going to bring her tower to work so i can setup a router and update the system.

Kudos0

Re: Ghost How does one load an image to a partition then schedule it?


DaveH wrote:

LOL, she would have me do it.


So that's why you need to make it easy for the inevitable D-day. Makes sense.

Kudos0

Re: Ghost How does one load an image to a partition then schedule it?

You got a point there.

On this new EEE I haven't figured out what to do yet.   I can't go with a scheduled image because I wouldn't want the netbook to be unused for a while and then go right into an image when it's turned on.  I hate any kind of scheduled tasks on laptops because people turn them on when they want to use them and the last thing you want is a whole bunch of stuff trying to run.

I think I'll have to have it done manually with drive image or use the program I don't like but comes free with the hard drive.

Kudos0

Re: Ghost How does one load an image to a partition then schedule it?

I used to like Drive Image. I preferred it to DOS Ghost. Someone said, "Ghost is for people who like doing it the hard way".

Kudos0

Re: Ghost How does one load an image to a partition then schedule it?

Dave,

I used Virtual PC with Win7 and Ghost 2003. No problems with scheduled restores.

Kudos0

Re: Ghost How does one load an image to a partition then schedule it?

It becomes very painful for me to run windows 7 in VPC.  I don't have hardware virtulization and because of the lack of proper drivers (additions) it runs very poorly. 

For some reason, Vista runs very well.  In fact it seems to run better virtulized then it did as a real installation on this same computer.   I installed the intergated Vista ultimate SP2 earlier this year and was shocked by how well it runs.

The opposite happens with windows 7, I have it physically installed and it works great (just a little slower than XP) but when I virtulize it from XP it runs terrible, even giving it 1.5GB RAM

Kudos0

Re: Ghost How does one load an image to a partition then schedule it?

Computers!!!! My Win7 (no additions) runs as well in Virtual PC (from WinXP) as on the HD.

Kudos0

Re: Ghost How does one load an image to a partition then schedule it?

Maybe I damaged it somehow.

I'm starting a new one, I'll try the lame Windows 7 starter edition.

Kudos0

Re: Ghost How does one load an image to a partition then schedule it?

Dave, this is exciting. I restored an image of my Win7 partition to a virtual machine. Now here is the interesting part. I used the OSDTool to change the HAL and install default IDE and AHCI drivers to the virtual machine. A 10 second job. Next, added the virtual machine to Virtual PC and now I'm looking at my Win7 in Virtual PC. All apps present, etc.

I installed the Additions too.

Kudos0

Re: Ghost How does one load an image to a partition then schedule it?

I have a fully working setup like that of my home system here at work.  I also did that on older operating systems before doing clean installs for upgrading.   I still have a fully working windows 98 VM that contains everything from right before formatting it and switching to XP.

Back then I had to use drive image or ghost 2003 and image the system and then restore it into a virtual PC.

Interstingly, my main systems at work and at home use the same hal and although the motherboards are different they both use onboard intel nic cards.  Since all the other hardware is virualized and therefore the same, I can take the same VHD's and use them on either system without any problems, new hardware being detected, or activation issues.

I finally got win7 starter going, it's better then my enterprize installation but still a lot slower than VisaSP2.

I used the additions too, the ones for Vista. 

Dave

Kudos0

Re: Ghost How does one load an image to a partition then schedule it?

Virtual PC uses a uni-processor HAL, halacpi.dll. My installed Win7 uses a multi-processor HAL, halmacpi.dll. Hence the need to change.

Kudos0

Re: Ghost How does one load an image to a partition then schedule it?

OK, mine are both single processor 3.2Ghz and has both SATA and ATA drivers already installed.

Kudos0

Re: Ghost How does one load an image to a partition then schedule it?

I'm sure your already aware of this.

But windows 7 disk managment lets you mount VHD's.  On the right side under "more actions" choose "attach VHD"

from there you can use explorer to make changes, I just added a folder to the vhd I just made and when I booted it the folder was there on the desktop.  I also assume you could mount the registry and make any manipulations you may need.

To unmount it you go to the bottom section and on the box where it shows the drive number you right click and select detach vhd.

If your using win7 pro or enterprise you can somehow boot to a VHD as well.  I never tried that one, I dislike the "windows" virtual PC and install Microsoft virtual pc 2007 sp1 because of all my other vhd's.

But it's an interesting concept to be able to boot to VHD's as well. maybe grub can do it?

I wish more image programs would support vhd's, not just in conversions but as actual image files.

I think the format is here to stay and another reason why I like VPC over vmware.

Dave

Kudos0

Re: Ghost How does one load an image to a partition then schedule it?


DaveH wrote:

I'm sure your already aware of this.


I wasn't. I'm still mainly a WinXP user. I'll check it out.

Kudos0

Re: Ghost How does one load an image to a partition then schedule it?

There is a method of running DOS Ghost auto restores without having a DOS partition on the computer.

You have to start with a DOS partition but it can be on any computer and it can be deleted after the following. You copy the DOS partition to a .bin file using TBOS and then boot from that file using bootfile.exe. The .bin file can be stored in any partition on HD0. It can even be stored in the C: drive if you only have one partition. When you run the .bin file it restarts the computer, boots into the DOS restore and restarts into Windows. It can be scheduled.

This thread is closed from further comment. Please visit the forum to start a new thread.