Documente Academic
Documente Profesional
Documente Cultură
back track
BackTrack2/Windows XP Dual Boot How-To
WARNING:
While this procedure is pretty darn safe (if followed correctly) and we’ve never had a meltdown as a result,
you should know that ANY time you mess with your harddrive, especially repartitioning it, you are taking the risk of
losing EVERYTHING. Make sure your backups are up to date, make a Ghost image, pray to your God, whatever.
Most of all... if you can’t stand the heat, stay out of the kitchen.
1. Properly shut down your windows operating system. If there are any errors on your windows
partitions, the tool will detect them and prevent you from repartitioning your drive.
back track
2. We’ll be using the GParted tool to resize your existing windows partition in order to make room for
the new Linux operating system. There is a self-booting ISO available at http://gparted.sourceforge.
net. Download the ISO and burn it to a CD or DVD. (Note: We’ve found that ISOs burned to DVDs
tend to boot faster compared to the same ISO burned to a CD).
3. Boot your computer from your GParted disc. At the boot menu (See figure 1a), hit Enter to accept
the default choice.
www.pskl.us www.pskl.us www.pskl.us www.pskl.us www.pskl.us www.pskl.us www.pskl.us www.pskl.us www.pskl.us www.pskl.us www.pskl.us
At the prompt, type
gparted ~# Forcevideo
7. at the “Type the name of the driver you want to be forced in xorg.conf” prompt,
enter “vesa”
9. The system will now start the graphical environment using the standard VESA drivers. It won’t be
terribly pretty, but it will work just fine. Alternatively (eg: in the future when you know this is going
to happen anyway), you can select the following option from the boot menu:
back track
can create the new partition at the end of your
drive if you like, but BIOS limitations in many
computers prevent the system from booting
from such a partition, especially if you have
a large hard drive in your laptop. Your resize
window should look something like figure 1c. figure 1c - GParted Resize Window
www.pskl.us www.pskl.us www.pskl.us www.pskl.us www.pskl.us www.pskl.us www.pskl.us www.pskl.us www.pskl.us www.pskl.us www.pskl.us
14. If you have errors on your NTFS partition, you may
see a screen similar to figure 1e. If so, reboot into
windows and repair the disk errors before trying
again.
back track
figure 1f - GParted repartitioning completed
figure 1g - GParted exit screen
www.pskl.us www.pskl.us www.pskl.us www.pskl.us www.pskl.us www.pskl.us www.pskl.us www.pskl.us www.pskl.us www.pskl.us www.pskl.us
Part II: Install BackTrack
back track
8. At the fdisk prompt, enter “p” to print (on the
screen) the list of partitions. You should see your
newly-resized windows partition listed.
www.pskl.us www.pskl.us www.pskl.us www.pskl.us www.pskl.us www.pskl.us www.pskl.us www.pskl.us www.pskl.us www.pskl.us www.pskl.us
14. Check on your newly created partition by typing
the command “fdisk -l” at the command line.
You should see both partitions listed. Note the
device name (/dev/hda2 or /dev/sda2) for your
linux partiton (see figure 2d).
17. Start the BackTrack installer. Open the Backtrack Menu (in
the lower left of the screen -- the same place you would find
the windows Start button) and select “BackTrack Installer”
back track
from the System Menu (see figure 2f).
20. Click “Install” to begin the installation process. This can take
anywhere between five and sixty minutes, depending upon
the speed of your computer.
21. When the installation is complete, reboot your computer figure 2f - BackTrack installer
by clicking on the KDE Start menu -> Log Out -> End current
session.
23. The cdrom will be ejected automatically and your system will now boot into BackTrack from the
hard drive installation.
24. Allow your system to reboot, and once again log in as root using the default password of “toor”.
Start the GUI by typing “startx” at the command prompt.
www.pskl.us www.pskl.us www.pskl.us www.pskl.us www.pskl.us www.pskl.us www.pskl.us www.pskl.us www.pskl.us www.pskl.us www.pskl.us
Part III: Customize your installation.
back track
4. Add the following lines to the bottom of the file
figure 3b - kwrite to edit the boot menu
other=/dev/hda1
label=Windows
www.pskl.us www.pskl.us www.pskl.us www.pskl.us www.pskl.us www.pskl.us www.pskl.us www.pskl.us www.pskl.us www.pskl.us www.pskl.us
5. You may also wish to adjust the timeout and
your default operating system. In the following
example (see figure 3c), we’ve changed the
timeout to ten seconds, set the default operating
system to Windows, and changed the menu text
to read “Backtrack 2” instead of “bt”:
back track
8. You can double-check your installation by simply
running “lilo”. You should see one line of
figure 3d - lilo -v command to rewrite boot sector
www.pskl.us www.pskl.us www.pskl.us www.pskl.us www.pskl.us www.pskl.us www.pskl.us www.pskl.us www.pskl.us www.pskl.us www.pskl.us
9. Typing “startx” every time you boot gets old
rather quickly, so let’s configure BackTrack
do it automatically. To boot directly into
the graphical user environment, type
“kwrite /etc/inittab” and change
the default runlevel to 4.
Well, there ya go. You now have a fully-functional dual-booting BackTrack machine.
If you use BackTrack a lot, don’t forget to make a donation to the
remote-exploit.org team! Great stuff like this doesn’t write itself.
back track
Look for more great tutorials involving BackTrack and system/network security at pskl.us
www.pskl.us www.pskl.us www.pskl.us www.pskl.us www.pskl.us www.pskl.us www.pskl.us www.pskl.us www.pskl.us www.pskl.us www.pskl.us