Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
Photo

Auto ghost recovery restore partition needed. Please Help!


  • Please log in to reply

#1
fullclip23

fullclip23

    New Member

  • Member
  • Pip
  • 3 posts
Scenario:
Lab environment needs to be reimaged locally. Restore recover partition needed. Would like to add a "RESTORE" option to the boot menu. It needs to be simple enough for a user to select is from the boot menu and the user will end up with a fresh new image.

Tools available:
Ghost, windows98 bootdisk

Setup:
One physical 40gb hard drive partioned in two [c:] (ntfs) & [d:] (fat32)
[c:] contains xp pro operating sytem
[d:] contains a ghost image .gho file (this ghost image is an image of an image placed on the [d:] partition) hope that makes sense. Basically I dumped an image of the [c:] & [d:] partition onto the [d:] partitinon and then captured an image of the entire disk and replaced it with the image that was on the [d:] partition.

Any advice or step by step tutorial would be greatly appreciated if this is even possible.
Thanks in advance.
  • 0

Advertisements


#2
starjax

starjax

    Global Moderator

  • Global Moderator
  • 6,678 posts
ok, I will provide you with guidance only. I will not just tell you your question. Educational experience.

create a hidden partion to contain the ghost file. once the partiion is hidden, windows won't see it. with a boot menu option you can execute the restore. This is essentially what i've done in the past for training rooms.
  • 0

#3
Neil Jones

Neil Jones

    Member 5k

  • Member
  • PipPipPipPipPipPipPipPip
  • 8,476 posts

create a hidden partion to contain the ghost file. once the partiion is hidden, windows won't see it. with a boot menu option you can execute the restore. This is essentially what i've done in the past for training rooms.


A more advanced (and potentially secure) method of doing this is the same idea but run it from the CD instead. Therefore instead of somebody accidentally or deliberately selecting Restore from the boot menu, one would have to physically insert the CD into the drive and boot off of it.
  • 0

#4
fullclip23

fullclip23

    New Member

  • Topic Starter
  • Member
  • Pip
  • 3 posts

with a boot menu option you can execute the restore.


Created "restore" boot option on boot menu and pointed it to the correct disk and partition but i am still unable restore succesfully. Any suggestions on the correct commands or switches needed. What am i missing?
  • 0

#5
starjax

starjax

    Global Moderator

  • Global Moderator
  • 6,678 posts
what is the error?
  • 0

#6
fullclip23

fullclip23

    New Member

  • Topic Starter
  • Member
  • Pip
  • 3 posts
Batch files and boot.ini listed below. jpeg lists file on fat32 partition.
-----------AUTOEXEC.BAT------------
@ECHO OFF
mode con cp prepare=((850) ega.cpi)
mode con cp select=850
keyb uk,,keyboard.sys
SMARTDRV

IF "%CONFIG%"=="CD" GOTO CD
IF "%CONFIG%"=="NOCD" GOTO END
IF "%CONFIG%"=="GHOST" GOTO GHOST

:CD
A:\MSCDEX /D:SSCD000
GOTO END

:GHOST
A:\MSCDEX /D:SSCD000
CALL MENU
GOTO END

:END

------CONFIG.SYS-----------

[Menu]
Menuitem=CD, DOS with CD Support
Menuitem=NOCD, DOS with No CD Support
Menuitem=GHOST, DANGER ! Reformat Options Menu

[CD]
device=display.sys con=(ega,,1)
country=044,850,country.sys
DEVICE=HIMEM.SYS
DEVICE=A:\SSCDROM.SYS /D:SSCD000 /V

[NOCD]
device=display.sys con=(ega,,1)
country=044,850,country.sys
DEVICE=HIMEM.SYS

[GHOST]
device=display.sys con=(ega,,1)
country=044,850,country.sys
DEVICE=HIMEM.SYS
DEVICE=A:\SSCDROM.SYS /D:SSCD000 /V

----------MENU.BAT-----------------

@ECHO OFF
CLS
ECHO.
ECHO.
ECHO.
ECHO.
ECHO A) Backup - Creates a new NOW.GHO file in D:\Systems
ECHO.
ECHO B) Creates a new Windows.GHO file in D:\Systems
ECHO.
ECHO C) Reformat Hard Drive from file - All Data on Drive C: will be LOST !
ECHO.
ECHO D) Reformat Hard Drive from CD - All Data on Drive C: will be LOST !
ECHO.
ECHO E) ! Exit - Do Nothing !
ECHO.
ECHO.

CHOICE /N /C:ABCDE Pick a letter (A, B, C, D, or E)%1

IF ERRORLEVEL == 5 GOTO EXIT
IF ERRORLEVEL == 4 GOTO D
IF ERRORLEVEL == 3 GOTO C
IF ERRORLEVEL == 2 GOTO B
IF ERRORLEVEL == 1 GOTO A

