
GHOST Command line options:
(For automated backup)
1st partition (Win2K/XP System) is NTFS
2nd partition (User data - large) is NTFS
3rd partition (Ghost - not given a drive letter under windows so virus does not infect ghost) is FAT32
So - when you boot to 3rd partition it comes up as c: drive. NTFS partitions are not visible from DOS. So all ref to drive is “Drive:Partition” in answer files.
The Win98 directory c:ghost contains 4 files:
Ghost.exe
GHOSTERR.TXT (created by Ghost prog)
GIMAGE.TXT (Answer file for backing up 1st partition)
GRESTORE.TXT (Answer file for restoring 1st partition)
Batch File “Reimage.bat”:
cd
cd ghost
ghost.exe @gimage.txt
Batch file “Restore.bat”:
cd
cd ghost
ghost.exe @grestore.txt
File “gimage.txt”:
-clone,mode=pcreate,src=1:1,dst=1:2imagemainimg.gho
-ntic
-ntil
-sure
-rb
-quiet
File “grestore.txt”
-clone,mode=prestore,src=1:2imagemainimg.gho:1,dst=1:1
-sure
-rb
-quiet
Pretty quick and nasty - but it works!
Note: You need to take extra care to ensure all user data is on 2nd partition. ie if using Offline files use cachemove.exe to shift cache off c: and onto d:
Ensure all outlook mail files (pst/ost/pab) are located on d: (the default location is in users profile on c:).
+++++++++++++++++++++++++++++++++++++++++++
From: marvingaye3
To: ColinNZ
Date Sent: 18 May 2005 01:08 EDT (05:08 GMT)
Subject: Backup
Hi ColinNZ,
Can u please email be the batch file when executed will: make a ghost image of of c: drive into an image file located on D: drive and, the batch file which uses ghost to restore c: drive to last known good state.
Thanks
Marvin

Colin,
Excellent idea!
I.d *strongly* recommend having a copyof ntfs4dos handy since MS.s booter sometimes gets confused when the ntfs partition isn.t first in the boot record. Here.s a link to get you started:
http://www.freewarefiles.com/programs.php?ProgramID=11100&categoryid=9&subcategoryid=90
I.d also recommend rem.ing out the .chkdsk. and similar utility lines in the config/autoexec as you may need to attempt an xcopy from the partition before allowing utils similar to chkdsk to make any pointer changes. You can always call them from the command line.
Cheers,
Gene

Ooops… This forum removes back slashes!
Here’s two of the files again, with backslashes replaces with forward slashes (they should be backslashes).
File “gimage.txt”:
-clone,mode=pcreate,src=1:1,dst=1:2/image/mainimg.gho
-ntic
-ntil
-sure
-rb
-quiet
File “grestore.txt”
-clone,mode=prestore,src=1:2/image/mainimg.gho:1,dst=1:1
-sure
-rb
-quiet

I find it much easier to install the 98 partition first in the c: drive. Currently I have this:
P1 : 30GB FAT32 with multiboot config for “dos 7″ and “win 98SE”
P2 : 120GB extended partition
P2a: 90GB logical drive NTFS
P2b: 30GB FAT32 for data transfer and Ghost images
P3 : Linux swap
P4 : Linux root
The only hard part is finding a distro I like as a desktop workstation OS, I may have to bit the bullet and do a “Linux from Scratch” install to get exactly what I want. Thank god I have no use for any flavour Windows on my server, security is much easier without it.

Yep… My work laptop is set up to dual boot.
There are definitely easier ways to do this if you’re able to install Win98 1st - however I was faced with 20 laptops already in service with Win2K. So installing Win98 1st was not an option.
If you install Win98 1st, then the debug process is not required to set up the dual boot. (XP sets it up automatically).
However… once you understand what’s going on with dumping the bootsectors to file with debug - then you can make almost any dual/tripple boot system work. When using Linux I use the “DD” command to dump the bootsect for the Linux boot partition (instead of debug).
ColinNZ

Point taken. Although you could have ghosted the w2k systems up, installed win 98, ghosted the w2k back down and fiddled with it all, why waste all that time when you had such an elegant alternative?










