Difference between revisions of "Backtrack3 Final Dualboot Commandline install"

From MS Computech
Jump to: navigation, search
(New page: 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 ...)
 
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
Backtrack3 Final Dualboot Commandline install
+
Backtrack3 Final Dualboot Commandline install  
  
 +
<br>
  
 +
This tutorial is going to assume a few things....
  
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.  
  
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)
  
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.  
  
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..
 +
<pre>hda1=WindowsXP
 +
hda2=/boot
 +
hda3=swap</pre>
 +
Boot your live cd and open a bash shell and begin.  
  
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 fresh HD with 3 partitions..
+
If your swap is not yet made then do this..(otherwise omit this step)  
<pre>sda1=/boot
+
<pre>bt~#mkfs.ext3 /dev/hda2
sda2=swap
+
bt~#mkswap /dev/hda3
sda3= /</pre>
+
bt~#swapon /dev/hda3
Boot your live cd and open a bash shell and begin.
+
bt~#mkdir /mnt/backtrack
 
+
bt~#mount /dev/hda2 /mnt/backtrack/
If your swap is not yet made then do this..(otherwise omit this step)
 
<pre>bt~#mkswap /dev/sda2
 
bt~#swapon /dev/sda2</pre><pre>bt~#mkdir /mnt/backtrack
 
bt~#mount /dev/sda3 /mnt/backtrack/
 
 
bt~#mkdir /mnt/backtrack/boot/
 
bt~#mkdir /mnt/backtrack/boot/
bt~#mount /dev/sda1 /mnt/backtrack/boot/ (note: If you only have one partiton to install backtrack to simply omit this step)
 
 
bt~#cp --preserve -R /{bin,dev,home,pentest,root,usr,etc,lib,opt,sbin,va r} /mnt/backtrack/ &lt;&lt;&lt; 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/ &lt;&lt;&lt; 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 )  
 
 
lba32<br>boot /dev/sda<br>prompt<br>timeout=60<br>change-rules<br>reset<br>vga=791<br>image = /boot/vmlinuz<br>root = /dev/sda3<br>label = backtrack3_final
 
  
Excellent. Save that and then execute lilo (I like to use the verbose flag)
+
'''/etc/lilo.conf:'''
<pre>bt~#lilo -v</pre>
+
<pre># LILO configuration file
after that exit your chroot enviorment
+
# generated by 'liloconfig'
<pre>bt~#reboot</pre>
+
#
Original Thread :&nbsp;''http://forums.remote-exploit.org/showthread.php?t=14751''
+
# 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</pre>
 +
<br>Excellent. Save that and then execute lilo (I like to use the verbose flag)  
 +
<pre>bt~#lilo -v</pre>  
 +
After that reboot system.
 +
<pre>bt~#reboot</pre>  
 +
Original Thread&nbsp;:&nbsp;''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