|
||||||||||||||||||||
|
If you are like me, then 90% of your computer is probably betaware. More often than not (MUCH more often in my case), your system ends up crashing. What you need is a quick way to restore everything. Here, your CDR drive can also help you. With a CDR drive, you can create a bootable CD that can restore everything for you, much like the ones that come with Dell, IBM or any number of PC retailers. If you've used one of those disks, you'll know that once you put the CD into the CD-ROM drive, the system will automatically boot off the CD-ROM, much like how it boots off a floppy disk. Once booting is complete, the system will automatically start to restore your files. How is this accomplished? There are three basic parts to a CD of this kind:
Besides a bootable image, you will also need a program that will automate the restore process. One of the most popular programs is Norton's GHOST. This program will both create the image file and restore from it. It is ideal for large scale system replication. Look on PC911 for a tutorial on using ghost. Write The Bootable Image First, prepare a Win98 boot disk, or any boot disk with CD-ROM support. Then follow these instructions:
A Brief on Multiple Configurations As of DOS 6.0, the Autoexec.bat and Config.sys files supported multiple boot configurations, allow the user to custom load a set of drivers for a particular task. This is the same menu you see with Windows 98's boot disk. In this section, I will quickly cover the basics behind reading and understanding multiconfig config.sys/autoexec.bat files. Since you'll most likely be dealing with Win98's boot disk, let's take its autoexec.bat and config.sys files as our example. Autoexec.bat file
@ECHO OFF
:ERROR
:EXT
IF "%config%"=="NOCD" GOTO QUIT
:HELP
:QUIT This may seem scary at first glance, but let's take it one part at a time, and you will see that it is quite simple:
@ECHO OFF In general, what this part of the batch file does (script file) is that it assigns values to a bunch of variables so that the rest of the program can use it. Those are the set commands. It then copies some of the vital files, such as extract.exe and command.com to a temporary part of your memory known as a RAM Drive. And that's all this part does. Simple. In the next part:
:ERROR In the Error section of the autoexec.bat file, the system checks to see if a file called ebd.cab is present. This is the file that contains most of the vital DOS commands on your boot disk, such as format, sys and fdisk. If the file is found, the batch file jumps out of the error checking loop and proceeds. If not, it loops back to the start of the ERROR and continues looping until the ebd.cab file is found, or until the user forcefully terminates the batch file. If ebd.cab is found, the batch program jumps to the EXT section of the file:
:EXT
IF "%config%"=="NOCD" GOTO QUIT Here is where the vital DOS commands from the ebd.cab is extracted to your RAM drive by using the extract command, which was copied to the RAM drive at the very beginning of the program. After the files are copied, the system then checks to see if the user chose to have CD-ROM support via the config.sys menu. If so, CD ROM drivers are loaded. If not, the program quits. To add your own commands so that they are executed regardless of which configuration is chosen, you must put those commands before the line that's marked red. To ensure that one of your commands is only executed if the user chooses to use the CD, put it in between the two blue lines. Now, let's look at your config.sys file:
[menu]
[CD]
[NOCD]
[HELP]
[COMMON] This file is much more readable. In the [menu] section, three choices for the menus are defined. Each menu item is associated with a specific section of the file. For example, if Start computer with CD-ROM support is selected, the system will proceed to load stuff in the [CD] section of the file, after it loads the [COMMON] section. Basically, anything under the COMMON section is loaded regardless of which configuration is chosen. Everything else is pretty obvious if you've ever dabbed in config.sys files. With the understanding of these basic concepts behind multiboot startup files, you should be able to modify the Win98 boot disk to suite the needs of your bootable CD-ROM. Be sure to make sure that everything works before you write it to the CD.
|
|||||||||||||||||||
|