- Community Pick
Creating your Bootable Stick
To actually make your USB key, I like the HP USB Disk Storage Format Tool - its very easy to use. You will also need the files from a Windows 98 boot disk (www.bootdisk.com)
That site is convenient, but we must say that licensing agreements are in effect and you should only install software for which you have valid licenses.
Menu Structure
All of the menu items for your USB key are stored within the config.sys file. Here is a sample:
- [menu] My top level - name is "menu" (though it can be named whatever you want).
- SUBMENU denotes that this selection will take you to the next menu - it uses the [variable], [description] flags.
- MENUITEM is an actual selection (the end of a selection tree). MENUITEM=[variable], [description]. All of the variables need to be stored at the end of the config.sys file for use in the autoexec.bat file
- MENUCOLOR is nice if you want to change the color of your menus [textcolor],[backgroundcol
or] (http://www.easydos.com/me nucolor.ht ml)
So...let's see the whole picture of the menu structure.
Putting Code Behind the Menu
Great! So now that we have a menu setup, we can go into the AutoExec.bat file and put some code into our USB key.
Looking at the code above, let's say you navigate through the entire menu structure and end up picking BIOS Upgrade: T3500. The first section of code in my AutoExec.bat file is to check which option you picked. Your selection is stored as %CONFIG%. When you picked BIOS Upgrade: T3500, you selected the variable T3500_BIOS because MENUITEM=T3500_BIOS, BIOS Upgrade: T3500 (variable, description).
The first section of the AutoExec.bat file looks like this:
This also assumes that you have a folder within your USB stick called BIOS and a file called T3500.exe. After you select the T3500 BIOS upgrade, it will get to this section, hop down to the T3500_BIOS sub section and start executing code - first to navigate into the BIOS folder and second to execute the BIOS upgrade. Finally, once the BIOS upgrade is done, I tell it to go to the end - which exits the USB key.
So let's check out the entirety of the AutoExec.bat file:
Using Ghost to Deploy an Image from your USB Key
You've probably noticed the Win7Base sections of code. This is setup to reference Ghost files to automatically load Ghost.exe and start imaging.
Ghohst.Exe is a product of Symantec and is available here.
The Ghost executable should be located in USBKeyDriveID\Ghost. This also assumes that your filename is win7b.gho
I have found the the Ghost image filename NEEDS TO BE 5 characters long and the individual Ghost image spans should be no larger than 2GB (I have mine split to 1024MB). See your Ghost documentation for more information on creating an image.
Once this menu option is selected, Ghost is loaded, the image is selected and the imaging proceeds. Once the imaging is finished, the PC is rebooted and Windows 7 starts configuring. All of this is done automatically!
CopyWipe
I also like having CopyWipe on my USB stick in case I need to wipe a PC. CopyWipe is a utility program available here:
Free Drive Copy and Wiping Software -- CopyWipe™
http://www.terabyteunlimit
The final warnings are nice because the drives just show up as Hard Drive 0 and Hard Drive 1. Since you are booting off of the USB key - it is Hard Drive 0. Dont wipe it! :)
Closing Comments
Well, that's about everything that I have in my bootable USB key. I'm sure there are different ways to go about some of this, but this is just my example. Feel free to leave comments or ask questions! I will try to help you as best as I can!
Enjoy!
-IT_Crowd