This should help you if you are installing backtrack 3
Boot BackTrack live from CD, DVD or USB device
Unmount the existing partitions, the BackTrack Live has automatically mounted them.
Code:
umount /dev/hda1
Run QTParted to resize the NTFS partition
KDE menu > System > QTParted
Resize sda1 to make free space for BackTrack and save changes. Exit QTParted.
Create Linux partitions for BackTrack
Code:
fdisk /dev/hda
Create a primary partition number hda2 name it linux
Create a primary partition number hda3 1 GB in size, this will be swap
Format the new partitions
Code:
mkfs.ext3 /dev/hda2
mkswap /dev/hda3
swapon /dev/hda3
Mount the new partitions so you can install BackTrack on them
Code:
bt ~ # mkdir /mnt/backtrack
bt ~ # mount /dev/hda2 /mnt/backtrack/
bt ~ # mkdir /mnt/backtrack/boot/
bt ~ # mount /dev/hda2 /mnt/backtrack/boot/
Install BackTrack files
Code:
bt ~ # cp --preserve -R /{bin,dev,home,pentest,root,usr,etc,lib,opt,sbin,var} /mnt/backtrack/
bt ~ # mkdir /mnt/backtrack/{mnt,proc,sys,tmp}
bt ~ # mount --bind /dev/ /mnt/backtrack/dev/
bt ~ # mount -t proc proc /mnt/backtrack/proc/
bt ~ # cp /boot/vmlinuz /mnt/backtrack/boot/
And lilo file
Code:
bt ~ # chroot /mnt/backtrack/ /bin/bash
bt / # nano /etc/lilo.conf
In nano change your lilo to look like this, especially do not forget to add the last 4 lines.
boot = /dev/hda
prompt
timeout = 1200
default =Windows
#bitmap=/boot/splash.bmp
change-rules
reset
#vga = 769,771/773/792
vga = 769
image = /boot/vmlinuz
root = current
label = BackTrack3
#Boot Windows
other = /dev/hda1
label = Windows
table = hda
Excellent. Save that and then execute lilo
Code:
bt / # lilo -v
after that exit your chroot enviorment
and reboot and cross your fingers
Code:
bt / # exit
bt ~ #reboot
FOR BT4, you can look at:
http://www.offensive-security.com/videos/install-backtrack-hard-disk/install-backtrack-hard-disk.htmlOR
http://www.offensive-security.com/documentation/bt4install.pdf