Tuesday, August 25, 2009

How to make a Backtrack 4 Hard Drive Installation -

Backtrack 4 does not contain any installer yet thus we wrote this step by step guide based on muts cookbook on how to install Backtrack 4 on our hard disk drive.


Step 1 - Creating the partitions


First we will need to create three partitions to be able to install backtrack on our hard disk drive. We will need boot, swap and root partitions to be created. (We can still create 2 partitions and install the boot inside the root partition)





After we create the three partitions we need to change the type of partition 2 to swap and activate the boot partition, then write the changes

Command (m for help): t
Partition number (1-4): 2
Hex code (type L to list codes): 82
Changed system type of partition 2 to 82 (Linux swap / Solaris)
Command (m for help): a
Partition number (1-4): 1
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
root@bt:~#

Step 2 - Format the file systems

We format our file system with mkreiserfs for root partition, ext2 for boot and swap for the swap partition.



\



Step 3 - Mount and Copy Directories

After we had prepare the file systems its time to copy over the backtrack files to our hard drive and configure it to run the backtrack on boot.



NOTE: The copy operation will take some time so be patient until it finish

Step 4 - Configure Bootloader



We will need to configure /etc/lilo.conf and define the boot and root partition so we will be able to boot into backtrack. In case we do not correctly define the root partition we will get an error “Kernel panic: no init found”.



Edit /etc/fstab and append the following lines:

/dev/sda3 / reiserfs defaults 0 0 # AutoUpdate
/dev/sda2 none swap sw 0 0



Execute lilo -v and reboot

References:

http://www.offensive-security.com/documentation/bt4install.pdf
http://www.itsolutionskb.com/2009/04/how-to-install-nessus-on-backtrack-4
http://www.itsolutionskb.com/2009/04/backtrack-4-beta-quick-fixes
VN:F [1.6.2_892]

Twitter Delicious Facebook Digg Stumbleupon Favorites More