Radified Community Forums
http://radified.com/cgi-bin/yabb2/YaBB.pl
Rad Community Technical Discussion Boards (Computer Hardware + PC Software) >> NightOwl's Bootable CD/DVD >> Auto ghost back the latest ghost --- usb --- grub4dos method
http://radified.com/cgi-bin/yabb2/YaBB.pl?num=1340427957

Message started by an illusions on Jun 23rd, 2012 at 12:05am

Title: Auto ghost back the latest ghost --- usb --- grub4dos method
Post by an illusions on Jun 23rd, 2012 at 12:05am
USB version

Use at your own risk.
The batch file will ghostback your latest ghostfile.gho to first
unhidden primary partition.

Assumption
   ghostfile.gho is located in main directory on one drive
   ghostfile.gho is name as ghostfile1.gho, ghostfile2.gho etc.
   
   




Can download the file here...

Link to download removed by NightOwl

[edit]Edit by Nightowl--6/23/2012 at approx. 11:00 am

Your download appears to contain a working copy of *ghost.exe*--that's a protected, licensed program by Symantec, and distributing it would be a violation of their EULA!  That's the one main rule we have here on our forum--no distribution of licensed software that is not freeware or in the public domain for free use and distribution.

I have temporarily removed your link.

You can offer a download without that proprietary program that others can then copy their properly licensed version of the program to the boot disc, disk, or usb flashdrive. [/edit]




config.sys  -------------

device=ansi.sys

autoexec.bat -----------------------

@echo off
prompt $p$g
SET TZ=GHO-08:00


doskey.com /insert
mouse.com
cls

rem /lX  Sets the letter of the first used drive. For example, lC means that the first partition detected contains the letter C.
ntfs4dos /lC findG.bat

findG.bat ----------------------

@echo off

rem booting from usb

rem usb stick         hd1,1 -- assign c
rem hd c       hd2,1 -- assign d
rem hd d       hd2,2 -- assign e
rem hd e       hd2,3 -- assign f

path a:

rem Check drives for existence of .gho file and return drive letter

set drive=
if exist E:\*.gho set drive=E:
if exist F:\*.gho set drive=F:
if exist G:\*.gho set drive=G:
if exist H:\*.gho set drive=H:
if exist I:\*.gho set drive=I:
if exist J:\*.gho set drive=J:
if exist K:\*.gho set drive=K:
if exist L:\*.gho set drive=L:
if exist M:\*.gho set drive=M:
if exist N:\*.gho set drive=N:
if exist O:\*.gho set drive=O:
if exist P:\*.gho set drive=P:
if exist Q:\*.gho set drive=Q:
if exist R:\*.gho set drive=R:
if exist S:\*.gho set drive=S:
if exist T:\*.gho set drive=T:
if exist U:\*.gho set drive=U:
if exist V:\*.gho set drive=V:
if exist W:\*.gho set drive=W:
if exist X:\*.gho set drive=X:
if exist Y:\*.gho set drive=Y:
if exist Z:\*.gho set drive=Z:


%drive%
FOR %%l IN (*.gho) do set ghofile=%%l

set drive2=
if exist E:\*.gho set drive2=2:2
if exist F:\*.gho set drive2=2:3
if exist G:\*.gho set drive2=2:4
if exist H:\*.gho set drive2=2:5
if exist I:\*.gho set drive2=2:6
if exist J:\*.gho set drive2=2:7
if exist K:\*.gho set drive2=2:8
if exist L:\*.gho set drive2=2:9
if exist M:\*.gho set drive2=2:10
if exist N:\*.gho set drive2=2:11
if exist O:\*.gho set drive2=2:12
if exist P:\*.gho set drive2=2:13
if exist Q:\*.gho set drive2=2:14
if exist R:\*.gho set drive2=2:15
if exist S:\*.gho set drive2=2:16
if exist T:\*.gho set drive2=2:17
if exist U:\*.gho set drive2=2:18
if exist V:\*.gho set drive2=2:19
if exist W:\*.gho set drive2=2:20
if exist X:\*.gho set drive2=2:21
if exist Y:\*.gho set drive2=2:22
if exist Z:\*.gho set drive2=2:23


