script to restore image from server or 2nd partition
I am relatively new to Ghost and I am seeking some help with something I am trying to do. I once saw in a training facility the following scenario:
All machines in lab had a copy of a default image on the second partition of their hard drive. When the machine booted up, you were presented a menu where you could choose to restore the default image or you could not select anything and the current image would continue to load. They used this so when the users were finished doing whatever they did to the computers, that the support desk simply rebooted and chose to restore the image that was stored on the second partition. That way the next person to use it has a default clean install.
Does ghost have any tools that can help me do this or do I need to get my hands on a general script and modify it to my needs? It doesn't need to be anything special. I have a small network at home and I want my primary machine to store a default image on my second hard drive and also, if possible, my windows 2003 server. I want to use the script in a way that it doesn't require me to insert a floppy when I need to do it, but just make it part of the boot process.
appreciate any help. Sorry if its a dumb question, but I am not savvy with ghost. I have Ghost 8.0, by the way.
All machines in lab had a copy of a default image on the second partition of their hard drive. When the machine booted up, you were presented a menu where you could choose to restore the default image or you could not select anything and the current image would continue to load. They used this so when the users were finished doing whatever they did to the computers, that the support desk simply rebooted and chose to restore the image that was stored on the second partition. That way the next person to use it has a default clean install.
Does ghost have any tools that can help me do this or do I need to get my hands on a general script and modify it to my needs? It doesn't need to be anything special. I have a small network at home and I want my primary machine to store a default image on my second hard drive and also, if possible, my windows 2003 server. I want to use the script in a way that it doesn't require me to insert a floppy when I need to do it, but just make it part of the boot process.
appreciate any help. Sorry if its a dumb question, but I am not savvy with ghost. I have Ghost 8.0, by the way.
0 Comments
[ + ] Show comments
Answers (3)
Please log in to answer
Posted by:
OregonDave
19 years ago
Ghost supports the use of command-line switches to skip the interface completely and get straight to work. I did some searching in google, and it looks like the -clone switch is what you want to use. Here's a doc that explains the -clone switch in plenty of detail: [link]http://service1.symantec.com/SUPPORT/ghost.nsf/docid/1998082413392025?Open&src=ent&docid=1998082612540625&nsf=ghost.nsf&view=d87bb6ce0bde286d88256d6a00452701&dtype=corp&prod=Symantec%20Ghost&ver=8.x&osv=&osv_lvl=[/link]
So if I'm reading the documentation correctly, to do what you described (reload partition 1 from a saved image on partition 2), I'd try using a command like ghost.exe -clone,mode=pload,src=d:\image.gho:1,dst=1:1 -rb -sure (I know from using ghost that -rb tells ghost to reboot after the operation is complete, and -sure starts the operation without a final "Are you sure you want to proceed?" dialog)
Now, you'll still need to set up the OS to boot into DOS if the user selects a certain boot-up option, and you'll have to make sure that the reimaged machine(s) work properly after imaging (if you use the same image for all machines, when they come up they'll have the same machine name/SID, unless you sysprep before taking the image), but hopefully that gets you further along in the process?
So if I'm reading the documentation correctly, to do what you described (reload partition 1 from a saved image on partition 2), I'd try using a command like ghost.exe -clone,mode=pload,src=d:\image.gho:1,dst=1:1 -rb -sure (I know from using ghost that -rb tells ghost to reboot after the operation is complete, and -sure starts the operation without a final "Are you sure you want to proceed?" dialog)
Now, you'll still need to set up the OS to boot into DOS if the user selects a certain boot-up option, and you'll have to make sure that the reimaged machine(s) work properly after imaging (if you use the same image for all machines, when they come up they'll have the same machine name/SID, unless you sysprep before taking the image), but hopefully that gets you further along in the process?
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.