Backtrack3 Final Dualboot Commandline install
Backtrack3 Final Dualboot Commandline install
This tutorial is going to assume a few things....
1. You have at least 2 neurons in your brain and that there is not to much tar build up between them from smoking tweed.
2. Your already partitioned and ready to go. (If you need a tutorial on partitioning I cant help you)
3. You have heard of a shell and know how to get one going.
Alright so lets begin. I'm going to cover installing backtrack to harddrive to ways. #1 with a /boot partition and #2 where bt is all on one partition. (just a side note. The team is trying to shy away from HD installs and is encouraging USB install which in my humble opinion is the best way to go).Most of this info is from various sources on the wiki and I will attempt to put it into one tutorial for newer members.So you have a HD with 3 partitions..
hda1=WindowsXP hda2=/boot hda3=swap
Boot your live cd and open a bash shell and begin.
If your swap is not yet made then do this..(otherwise omit this step)
bt~#mkfs.ext3 /dev/hda2 bt~#mkswap /dev/hda3 bt~#swapon /dev/hda3 bt~#mkdir /mnt/backtrack bt~#mount /dev/hda2 /mnt/backtrack/ bt~#mkdir /mnt/backtrack/boot/ bt~#cp --preserve -R /{bin,dev,home,pentest,root,usr,etc,lib,opt,sbin,va r} /mnt/backtrack/ <<< note: there is no space in var. Seems to be a glitch in the matrix 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/
Now for lilo.
bt~#chroot /mnt/backtrack/ /bin/bash bt~#nano /etc/lilo.conf
Now I like to delete all the bulls**t in the lilo config file so here is what mine would look like. (remember to set your own VGA accordingly )
/etc/lilo.conf:
# LILO configuration file # generated by 'liloconfig' # # Start LILO global section lba32 # Allow booting past 1024th cylinder with a recent BIOS boot = /dev/hda #message = /boot/boot_message.txt prompt timeout = 1200 # Override dangerous defaults that rewrite the partition table: change-rules reset # VESA framebuffer console @ 1024x768x256 vga = 773 # Normal VGA console # vga = normal # VESA framebuffer console @ 1024x768x64k # vga=791 # VESA framebuffer console @ 1024x768x32k # vga=790 # VESA framebuffer console @ 1024x768x256 # vga=773 # VESA framebuffer console @ 800x600x64k # vga=788 # VESA framebuffer console @ 800x600x32k # vga=787 # VESA framebuffer console @ 800x600x256 # vga=771 # VESA framebuffer console @ 640x480x64k # vga=785 # VESA framebuffer console @ 640x480x32k # vga=784 # VESA framebuffer console @ 640x480x256 # vga=769 # End LILO global section # Linux bootable partition config begins image = /boot/vmlinuz root = /dev/hda5 label = BT3|Final other = /dev/hda1 label = XpSp2 # read-only # Linux bootable partition config ends
Excellent. Save that and then execute lilo (I like to use the verbose flag)
bt~#lilo -v
After that reboot system.
bt~#reboot
Original Thread : http://forums.remote-exploit.org/showthread.php?t=14751