The main thing with GDisk is that as with Ghost itself, the same command-line works uniformly across the DOS, Windows, and Linux builds.Īs for "clone", the term is really about making identical copies Clones were first and foremost about disk-to-disk copies, so the -clone switch allows you to specify a source disk and a destination disk.
Nowadays, some (although not all) of the functions of these tools also exists in Windows itself, and so DISKPART would also work instead of gdisk.Įither Diskpart or GDisk will create and format partitions - generally these days more people use diskpart since they only use WinPE, GDisk is the original tool we made in the late 90's akin to DOS FDisk. In the case of Ghost, the tool for managing partitions is called gdisk (by analogy to fdisk, which was the tool from DOS everyone used back when gdisk was written in 1997 or so), and you can find the gdisk command-line options in the product manual. Ghost itself does not delete, create, or otherwise do much with partitions it will either restore an entire disk images (in which case the partitions on the target disk are replaced with the ones in the source image) or restore into a pre-existing partition (in which case you use another tool to set up the partition, and then Ghost will pour the image data into that container).
The Ghost Solution Suite product has a great many utility tools they aren't all in the one executable (although before the product was cancelled, the plan was to make an all-in-one tool like that which could be managed through a scripting language). I also found this article, but it does not help, either: Ghoste.exe -BATCH -QUIET -RB -SRC=D:\Backup.GHO -SURE I seem to remember using something line this:
It must be simple, but I cannot see it at the moment. How do I do this? I was looking through the command line parameters and they are bewildering: I need to find the Command Line Parameters for GHOST that deletes the current Windows Partition (or do I use DISKPART for this?) and then restores the image from the Backup.GHO onto the beginning of the disk. I have a second, hidden partition at the end of the disk and on this, I have placed a "Backup.GHO" with an image of the Windows Partition.
I am using Windows 7 Professional and I have made the Windows Partition into the System Partition and then made it active. Unfortunately, I now have to script the command line to get GHOST to restore back to a known point.
It is a long time since I tried restoring a Ghost Image back to a disk and it is a very long time since I had to script it.