Hey guys,
I have a number of ghost images on one of my machines created with Ghost 2003. The hard drive has two partitions - one with the OS, and one with all of the images on it. In trying to make all of the tests that I run on it easily automatable, I've been trying to figure out how to restore images without using the GUI.
I can't run ghost.exe, as it has to be run in DOS.
I can't figure out what NMain.exe does, other than it takes in the .nsi file and uses that somehow.
So I can't figure out how to give it a simple line meaning basically "run ghost restore of this image to this partition after reboot."
However, reading through the manual, I've discovered that ghost creates a virtual partition that it uses to run. (http://service1.symantec.com/SUPPORT/ghost.nsf/docid/2004031610173825?Open&docid=20020206160347915&nsf=SUPPORT%5CINTER%5Cghostintl.nsf&view=de_docid )If I could add the ghost command line to run automatically after booting into the virtual partition, I think that would work. But yields two additional problems:
1 - Is there a way to create a virtual console using a commandline command? The help file referenced above says:
"The Virtual Partition is created with the following files:
- Ghreboot.exe
This executable file lets you restart your computer back into Windows.
- Selected driver settings
You can select drivers to include in the Virtual Partition that will let you access external hardware.
- DOS applications stored in the selected folder
Any DOS applications that you provided in the selected folder are bundled and included in the Virtual Partition."
But I can't figure out how to create a partition using Ghreboot.exe - and if you run it with the help key, it just says that its used to tell the machine to no longer boot from the virtual partition - but nothing about creating one in the first place.
2 - If I can create a virtual partition from the commandline, how do I tell it to run my ghost command after boot? It would seem that that's something that could be put into the Autoexec.bat or config.sys file (I'm not experienced with those) - but it also says that those will be modified in the folder you use to create a partition, when you do - would that delete any lines about running ghost?
Anyways, if I can't create a virtual partition without using the GUI, then I'm back to where I am now, and I may as well just use the GUI to reghost. But.. To rephrase my questions, so they're seperated from my rambling.
1 - Is there a way to run a restore command in ghost 2003 from a command prompt, such that a virtual partition will be created, the machine will reboot into it, and run ghost to restore the image?
2 - If not, is there a way to create the virtual partition using the ghost tools through a command prompt?
3 - if so, how do I then include in the new virtual partition instructions to run a ghost command on boot?