Welcome to XnonymouX Blog

Saturday, 8 September 2012

How to dual-boot backtrack 5 R2 and windows 7 alongside eachother

By on 10:05

BackTrack is a Linux distribution that is based on Ubuntu, designed for hackers and/or security professionals, and loaded with the best Free Software and Open Source penetration testing applications available.
The latest edition is BackTrack 5 R2 (the “R” is for Revolution), and the most recent article about it published on this website, before the publication of this one, is Install BackTrack 5 Revolution 2 on external hard drive.
In this article, the steps required to dual-boot the KDE edition with Windows 7 (there is also a GNOME edition), are presented. To begin, download an installation image from here. Burn it to a DVD, then place the DVD in your computer’s optical drive and reboot. The system will boot into a console and you will see a prompt just like the one in the image below. To boot into a Live KDE desktop, type startx and press the Enter key on your keyboard.
BackTrack 5 R2 Startx
Once in the Live desktop, click on the Install BackTrack icon on the desktop. And when the installer launches, click through the first few steps until you get to the one shown below, It is the fourth of eight steps of the installation process. Notice that you have four disk partitioning options. How you want to set up the dual-boot system will determine which one you select.
Since the objective is to set up a dual-boot system, you obviously do not want to choose the second option (Erase and use entire disk). Select the first option if all the space on the disk is taken up by Windows and you want the installer to shrink Windows and install BackTrack. Select option 3 (Use the largest continuous free space) only if there is unpartitioned space on the target disk and you want the installer to auto-partition the space. Use the fourth option (Specify partitions manually (advanced)) if you want to create a custom set of partitions. This assumes that you have some knowledge of disk partitioning in Linux. If you do not, and want to go this route, you might want to read guide to disks and disk partitions in Linux and tips for dual-booting Windows and Linux.
Just to show how this can be done manually, the last option is selected for this tutorial.
BackTrack 5 R2 Disk Partitioning Options
And it just so happens that the target disk has some unpartitioned space. So the next step is to select it and click the Addbutton. By default, the BackTrack 5 installer creates just two partitions – one for the root partition, and the other for Swap. For a distribution of this sort, that is likely all you need, unless you want to add an NTFS partition at the end for whatever reason you can think of. For this tutorial, just two partitions will be created.
BackTrack 5 R2 Advanced Partitioning Tool
This is the partition setup window. Since there are two existing partitions (the Windows 7 partitions), the installer will attempt to create the BackTrack partitions as logical partitions, which is just fine. BackTrack, like any Linux distribution, can boot from a logical or primary partition. If you are confused about “primary” and “logical,” take a few minutes to read guide to disks and disk partitions in Linux.
What you need to do at this step, is specify the amount of disk space you want to use for BackTrack 5, then select the file system from the “Use as” dropdown menu (the default is ext4). Finally, select the mount point from the “Mount point” dropdown menu.
BackTrack 5 R2 Create Partition
This is what the same step looks like after the right values have been specified. Click OK to return to the main window.
BackTrack 5 R2 Create Root Partition
For the next partition, which should be for Swap, select “swap area” from the “Use as” menu and specify the amount of disk space you want. OK.
BackTrack 5 R2 Create Swap Partition
Back to the main window, click Forward to move to the next step.
BackTrack 5 R2 Create Partition Cmpleted
On the next step, shown here, the installer gives a summary of what it will do, based on the selections you made. And this is also where you specify where you want the installer to install GRUB, the boot loader. By default, GRUB, the GRandUnified Bootloader, is installed in the Master Boot Record (MBR). In setting up a dual-boot system with Windows, installing it there will overwrite the Windows boot loader, which could cause major headaches for you when you reinstall or upgrade Windows, or install certain anti-virus programs. The recommended option is to install GRUB in the root partition of BackTrack, which in this case, is /dev/sda5. So, to change where GRUB should be installed, click Advanced.
BackTrack 5 R2 Install Summary
That should land you here. You can see that /dev/sda is the “Device for boot loader installation.” That is just another way of saying that GRUB will be installed in the MBR.
BackTrack 5 R2 Install GRUB MBR
For this tutorial, you want to change it to /dev/sda5OK.
BackTrack 5 R2 Install GRUB Root Partition
Back to the installer summary window, click Install to continue with the rest of the installation.
BackTrack 5 R2 Install
After installation has completed successfully, reboot the computer. It will boot into Windows, which is expected. The next task is to add an entry for BackTrack 5 to Windows 7′s boot menu. To do that, you need another application. The easiest to use that I have found is a free-for-personal-use software from NeoSmart Technologies called EasyBCD. You may download it from here. After download, install it in the same way that you would install any other Windows application.
After installation, launch it. EasyBCD’s main window is shown below. To add an entry for BackTrack 5, click Add New Entry.
Windows Boot Menu EasyBCD
Now, you are here. Click on the Linux/BSD tab. Select GRUB 2 from the “Type” dropdown menu, then modify the “Name” field to reflect the name of the distribution. Click on the Add Entry button, then on the Edit Boot Menu tab to see the result. GRUB 2 is the version of GRUB used by BackTrack 5.
BackTrack 5 R2 Add Windows Boot Menu EasyBCD
This is what the result should be. Exit EasyBCD, then restart the computer.
BackTrack 5 R2 Windows Boot Menu EasyBCD
You should now see a boot menu that looks just like this one. Boot into both operating systems one after the other to verify that everything is alright. Happy hacking.
Windows 7 Dual-Boot BackTrack 5 Boot Menu

0 comments:

Post a Comment