Having had an issue when trying to boot back|track 2 after installing it to a virtual disk in a VMWare virtual machine and having resolved the issue, I thought it might be helpful to publish a step-by-step guide.
So here it is:
- Download the back|track 2 iso from remote-exploit.org which you'll need later.
- Load VMWare Workstation and start the New Virtual Machine Wizard (Ctrl+N or File > New > Virtual Machine).
- Choose to create a custom configuration and choose the New Version 5 format if you're asked.
- On the next page choose Linux operating system with version "Other Linux 2.6.x kernel".
- Give new virtual machine a name and choose a place for it's virtual disk and stuff.
- For the next four pages accept the defaults for number of processors, memory, networking and I/O adapter.
- Choose to create a new virtual disk.
- Choose SCSI.
- Choose a disk size (at least 3GB - I made mine 4GB).
- Make your own decision as to whether to "Allocate all disk space now" - I prefer to have the virtual disk pre-allocated rather than allocated on the fly.
- Make your own decision as to whether to split disk into 2GB files - I guess this boils down to your filesystem. On NTFS there should be no issues with huge files, but I always elect to split them into 2GB files anyway.
- Finish the wizard. If you've opted to pre-allocate disk space, wait until it's done.
- Change the settings for the virtual machine's CD-ROM and choose to use the back|track 2 iso image you previously downloaded. Ensure the "Connect at power on" is checked. When started, the VM will check the CD drive for a boot volume and with the iso image mounted it will boot off the back|track 2 Live CD iso image.
- Start the VM and wait for the green back|track 2 login screen.
- Login as root
- Password is toor
- Type fdisk /dev/sda and hit Enter
- Type n and hit Enter
- Type p and hit Enter
- Type 1 and hit Enter
- Hit Enter (Using default value)
- Type +50M and hit Enter
- Type n and hit Enter
- Type p and hit Enter
- Type 2 and hit Enter
- Hit Enter (Using default value)
- Type +512M and hit Enter
- Type n and hit Enter
- Type p and hit Enter
- Type 3 and hit Enter
- Hit Enter (Using default value)
- Hit Enter (Using default value)
- Type a and hit Enter
- Type 1 and hit Enter
- Type t and hit Enter
- Type 2 and hit Enter
- Type 82 and hit Enter
- Type w and hit Enter
- Type mkfs.ext3 /dev/sda1 and hit Enter and wait.
- Type mkfs.ext3 /dev/sda3 and hit Enter and wait.
- Type cd /tmp and hit Enter
- Type mkdir boot and hit Enter
- Type mkdir bt2 and hit Enter
- Type mount /dev/sda1 boot and hit Enter
- Type mount /dev/sda3 bt2 and hit Enter
- Type startx and hit Enter and the X window system will load with a desktop.
- When the desktop has loaded, load the backtrack installer via K > System > Backtrack Installer.
- Leave the "Source(BackTrackCD)" blank (This resolves the issue I had)
- Type /tmp/bt2 in "Install BackTrack to"
- /dev/sda should automatically appear in "Write MBR to"
- Choose either the Live or Real installations.
- Click Install and wait for the installation to complete.
- Close Backtrack Installer. Log off and at the command prompt type poweroff and hit enter.
- Change the VM settings for CD-ROM so that the iso image is no longer being used.
- Start the Virtual Machine.
- Click into the window and if you're not going to add any boot paramaters just hit Enter.
- Voila
The
remote-exploit.org guide to installing to a Hard Drive on which this guide is based misled me into typing /boot into "Source(BackTrackCD)" in the Backtrack installer and I have seen quite a lot of forum posts that attest to the fact that this worked fine in back|track 2 beta, but in the final version, back|track hangs at boot time.
Leaving this field blank resolves this issue in this instance and I hope it will for you too.