Image
 
Latest Additions
 
EH-Net Login
Welcome Guest.






Lost Password?
No account yet? Register
Who's Online
We have 27 guests and 1 member online
EH-Net Donations

Enter Amount:
$

Google Ads
EH-Net News Feeds
Latest Additions
Book Recommendations





 
Advertisement

You are here: Home arrow Forum arrow Resourcesarrow Tutorialsarrow BackTrack 2 HD Install
Ethical Hacker Community Forums
December 03, 2008, 08:45:35 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: ChicagoCon 2-Day Ethical Hacking Conference with MS Blue Hats Oct 31 - Nov 1. Tickets Only $100! www.chicagocon.com/content/view/103/51/
 
   Home   Help Calendar Login Register  
Pages: [1] 2   Go Down
  Print  
Author Topic: BackTrack 2 HD Install  (Read 24734 times)
0 Members and 1 Guest are viewing this topic.
BillV
Hero Member
*****
Offline Offline

Posts: 869


View Profile
« on: August 21, 2007, 11:12:29 AM »

Alright, since this was brought up in another thread, and since it seems to be asked all over the place, I figured I'd post some instructions that work. I'll keep it pretty simple. I just downloaded the ISO of BT2 last night and installed it in VMware following these instructions which I got help with from muts and/or ziplock a while back.

Keep in mind, VMware deafults to SCSI drives, so if you're using VMware (and you don't do a custom creation) you should use 'sda.' If you have an IDE HD, you use 'hda.' I'm going to post one copy of the instructions, and I'll include what you need to do for dual boot (but who does that anymore anyway?).

In the instructions, I'll be using sda and installing BT as the only OS in a VM. All commands will be italics and dual-boot notices will be bold.

BackTrack 2 HD Installation Instructions:
Quote
Step 1: Boot Backtrack

Step 2: Login (root/toor) and run startx

Step 3: open a terminal and run mount to see if your HD is currently mounted (if so, run the umount <drive> command to unmount the drive)

Dual Step: run qtparted

Dual Step: select your HD, resize current partition to make space for BT (if not already partitioned, if so skip this step)

Dual Step: File > Commit > OK

Step 4: run fdisk /dev/sda

