Bootable USB
Bootable USB
Bootable USB
B o o t a bl e USB
Topics Covered:
select partition 1
g. active
h. format quick fs=fat32
i.
assign
j.
exit
select partition 1
g. active
h. format quick fs=ntfs
i.
assign
Page 1
Sample Manual Template
j. exit
k. For NTFS you now need to run
i. Bootsect.exe /nt60 X: (Where X is the drive letter of the USB stick.)
ii. This file can be found on the Win7 install cd in the Boot folder.
Page 2
Sample Manual Template
To try this procedure, you can copy the free file manager Q-Dir to your USB drive. I recommend
creating a special folder for all of your tools. Then, navigate to the Q-Dir folder and drag Q-Dirs exe
file to the PStart window. You should see now a new menu point (see screenshot). You can now exit
PStart.
to WAIK, which you already downloaded and installed in our last session. Launch the Deployment
Tools Command Prompt from the Windows Start Menu and type:
mkdir c:\img
imagex /mountrw F:\sources\boot.wim 1 c:\img
I assume here that your USB drive has the drive letter "F:". Now launch Notepad with admin privileges
(right-click and select "Run as administrator") and then open:
c:\img\windows\system32\startnet.cmd
The problem is that the drive letter for your USB drive wont always be the same because the number
of drives in the computer may vary. The following batch script will automatically find your USB drive
and launch PStart:
@echo off
for %%p in (a b c d e f g h i j k l m n o p q r s t u v w x y z) do if exist %%p:\PStart\ set w=%%p
%w%:\PStart\PStart.exe
Add these lines to startnet.cmd after the wpeinit command (see screenshot). I am assuming here that
you copied PStart in a folder named "\PStart" on your USB drive. Please note that PStart stores its
configuration in an XML file in the same folder.
Page 4
Sample Manual Template
If you want to add additional tools, you only have to copy them to the tools folder of your USB drive
and add them to PStart by dragging their exe files to its GUI. You can do this on your Windows 7
machine like I described in my example with Q-Dir. Thus, adding a new tool to your rescue stick will
only costs you a couple of seconds once your USB drive is bootable. That is, in the future only step 3 is
required. No more messing with imageX.
Note that not every portable app works under Windows PE 3.0. Raw Copy and Barts Stuff Test 5,
which I reviewed this week, work fine. If you know of other good tools that work with Windows PE,
please post a comment below or send me a note. I have created a new category in the 4sysops list of
free administration tools for free Windows PE compatible tools.
Page 5
Sample Manual Template