echo.
[0;32;40m
echo  * Ghost file
[1;33;40m%ghofile%
[0;32;40m at drive 
[1;33;40m%drive%
[0;32;40m
echo  * check if disk:volume 
[1;33;40m%drive2%
[0;32;40m  match the table above else
[1;33;40m
input " * type the correct disk:volume =  " drive2 /E /L4
echo.
[0m

if exist e:\windows GOTO part2

echo ghost.exe -CLONE,MODE=PLOAD,SRC=%drive2%\%ghofile%:1,DST=2:1 -FX
pause
ghost.exe -CLONE,MODE=PLOAD,SRC=%drive2%\%ghofile%:1,DST=2:1 -FX
goto done

:part2

echo ghost.exe -CLONE,MODE=PLOAD,SRC=%drive2%\%ghofile%:1,DST=2:2 -FX
pause
ghost.exe -CLONE,MODE=PLOAD,SRC=%drive2%\%ghofile%:1,DST=2:2 -FX
:done
restart


Title: Re: Auto ghost back the latest ghost --- usb --- grub4dos method
Post by an illusions on Jun 23rd, 2012 at 12:09am
Before doing anything

read these carefully

Place your Favorite ISOs in a Single USB Drive with a Single Menu.mht

Using Grub4DOS to Create a Bootable Drive.mht

Then

step 1     format the usb to NTFS using PeToUSB
              make sure you format the correct drive letter
              refer to 1 PeToUSB config  .jpg

step 2     Using Grub4DOS to Create a Bootable Drive
              by grub GUI installer
              refer to 2 config .jpg

step 3     transfer these files to the usb
                autoghost.ima
                ghost.ima
                grldr
                menu.lst

done

=======================
menu.lst 


#usb bootable

color white/blue black/light-gray

timeout  30
default 0

title Boot first HDD
map (hd0) (hd1) || map (hd0) (hd0)
map (hd1) (hd0) || map (hd0) (hd0)
map --hook
chainloader (hd0)+1
rootnoverify (hd0,1) && rootnoverify (hd0,0)

title Norton Ghost v11.5.1\n Cloning Tools
map --mem /ghost.ima (fd0)
map --hook
chainloader (fd0)+1
rootnoverify (fd0)

title AutoGhost back\n AutoGhost back *.gho to c: 
map --mem /autoghost.ima (fd0)
map --hook
chainloader (fd0)+1
rootnoverify (fd0)


title CommandLine\n
commandline

title Reboot Computer \n
reboot

title Shutdown Computer\n
halt

            


Title: Re: Auto ghost back the latest ghost --- usb --- grub4dos method
Post by Brian on Jun 23rd, 2012 at 12:20am
@ an illusions

That is great. I have a restore running now.

Edit... Restore successful. Very impressive.

Title: Re: Auto ghost back the latest ghost --- usb --- grub4dos method
Post by an illusions on Jun 23rd, 2012 at 3:08pm

an illusions wrote on Jun 23rd, 2012 at 12:05am:
Can download the file here...

Link to download removed by NightOwl

Edited:

Edit by Nightowl--6/23/2012 at approx. 11:00 am

Your download appears to contain a working copy of *ghost.exe*--that's a protected, licensed program by Symantec, and distributing it would be a violation of their EULA!That's the one main rule we have here on our forum--no distribution of licensed software that is not freeware or in the public domain for free use and distribution.

I have temporarily removed your link.

You can offer a download without that proprietary program that others can then copy their properly licensed version of the program to the boot disc, disk, or usb flashdrive. 


Sorry, my mistake.

Here is the correct one without ghost.exe

https://www.box.com/s/d3f97247fc7e5d95ad48

Title: Re: Auto ghost back the latest ghost --- usb --- grub4dos method
Post by an illusions on Jun 24th, 2012 at 8:41am
As per Dan's comments in the other thread my script did not cover all senarios.

http://radified.com/cgi-bin/yabb2/YaBB.pl?num=1340318897/15#15

It is better to use ghost manually.

Back to the drawing board ...     :-[

Title: Re: Auto ghost back the latest ghost --- usb --- grub4dos method
Post by Brian on Jun 24th, 2012 at 4:55pm
@ an illusions

Thanks for your contribution. I had a lot of fun using your CD and USB flash drive in my test computer and I was oblivious to the potential problems until I saw Dan's posts.

I'm keen on automated restores too but I'm not a Ghost user. My restore scripts use a "named" image and the target is identified by Disk Signature and Partition ID. The restore environment is a WinPE installed on the HD. No CDs or USBFDs.

Radified Community Forums » Powered by YaBB 2.4!
YaBB © 2000-2009. All Rights Reserved.