hello,
thanks to the videotutorial from the friendly people of remote exploit i've had the chance to install backtrack next to windows xp. Because i think it's a great tutorial but the video sucks up bandwidth i have written it in a text file.
here it is:
Code:
Backtrack hdd install
preparing the harddisk
backup every data before your start
login to backtrack with the live cd version 2.0 (i didn't try it with a 1.0 version but followed the video where this tutorial is based upon).
this tutorial is for the people who don't have a lot of bandwith (left).
first login, otherwise you can't work (obvious!!!).
start shell console and type:
type mount to see what devices are mounted right now.
You need this to see wich hard drive is mounted to unmount it to get qparted to partition your drive
so for example (in my case) it was like this
umount /mnt/sda
now let's start qtparted to partition our drive
type qtparted in the shellconsole to start qtparted
you can make partitions smaller with qtparted or if you've got a free partition left you can
format that in any filesystem (like ntfs) you like.
to get the changes working you need to commit them to the disk.
go to file and then commit to get the changes to be affective.
now quit qtparted because you won't be needing it anymore.
we use fdisk to create our new partitions on the new partition.
you can create 3 partitions like in the video (if you have seen it, but I made it work with only one. so I will teach you how to do it with one.)
fdisk (to get fdisk working)
then he/she askes for a command
we choose p to view the partitions
then you can see the partitions there are on the harddisk.
then use the second command: n (for a new partition)
then p (for primary)
number 2
just press enter for the next question because we will use the default (easy isn't it?)
you need to write to changes to disk and this is done by the command W (for write).
if you get an error that tells you to reboot your system just do it because it will probably be using the old partition table and wants to load the
new one. you can pick up on the next phase of the tutorial
you need to set up a ext2 filesystem for your harddisk
this is done by the following command:
mke2fs /dev/hda2
copying the files
now we got our filesystems ready we can start installing backtrack (yippie the fun part).
we will now be copying the files from the live cd into the directories it needs (we have to create them first off course).
mkdir /mnt/backtrack (to create the directory)
mount /dev/sda2 /mnt/backtrack (to mount the created directory on the partition on the harddisk, change the device name to your device name (e.g. sda2 to hda2 for example).
mkdir /mnt/backtrack/boot (to create the boot directory)
mount /dev/sda2 /mnt/backtrack/boot (to mount the boot directory)
now we need to copy the files to the harddisk partition.
type this in exactly as it is here (but with your directory) because otherwise It will go wrong.
cp --preserve -R /{bin, dev, home, pentest, root, usr, etc, lib, opt, sbin, var} /mnt/backtrack
now this may take a while because it's copying a whole dvd of software to your hdd. at my pc it took about 30 minutes.
now we make our temporary directories
mdir /mnt/backtrack/{mnt, proc, sys, tmp}
mount --bind /dev/ /mnt/backtrack/dev/
mount -t proc proc /mnt/backtrack/proc/
as the last thing we need to copy, we copy the kernel in the boot directory:
cp /boot/vmlinuz /mnt/backtrack/boot
now we chroot in our new installation:
chroot /mnt/backtrack/ /bin/bash/
now we need to config our lilo.conf. file
i'm sorry but I can't show you how it looks like but I will type how it should look like.
the command to change the lilo.conf file is this:
nano /etc/lilo.conf
every line starting with # is a comment line and can be deleted. (BE SURE NOT TO DELETE ANY LINES WITHOUT IT).
your lilo.conf file should look like this:
lba32 # allow booting past 1024th cylinder with recent bios
boot = /dev/sda
# message=/boot/boot_message.txt
prompt
timeout = 1200
change-rules
reset
vga=791
# Linux bootable partition config begins
image = /boot/vmlinuz
root = /dev/sda2
label = Linux #(you can change this to wathever you like, e.g. backtrack for example).
read-only
# Linux bootable partition config ends
other = /dev/sda1
label = windows
table = /dev/sda
save this config file and then start lilo by the next command
lilo -v
then reboot your machine and cross your fingers.