Step 5: Create Partitions:
  • p, enter
  • n, enter
  • p, enter
  • 1, enter 2 for dual-boot
  • 'default', enter
  • +64M, enter (this is the size of your boot partition, adjust as you want
  • n, enter
  • p, enter
  • 2, enter 3 for dual-boot
  • 'default', enter
  • +512M, enter (this is your swap partition, typically double your RAM)
  • n, enter
  • p, enter
  • 3, enter 4 for dual-boot (may auto go to this one)
  • 'default', enter
  • 'default', enter (the rest is alloted to everything else

Step 6: p, enter (display partition table to make sure correct), should be:
  • sda1 = boot sda2 for dual-boot
  • sda2 = swap sda3 for dual-boot
  • sda3 = main sda4 for dual-boot
Step 7: Change sda2 to swap: sda3 for dual-boot
  • t, enter
  • 2, enter 3 for dual-boot
  • 82, enter
  • p, enter (verify changes are correct)
Step 8: Write partitions, w, enter

Step 9: Create file systems (keep in mind, you can use the ones you prefer, this is only an example):
  • mke2fs /dev/sda1, enter sda2 for dual
  • mkswap /dev/sda2, enter sda3 for dual
  • swapon /dev/sda2, enter sda3 for dual
  • mkreiserfs /dev/sda3, enter sda4 for dual
Step 10: Create and mount directories:
  • mkdir /mnt/backtrack, enter
  • mount /dev/sda3 /mnt/backtrack, enter sda4 for dual
  • mkdir /mnt/backtrack/boot, enter
  • mount /dev/sda1 /mnt/backtrack/boot, enter sda2 for dual
Step 11: Copy files over (this replaces the BT Installer; which wasn't working and why doing it manually is needed):
  • cp --preserve -R /{bin,dev,home,pentest,root,usr,etc,lib,opt,sbin,var} /mnt/backtrack, enter (this command takes some time to run)
  • mkdir /mnt/backtrack/{mnt,proc,sys,tmp}, enter
  • mount --bind /dev/ /mnt/backtrack/dev/, enter
  • mount -t proc proc /mnt/backtrack/proc/, enter
  • cp /boot/vmlinuz /mnt/backtrack/boot, enter
  • chroot /mnt/backtrack /bin/bash, enter (may receive '/dev/pts/1: no such file or directory' error, ignore it)
Step 12: Configure Lilo:
  • nano /etc/lilo.conf, enter
  • remove all [video] comments including the uncommented 773. but keep vga=791 and uncomment it
  • change "boot" = "/dev/sda"
  • change "root" = "/dev/sda3" sda4 for dual
  • comment out the "message" line near the top
  • If you are not running dual-boot, delete the Windows boot options and leave only linux
  • save and exit
  • lilo -v, enter
Step 13: Done! Exit chroot, exit terminal, logoff and reboot Smiley
« Last Edit: August 25, 2007, 11:22:26 AM by BillV » Logged
oneeyedcarmen
Full Member
***
Offline Offline

Posts: 205

Klaatu, Borada,Necktie?


View Profile
« Reply #1 on: August 21, 2007, 11:20:24 AM »

Fantastic!  Thanks, Bill.

-Brian
Logged

MCP, Security+, Associate (ISC)2
boney
Jr. Member
**
Offline Offline

Posts: 61



View Profile
« Reply #2 on: August 21, 2007, 12:33:40 PM »

Really helpful.
Thanks !
Logged

C|EH

All my life I wanted a computer...
Now I want my life back !
Manu Zacharia (-M-)
Full Member
***
Offline Offline

Posts: 195



View Profile WWW
« Reply #3 on: August 21, 2007, 07:25:33 PM »

Thank you for the wonderful tutorial. I am looking for some tutorial on Installation of Wireless Drivers - my RH 7 installation and BT 2 installation does not detect my wireless card for nc6400.
Logged

Manu Zacharia
Certified ISO 27001:2005 (Information Security Management System) Lead Auditor
Promote the Information Security Day
Visit - http://www.informationsecurityday.com
BillV
Hero Member
*****
Offline Offline

Posts: 869


View Profile
« Reply #4 on: August 21, 2007, 08:08:00 PM »

Thank you for the wonderful tutorial. I am looking for some tutorial on Installation of Wireless Drivers - my RH 7 installation and BT 2 installation does not detect my wireless card for nc6400.

By nc6400, I'd guess you're talking about the HP Compaq nc6400? We use HP's at work, I have an nc6220. These HP's use an intel wireless adapter that's built-in. Is that the adapter you're trying to use? I know it won't work for BT2, I'm not sure about RH (though I'd guess probably not). As far as I know, there is no work around to use that adapter. You're best off buying a separate wireless PC card. A lot of people here have recommended using the Ubiquiti card from wlanparts.com.
Logged
slag
Newbie
*
Offline Offline

Posts: 5


View Profile
« Reply #5 on: August 24, 2007, 07:12:41 PM »

I was following along great until the very end... when I typed lilo -v I get the following error:

Fatal: First sector of /dev/hda1 doesn't have a valid boot signature

I know I designated it as boot when I ran fdisk, so I'm not sure what that means.
Logged
BillV
Hero Member
*****
Offline Offline

Posts: 869


View Profile
« Reply #6 on: August 25, 2007, 11:23:44 AM »

slag,

I saw your other post that you fixed the problem. I apologize, I forgot to add that into my instructions. That's been fixed, thanks.
Logged
slag
Newbie
*
Offline Offline

Posts: 5


View Profile
« Reply #7 on: August 25, 2007, 12:41:21 PM »

No big deal; if it isn't working, you can't really break it. I just messed around with a ton of different stuff until I found something that worked. I do still have another question though. I'm running backtrack on an HP zv6000, and the only way I can get it to boot all the way is to disable acpi by adding the acpi=off line at boot. Is there a way to set that option as part of the default so I can disable the prompt and timeout and just boot straight into backtrack?

Lesser hassle, disabling that gives me no way to check my battery level, any suggestions on a different work around or something else I could use?
Logged
halcyon
Newbie
*
Offline Offline

Posts: 1


View Profile
« Reply #8 on: August 28, 2007, 09:21:10 PM »

I'm just simply trying to install bt2 to the system disk.

I've verified lilo.conf and the /boot partition.

I've used the installer and manually copied the directories over as instructed, but no dice.

When rebooting lilo seems to hang. I just get "Loading BT....."

Nothing else.

Any suggestions would be greatly appreciated.

thx
Logged
BillV
Hero Member
*****
Offline Offline

Posts: 869


View Profile
« Reply #9 on: August 29, 2007, 02:21:16 PM »

slag,

I'm not too sure on that one, you may want to check the remote-exploit.org forums.

halcyon,

Did you use both the install AND manually copy over the files? If you follow the instructions I've posted, you don't use the installer. Are you sure you don't have a lilo error?

Here's my lilo file for my VM with BT2 by itself:

Quote
# 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=791

# Linux bootable partition config begins
image = /boot/vmlinuz
root = /dev/hda3
label = linux
read-only
# Linux bootable partition config ends

And here's my lilo file for dual-boot:

Quote
# 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
change-rules
reset
vga=791

# Linux bootable partition config begins
image = /boot/vmlinuz
root = /dev/hda4
label = Linux
read-only
# Linux bootable partition config ends

# Windows bootable partition config begins
other = /dev/hda1
label = Windows
table = /dev/hda
# Windows bootable partition config ends
Logged
ChrisG
EH-Net Columnist
Hero Member
*****
Offline Offline

Posts: 1042


View Profile WWW
« Reply #10 on: August 29, 2007, 03:21:49 PM »

not to be too jerky but you could just try building your own "hack" distro on slackware/gentoo/FC/whatever.  you'll probably get more out of it than screwing with BT for days.

Logged

...tests i took go here...

http://carnal0wnage.blogspot.com/
slackram
Newbie
*
Offline Offline

Posts: 2


View Profile
« Reply #11 on: April 17, 2008, 03:51:04 PM »

Hey there, i hope you don't mind replying here after 120 days from the last one but i really need to get some help with something. I have done by letter everything explained here and when rebooting the system (without the cd) i am having an error mssg

"GRUB Loading stage1.5.

GRUB loading, please wait...
Error15
_   "

Any idea of this.?

Thanks in advance ...
and sorry for bothering you with such a problem.

Cheers Smiley
Logged
RoleReversal
Sr. Member
****
Offline Offline

Posts: 470


View Profile WWW
« Reply #12 on: April 18, 2008, 04:25:01 AM »

Slackram,

looks like a Grub issue  Wink

try booting off a live CD (like the Backtrack CD you've dropped on the harddrive) and edit the Grub configuration (Google is your friend).

Alternatively try the install again, I've come a across this before and a second install fixed it without issue, don't know why.
Logged

A little bit of sanity:
http://www.infosanity.co.uk
ChrisG
EH-Net Columnist
Hero Member
*****
Offline Offline

Posts: 1042


View Profile WWW
« Reply #13 on: April 18, 2008, 06:34:30 AM »

to help you help yourself.  what does google say a grub error 15 is?
Logged

...tests i took go here...

http://carnal0wnage.blogspot.com/
slackram
Newbie
*
Offline Offline

Posts: 2


View Profile
« Reply #14 on: April 25, 2008, 04:53:39 PM »

Hey there, i hope you don't mind replying here after 120 days from the last one but i really need to get some help with something. I have done by letter everything explained here and when rebooting the system (without the cd) i am having an error mssg

"GRUB Loading stage1.5.

GRUB loading, please wait...
Error15
_   "

Any idea of this.?

Thanks in advance ...
and sorry for bothering you with such a problem.

Cheers Smiley


It has been a while since i asked help for this issue.
I have been solved that out, and that's why i want to share it with all theese who might step on the same problem.

At first i would like to say that before i asked your help i tried to gather all avalliable infos reqarding that issue. Google offered me a lot of infos but none helped.

So, after many tests, (edits of Grub Loader configuration, installation of other open source boot managers, formating & re formating) i decided to install Win XP on this computer (a laptop which was running with various Linux distroes for the last 5 years).
As we know Windows are very "friendly" with other OS we might have installed and they just want to "eat" every single availlable space point on our HDD's errasing everything else we have on board.

I just installed the xp's and then i tried once again to install the BT2 on that laptop.

It just worked out...

(I am delayed on replying once again because i was on a business task on an oil drill in Nigeria)

cheers and have fun...
Logged
Pages: [1] 2   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Page created in 0.089 seconds with 23 queries.
 
Sponsors

cwnp_moto__120x90.gif

Polls
During the most recent election, I:
 
Support EH-Net


Support EH-Net by
Buying all of your
Amazon items using
the search bar above.

cbtnuggets_logo_125.jpg
Try CBT Nuggets Free!
Recent Forum Topics
Vote For EH-Net

progenic.com
Click here to Vote!

Sadikhov.com
Top IT Cert Sites

binarica.com
Binarica Logo

Add to Technorati Favorites
technorati fave

 
         
Advertisement

© 2008 The Ethical Hacker Network
Joomla! is Free Software released under the GNU/GPL License.