Difference between revisions of "Backtrack3 Final Dualboot Commandline install"
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
Backtrack3 Final Dualboot Commandline install | Backtrack3 Final Dualboot Commandline install | ||
− | <br> | + | <br> |
This tutorial is going to assume a few things.... | This tutorial is going to assume a few things.... | ||
Line 11: | Line 11: | ||
3. You have heard of a shell and know how to get one going. | 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 | + | 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.. |
− | <pre> | + | <pre>hda1=WindowsXP |
− | + | hda2=/boot | |
− | + | hda3=swap</pre> | |
Boot your live cd and open a bash shell and begin. | 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) | If your swap is not yet made then do this..(otherwise omit this step) | ||
− | <pre>bt~#mkswap /dev/ | + | <pre>bt~#mkfs.ext3 /dev/hda2 |
− | bt~#swapon /dev/ | + | bt~#mkswap /dev/hda3 |
− | bt~#mount /dev/ | + | bt~#swapon /dev/hda3 |
+ | bt~#mkdir /mnt/backtrack | ||
+ | bt~#mount /dev/hda2 /mnt/backtrack/ | ||
bt~#mkdir /mnt/backtrack/boot/ | 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~#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~#mkdir /mnt/backtrack/{mnt,proc,sys,tmp} | ||
bt~#mount --bind /dev/ /mnt/backtrack/dev/ | bt~#mount --bind /dev/ /mnt/backtrack/dev/ | ||
bt~#mount -t proc proc /mnt/backtrack/proc/ | bt~#mount -t proc proc /mnt/backtrack/proc/ | ||
− | + | bt~#cp /boot/vmlinuz /mnt/backtrack/boot/</pre> | |
− | bt~#cp /boot/vmlinuz /mnt/backtrack/boot/</pre> | ||
Now for lilo. | Now for lilo. | ||
<pre>bt~#chroot /mnt/backtrack/ /bin/bash | <pre>bt~#chroot /mnt/backtrack/ /bin/bash | ||
− | bt~#nano /etc/lilo.conf</pre> | + | bt~#nano /etc/lilo.conf</pre> |
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 ) | 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:''' | + | '''/etc/lilo.conf:''' |
<pre># LILO configuration file | <pre># LILO configuration file | ||
# generated by 'liloconfig' | # generated by 'liloconfig' | ||
Line 77: | Line 77: | ||
label = XpSp2 | label = XpSp2 | ||
# read-only | # read-only | ||
− | # Linux bootable partition config ends</pre> | + | # Linux bootable partition config ends</pre> |
<br>Excellent. Save that and then execute lilo (I like to use the verbose flag) | <br>Excellent. Save that and then execute lilo (I like to use the verbose flag) | ||
− | <pre>bt~#lilo -v</pre> | + | <pre>bt~#lilo -v</pre> |
− | After that | + | After that reboot system. |
− | <pre>bt~#reboot</pre> | + | <pre>bt~#reboot</pre> |
Original Thread : ''http://forums.remote-exploit.org/showthread.php?t=14751'' | Original Thread : ''http://forums.remote-exploit.org/showthread.php?t=14751'' |
Latest revision as of 10:17, 9 July 2008
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