Make your own free website on Tripod.com

PC Repair 3 Lecture #13 - Creating a Custom Restore CD

Materials:
A Complete Working PC
A CD-R/RW Optical Drive and EIDE Cable
A second HDD
The Drivers and Burning Software CD-ROM(s)
One blank CD-RW and 5 blank CD-R Discs
One blank floppy diskette
Student CD-ROM: "Room6359"
Student Diskette: "New Boot A Ver. 2+"
Objectives:
Understanding CD-R/RW Technologies,
Understanding CD-R/RW Media,Drives, and software,
Understanding how to use CD-R/RW Technology,
Using the CD-R/RW Technologies to design and implement a Bootable Recovery CD-ROM for a Custom PC
Competency:
The student will become familiar with the various rewritable Orange Book optical technologies that are employed in modern systems including those that have influenced the desktop storage revolution. The student will be able to identify and describe these technologies and be able to use these technologies competently to construct reliable backups, data warehouses, and system restore discs.
  1. Remove the case cover of one of the PC's and install the CD-R/RW drive as the slave of the secondary ATA controller. Attach the second HDD as the master of the secondary controller on the same cable as the CD-R/RW drive. Allow the burner to rest on the drive bay housing above the installed drives and allow the second hard drive to rest on top of the burner. Use the Room 6359 CD-ROM to install Windows 98 on the primary master drive. Use the CD-ROM to install DOS 6.22 on the second drive.

  2. Bootup the system. If Windows 98 detects and installs drivers allow it to do so. If it needs the Windows 98 CD, insert the student CD-ROM, and type in the location of the installation files as D:\WIN98SE. Allow the reboot to the hard drive if needed. Once up to the desktop, insert the Black Yamaha CD-ROM that came with the burner. Select the top most choice in the installation program menu that appears, to install Nero Burning ROM software. Accept all defaults of the installation process and reboot when necessary.

  3. When complete, Start > Programs > Ahead Nero > Nero Burning ROM. The program informs you that Autoinsert notification is on and by default offers to disable it and reboot. Allow it to do this.

  4. Upon reboot, insert the student CD-ROM and boot to it. At the prompt execute GHOST.EXE. In Ghost, choose Local > Disk > To Image. Select the master of the primary ATA controller as the drive to image and then browse to the root of the D: drive as the place to save the image file to. Name the file mydrive then click Save. Ghost will automatically append the extension .GHO to the filename.

  5. Ghost asks if you want to compress the image file. The main savings of compressing an image file is that all empty space will not be duplicated in the image file, GHOST does this whether you choose compression or not. However, compression can still reduce the image file size by up to 50% or more. Since this file must end up on a 700MB CD-ROM select High. Ghost asks to proceed with image file creation. Let it.

  6. When complete. Quit Ghost and the system returns to the prompt. Now insert a blank 3 ½" floppy diskette in Drive A: and format it bootable. Copy the files HIMEM.SYS, OAKCDROM.SYS, XMSDSK.EXE, CDGRAB.EXE and MSCDEX.EXE from the virtual A: drive to the physucal B: drive. The Student CD-ROM uses the EL Torito specification 3 ½" Floppy Emulation as the boot method. In this the boot strap loader of the CD-ROM will set up drivers that will make an image file on the CD-ROM take over the A: drive designation. Whenever DOS requests a read of the A: drive the driver will intercept the request and pass it onto the low level code within itself that can read sectors of the CD-ROM, then return the information to the request as if it came from the A: drive. This will push the actual physical floppy diskette drive back to the designation of the B: drive.

  7. Now create the CONFIG.SYS on the floppy that will load HIMEM.SYS and OAKCDROM.SYS. Before creating the AUTOEXEC.BAT run GHOST /? at the prompt to read the help including how to run it from a batch file using commandline switches. Determine the command that would be needed to run GHOST to restore the drive image file back to it without any interaction needed from the user.

  8. Once complete create the AUTOEXEC.BAT like this:

    @echo off
    mscdex /d:CD01 /L:Q
    xmsdsk 4096 k: /y /t
    copy restore.bat k:
    k:
    restore
    
  9. Create the following file and name it restore.bat and save it on the B: drive also:

    @echo off
    cls
    echo To Restore the hard drive automatically press any key
    echo Otherwize, press [CTRL]+[C] to Quit...
    pause > nul
    Q:
    cd \bin
    ghost –clone,mode=load,src=Q:\image\mydrive.gho –sure –quiet
    K:
    cls
    cdgrab e
    echo Press any key to reboot... 
    pause > nul
    reboot
    
  10. Create REBOOT.COM on the floppy diskette. (This will be described in the lecture.)

  11. Reboot to Windows 98 and open Notepad and create an Autorun.inf file. Here is the syntax:

    [AutoRun]
    icon=filename.ext,xx
    

    Open My Computer > View > Folder Options > File Types > New Type > Change Icon. Find a nice icon in the choices. If you want to look in other files direct it to C:\WINDOWS\MORICONS.DLL or C:\WINDOWS\SYSTEM\PIFMGR.DLL. Any executable that displays a special icon can be specified also. Some have more than just the one that Windows shows. Once you find a nice icon. Note which file it is in (that substitutes for filename.ext in the autorun.inf) and count the icons starting with the upper left most one as number zero and count down the columns until you reach the icon you chose. That will be the xx number in the autorun.inf line above. Make these changes to the file and save it as autorun.inf in My Documents.

  12. You are now ready to create the bootable CD-ROM which will use the diskette as the source for creating a floppy emulation bootable CD-ROM. Click Start > Programs > Ahead Nero > Nero – Burning ROM. After the SCSI/IDE bus scan the program launches a Wizard. Cancel the Wizard. In the resulting Project Window scroll down the left side until you find the CD-ROM (Boot) icon and single click it:

  13. After a moment the Project Window opens the Boot Tab and indicates that it will use drive A: as the source. Click the Label tab and type in RESTORE_CD as the volume label and click the New button on the right.

  14. In the Project Navigator window Right click on the white space under the Volume label in the far left window titled ISO1 and select Create Folder. Type in the name BIN and hit [Enter]. Single click the Volume label itself and then create another new folder in the white space under it named IMAGE:

  15. Now single click on the new folder named BIN. Its contents are in the pane to its immediate right (it is currently empty.) Now in the third pane from the left open the student CD-ROM and click on the BIN folder. Click on the top file listed in the window pane to the far right, now press {Ctrl]+[A] to select all of the files in the folder. Now use the mouse to drag any one of the selected files into the second from the far left window pane (the contents of the BIN folder window pane). All of the files from the student CD-ROM BIN folder will be copied into the BIN folder of the new project:

  16. Now click on the project’s IMAGE folder in the far left window pane. In the third Window pane (the local system browser window) open the D: drive and drag the ghost image file into the IMAGE folder contents pane (the second Window from the left):

  17. Now click on the Volume label RESTORE_CD in the far left pane to select the root directory of the CD-ROM. Ignore the fact that when you click on things in this pane they automatically highlight the name for renaming purposes. Now in the third pane from the left click on My Documents. Drag the file AUTORUN.INF from the fourth pane to the second (the contents of the selected Directory of the CD-ROM.) Now in the third pane click on the Windows folder and scroll down to the file you found the icon in and drag it to the root of the CD-ROM as well.

  18. The project is now complete. Open the CD-R/RW drive’s tray and insert a blank recordable CD-R or CD-RW disc and close it. Float the mouse over the cool bar button above these window panes until you find the button with the tool tip that reads “Opens the Write CD dialog” and then click it. In the Burn tab of the project window that appears, place a check next to Finalize CD and then click the Write button:

  19. This results in the application minimizing itself and opening the burn progress dialog box:

  20. When the burn is complete click OK on the message box and then click the Discard button at the bottom of the Writing Window. Remove the new CD-ROM and also remove the student CD-ROM from the internal CD-ROM drive. Close Nero and click No to the save the changes message box. Insert your CD in the internal CD-ROM drive and remove the floppy from drive A: Click Start > Shutdown > Restart.

  21. The system should boot to your CD-ROM and offer you the choice of automatically restoring the drive, or to quit press [Ctrl]+[C]. Press [Ctrl]+[C] and then answer Yes to the prompt to Terminate the batch job. This leaves you at the A: prompt. Change to the Q: drive and move into the BIN folder. Run _ZAP 0 and then change back to the A: drive which is a virtual floppy drive that launched when the CD-ROM booted. Run the command AUTOEXEC[Enter] and this time press any key to see if the restoration commands work. Ghost should run automatically, then the CD disc should be automatically ejected after the prompt to press any key and then remove the disc. Press any key as instructed and the system will reboot and Windows 98 will boot up.

  22. List the steps to physically installing a CD-R/RW drive:





  23. Which DOS level drivers recognize the CD-R/RW drive?





  24. Can these drivers write to CD-R or CD-RW media? Explain.



  25. Name the three main types of El Torito compliant bootable CD-ROMs and what you would prepare for them to work:







  26. In preparing a DOS bootable floppy for a Floppy A: Emulation bootable CD-ROM, what drivers must be loaded for the system to gain access to the rest of the CD?


  27. Would these drivers be needed if Hard disk C: Emulation were used instead? Explain.


  28. The easiest method to create to create a restorable image file of the system’s drive is to GHOST the physical disk rather than a partition. Explain why and what additional hardware is required to do this.






  29. Explain how you can browse a file’s contents for icons and figure out which one you want displayed by Explorer to represent your CD-ROM. Be detailed and specific:






Copyright©2000-2004 Brian Robinson ALL RIGHTS RESERVED