:A
CALL BACKUPC.BAT
Goto Exit

:B
CALL NEWGHOST.BAT
Goto Exit

:C
CALL HD_BACK.BAT
Goto Exit


CALL CD_BACK.BAT
Goto Exit

--------BACKUPPC.BAT---------
C:\ghost -clone,mode=pdump,src=1:1,dst=D:\Systems\NOW.gho -SURE -Z3 –RB

----------NEWGHOST.BAT------------
C:\ghost -clone,mode=pdump,src=1:1,dst=D:\Systems\windows.gho -SURE -Z3 –RB

----------HD_BACK.BAT------------
C:\ghost -clone,mode=pload,src=D:\Systems\Windows.gho1:1,dst=1:1 -SURE -RB
GOTO OUT

----------CD_BACK.BAT-------------
@Echo Off
CLS
ECHO.
ECHO.
ECHO.
ECHO ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
ECHO ³ ³
ECHO ³ You are about to reformat your Hard Disk ! All Data ³
ECHO ³ will be PERMANENTLY LOST - If you have Data that you ³
ECHO ³ need ON THE C: drive, back it up BEFORE carrying out ³
ECHO ³ this procedure - YOU ARE WARNED that proceeding now ³
ECHO ³ destroys ALL Data on the C: Drive ³
ECHO ³ ³
ECHO ³ Press 'Y' to REFORMAT or 'N' to EXIT ³
ECHO ³ ³
ECHO ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ

CHOICE /C:yn /N
If errorlevel 2 goto Exit
If errorlevel 1 goto GHOST

:GHOST
C:\ghost -clone,mode=pload,src=E:\windows.gho1:1,dst=1:1 -SURE -RB
GOTO OUT


:EXIT
CLS
ECHO.
ECHO.
ECHO.
ECHO ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
ECHO ³ ³
ECHO ³ You have chosen not to continue with this process ! ³
ECHO ³ No files have been changed. ³
ECHO ³ ³
ECHO ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
GOTO OUT

-------boot.ini--------------
[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /noexecute=optin /fastdetect
multi(0)disk(0)rdisk(0)partition(2)\autoexec.bat="RESTORE"

When i execute menu.bat i keep getting
CDR101: Not ready reading drive E

When i execute hd_backup.bat i keep getting
C:\>C:\ghost -clone, mode=pload, src=D:\Systems\Win.gho:1, dst+1:1 -sure -rb
Bad command or file name
C:\>GOTO OUT
Label not found

Any advice would be greatly appreciated.

Attached Thumbnails

  • untitled.JPG

Edited by fullclip23, 14 April 2006 - 11:45 AM.

  • 0

#7
alex2078

alex2078

    New Member

  • Member
  • Pip
  • 1 posts
Did this end up working for you. I am trying to do the same thing which is add an option onto the boot menu, by editing the boot.ini. I copied the contents of a ghost flopply boot disk, copied it to a fat partition, and then added a patch the to autoexec.bat in the boot.ini. No luck. I've also added the path to the ibmdos and ibmbio.com files and no luck neither. just hangs. I am able to create a bootable cd, but will prefer to avod having to give remote users boot cds
  • 0

#8
rustiferch

rustiferch

    New Member

  • Member
  • Pip
  • 3 posts
Everyone,

I have had some success with AutoGhost bootable CD/DVDs and Network Ghost Automation.
After some popularity, I have recently created a web page for this at http://autoghost.mine.nu/ where you can download the initial release and get information and how-to's.

Good luck and I hope this helps.

RustiferCH
  • 0

#9
rustiferch

rustiferch

    New Member

  • Member
  • Pip
  • 3 posts
I went away and thought about this further also, and realized a disk you could boot off that looks at your local D drive and grabs a ghost image then loads the image to the C drive. It is still in testing but does seem to work. I will eventually release this on my AutoGhost site (as above) but for now if you want a copy, send me an email.

I believe it would also be possible to have this boot of the 2nd partition (D drive) as it is Bart PE, though I am yet to try this. (a boot.ini mod would work too.)

RustiferCH

Edited by rustiferch, 18 December 2008 - 03:59 PM.

  • 0

#10
frahana

frahana

    New Member

  • Member
  • Pip
  • 1 posts
I had already faced such a problem last time I thought that my data has gone for ever as my windows could not boot up even I could not access my files and data. but I should thanks to a recovery tool Stellar Phoenix Partition Recovery software which helps and recovers my data of atleast 80GB HDD without any hassle. This software is a non destructive and read-only utility which also helps you recover data lost due to accidental format, software malfunction. This software is helpful to locate and recover all your lost, missing, inaccessible as well as deleted data. You may try this software may be it will help you as well.
http://www.partition...y-software.com/
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP