This is Courtesy of RBG and I am just posting it for him:
The following are the line by line details of how I installed Backtrack 4 beta as a dual boot with windows Vista. I have a dell tablet XT, and my hard drive was hda.
The first thing you need to do is make sure it isn't mounted by doing
if it is mounted then unmount it using the umount command. then we need to resize the hard drive to make room for backtrack 4.
I have an 80GB drive in this computer so I gave 53.5 to windows and 22 to backtrack. Once you resize the drive and commit the partitions you will be back at a prompt. If the command line now tells you the partitions were in use then please reboot your computer and go form there if not, we are going to fdisk now to create room.
now if you are reading this tutorial, you are not familiar with linux and I am not going to explain it all, but we are making 3 partitions, the boot loader for lilo, the swap partition then the rest of the area will be for the install and saving changes to type in...
Code:
n #new
p #primary partition
2 #the partition id
[enter] #signifies to start at the default value
+64M #the size of partition 2
done, now the swap
Code:
n #new
p #primary partition
3 #the partition id
[enter] #signifies to start at the default value
+2048M #the size of swap, I use the same size as ram in my computer you can choose anything
and now the last partition...
Code:
n #new
p #primary partition
4 #the partition id (if it did not auto choose 4 since it is the last partition left...)
[enter] #signifies to start at the default value
[enter] #signifies default rest of the drive.
now we are going to set the partition types...
Code:
t
3
82 #says it is a swap
and no for the boot loader
if you would like a quick print out to make sure you are not deleting your windows install use the p command, if you are confident it is all set, then pray to the god of your choosing and press w [enter] to start to partition.
Now we need to format the partitions...
Code:
mke2fs /dev/hda2
mkswap /dev/hda3
swapon /dev/hda3 #enable the swap
mkreiserfs /dev/hda4
and now we do the install...
Code:
mkdir /mnt/bt
mount /dev/hda4 /mnt/bt/
mkdir /mnt/bt/boot
mount /dev/hda2 /mnt/bt/boot
cp --preserve -R /{bin,dev,home,pentest,root,usr,boot,etc,lib,opt,sbin,var} /mnt/bt/
mkdir /mnt/bt/{mnt,tmp,proc,sys}
chmod 1777 /mnt/bt/tmp/
mount -t proc proc /mnt/bt/proc
mount -o bind /dev /mnt/bt/dev/
ok and lastly we need to modify lilo to see that you have a dual boot...
Code:
chroot /mnt/bt/ /bin/bash
nano /etc/lilo.conf
this is what my lilo currently looks like...
Code:
lba32 #this...
boot=/dev/hda
change-rules
reset
prompt
timeout=50
root=/dev/hda4
image=/boot/vmlinuz
label="BT4"
read-only
initrd=/boot/splash.initrd
append=quiet
other=/dev/hda1
label=Windoze_Vista
table=/dev/hda
and now, you just need to remove any junk out of fstab, so it doesnt try to mount everything including the dog when it boots up, verify lilo
Code:
/dev/hda4 / reiserfs defaults 0 0 # AutoUpdate
proc /proc proc defaults 0 0 # AutoUpdate
sysfs /sys sysfs defaults 0 0 # AutoUpdate
devpts /dev/pts devpts gid=5,mode=620 0 0 # AutoUpdate
tmpfs /dev/shm tmpfs defaults 0 0 # AutoUpdate
you should see a message saying adding bt4 and no errors here then you want to reboot, and you should now be working on a dual boot machine.