BackTrack [TUT] Install Linux (Backtrack etc.) to USB[TUT]

Tutorial on Partitioning a USB and installing Backtrack 4 (or other Linux distro)

This tutorial will hopefully show you how to boot backtrack 4 (or another linux distro) from a USB stick, while keeping it hidden from windows users. We are going to partition our USB stick and format our backtrack side to be ext3 and the windows side to be fat32.

There may be a way to do this on windows but i havent come across it. So this is a tutorial for linux users. I shall be using Xubuntu for this tutorial, however it should work on all distro's. Just change the commands to match your distro.



There are several ways to do this, but as i am tight on time, I will be using programs with GUI's rather then the command line (for the most part).
*Note - All Gparted commands can be done using cfdisk*

Firstly we need to download a couple of things.

1. Unetbootin (download the Linux one)
2. Gparted ~ graphical interface for the command line's chdisk - to download Gparted
Code 
sudo apt-get install gparted
3. Backtrack 4 iso

Lets begin 

1. Insert your USB stick into your pc. For this i am using an 8Gig "Integral" USB. I am going to format it to be 3 gigs backtrack and 4 gigs windows/storage. I have managed to do this using a 4Gig USB, with 1.7Gigs for backtrack and the rest for windows/storage. A minimum size of 1.6 Gigs is required for backtrack

Ok once all are downloaded and installed, we have to open up gparted.

2. Open a terminal and type in
Code 
sudo gparted
type in your root password and then gparted will open

3. Now you can see that it defaults to the main hard drive. In the top right corner select your USB. In my case /dev/sdb

4. Now if your USB is mounted then we cant edit it, so right click on the drive and select "UNMOUNT"


5. Go to Device then select "Create Partition Table". This will completely remove everything from your USB, all existing partitions, etc.

6. Right click on the "Unallocated space" and select New. A window like the one below should open


The Windows side must come first or windows will try to format your backtrack side.
7. 
Type in how large you want the backtrack partition to be by typing the size into "Free space following". This way we get the maximum size for the storage side of the usb.

8. Hit the Add button. Notice the bar now along the bottom, we have yet to change anything on the USB. so we can go back and change settings/sizes if we wish.

9. Right click on the remainding "unallocated space" and select "New". A new window opens up. leave the new size as it is (as it is at the max that it can be). As this will be the side of the USB that will be used with for Backtrack change the "File system" to ext3. Your window should now look something like this

10. Right click down in the bottom bar, where your list of changes are outlined, and select "Apply All Operations". Press Apply to the warning screen (This will delete anything on the USB so make sure its clear)

We now wait for the process to finish. Once finished, Record what drive your ext3 partition is (in my case /dev/sdb2)

11. Once this has completed open up Unetbootin.
You can either
Select the Distribution button.
Select Backtrack from the first drop down box (It should be second on the list).
Select your version (4f in my case)
OR
If you downloaded the iso (as i suggested) select;
Disk Image and ISO and then select the "..." button to point Unetbootin to your bt4-final.iso

12. Go down to the bottom of Unetbootin and Select USB Drive as your Type and select which Drive number you want to use (we recorded this earlier. mine was /dev/sdb2)


13. Now press OK and wait for the it to finish Installing. It may get slow at around 85% or so but that is normal.

Once its finsihed it will ask if you want to boot. If you want to test out your BT off USB then reboot, otherwise its not neccesary

Post a Comment

0 Comments