PDA

View Full Version : How to install backtrack 3 final from the shell


pureh@te
06-20-2008, 08:04 AM
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 fresh HD with 3 partitions..
sda1=/boot
sda2=swap
sda3= /

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~#mkswap /dev/sda2
bt~#swapon /dev/sda2

bt~#mkdir /mnt/backtrack
bt~#mount /dev/sda3 /mnt/backtrack/
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/ <<< 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 )

lba32
boot /dev/sda
prompt
timeout=60
change-rules
reset
vga=791
image = /boot/vmlinuz
root = /dev/sda3
label = backtrack3_final

Excellent. Save that and then execute lilo (I like to use the verbose flag)
bt~#lilo -v

after that exit your chroot enviorment
bt/~exit

and reboot and cross your fingers

bt~#reboot

wyze
06-20-2008, 08:20 AM
This tutorial is going to assume a few things....

1. You have at least 2 neurons in your brain

This is the most important requirement for those that depend heavily on point/click installations btw :eek: ...time will tell how many n00bs heed this :eek:

Excellent tutorial btw

drwalter
06-20-2008, 08:48 AM
title Backtrack 3 KDE
rootnoverify (hd0,2)
kernel /boot/vmlinuz vga=791 root=/dev/sda3 ro autoexec=xconf;kdm
boot


title Backtrack 3
rootnoverify (hd0,2)
kernel /boot/vmlinuz vga=791 root=/dev/sda3 ro
boot

REMEMBER: hd0,2 would be for partition 3 NOT 2. Change accordingly!

punkrokk
06-20-2008, 09:16 AM
I agree w/encouraging a usb boot, but I'm sure there are reasons to want it on a hard drive... if only to have a place to play around

alexios
06-20-2008, 03:47 PM
Nice Tutorial will try it when I'm done downloading BT3 Final.

title Backtrack 3 KDE
rootnoverify hd0,2)
kernel /boot/vmlinuz vga=791 root=/dev/sda3 ro autoexec=xconf;kdm
boot


title Backtrack 3
rootnoverify hd0,2)
kernel /boot/vmlinuz vga=791 root=/dev/sda3 ro
boot

REMEMBER: hd0,2 would be for partition 3 NOT 2. Change accordingly!

Should it not be this? (Correct me when I'm wrong.)
You forgot the "(" before hd0,2

title Backtrack 3 KDE
rootnoverify (hd0,2)
kernel /boot/vmlinuz vga=791 root=/dev/sda3 ro autoexec=xconf;kdm
boot


title Backtrack 3
rootnoverify (hd0,2)
kernel /boot/vmlinuz vga=791 root=/dev/sda3 ro
boot

theprez98
06-20-2008, 04:18 PM
Replaced BT3b with BT3 Final using the above procedure, works like a champ. ;)

xirtam
06-20-2008, 06:36 PM
This tutorial is going to assume a few things....

2. Your already partitioned and ready to go. (If you need a tutorial on partitioning I cant help you)



i have partioned my drive but do i need to set up the file system e.g. mkfs.ext3 /dev/hdc1?

eovnu87435ds
06-20-2008, 07:43 PM
I agree w/encouraging a usb boot, but I'm sure there are reasons to want it on a hard drive... if only to have a place to play around

A hard drive installation would be good for people who rely on their flashdrives alot. Thats a lot of data being written to the flashdrive, and they only have a limited number of write cycles. I've already killed a flashdrive that way, and if someone uses it to store/transfer important files, you wouldnt want to have the chance that they might just dissapear anytime soon.



Also, what are the minimum/recommended sizes for the partitions?

jackabee
06-20-2008, 07:46 PM
I made a few minor changes to make a basic upgrade method:

You should already have swap so skip that part

After mounting your existing backtrack partition to /mnt/backtrack, copy any configuration files (e.g. /etc/X11/xorg.conf or individual app configs) somewhere.

When doing this part:
cp --preserve -R /{bin,dev,home,pentest,root,usr,etc,lib,opt,sbin,va r} /mnt/backtrack/
DONT cp home or root but remove the other dirs first so:
rm -rf /mnt/backtrack/{bin,dev,pentest,usr,etc,lib,opt,sbin,var}
cp --preserve -R /{bin,dev,pentest,usr,etc,lib,opt,sbin,var} /mnt/backtrack/

I didn't have to touch grub (apart from change the name of my "Backtrack Beta 3" entry to "Backtrack 3 Final" so nothing major) so lilo should be ok too

Then simply cp your config files back

drwalter
06-21-2008, 03:12 AM
Nice Tutorial will try it when I'm done downloading BT3 Final.
Should it not be this? (Correct me when I'm wrong.)
You forgot the "(" before hd0,2

oops good call sorry I was literally rushing out the door when i posted. Thanks I this edited it.

m1cha3l
06-21-2008, 08:42 AM
just wanted to say i have successfully installed bt3 final as a dual boot with xp using Pureh@tes method with a couple of minor changes.

Thanx to all the team for such an excellent tool and the support.

SeRGiNaToR
06-21-2008, 09:00 AM
Thanks! It's working perfectly ;)

Action discrete
06-21-2008, 10:32 AM
delete this post, mooved the how to root.

=Tron=
06-21-2008, 10:41 AM
Thank you Pureh@te for the tutorial, got BT3 Final installed in under 10 minutes without any problems :D

Lex_Talionis
06-21-2008, 12:44 PM
Thank you for the instructions. If I could make a suggestion regarding them could you please clarify Exactly which step to omit for those of us using a single physical disk. I got confused as to whether you meant omit what you typed before or after the comment "(note: If you only have one partiton to install backtrack to simply omit this step)." I'm new here i'm not complaing in fact i'm quite gratefull to you all for the help but a little clarification would be helpful. Thank you.

=Tron=
06-21-2008, 12:56 PM
Thank you for the instructions. If I could make a suggestion regarding them could you please clarify Exactly which step to omit for those of us using a single physical disk. I got confused as to whether you meant omit what you typed before or after the comment "(note: If you only have one partiton to install backtrack to simply omit this step)." I'm new here i'm not complaing in fact i'm quite gratefull to you all for the help but a little clarification would be helpful. Thank you.

You should omit the following steps if you only use one partition for BT3 and no swap:
bt~#mkswap /dev/sda2
bt~#swapon /dev/sda2

bt~#mount /dev/sda1 /mnt/backtrack/boot/

Lex_Talionis
06-21-2008, 01:09 PM
Thank you Tron for the help. I re read the instructions more closely and I feel like a fool for not having understood them the first time. The mistake was mine, the instructions are fine. Thanks again.

ghostface
06-21-2008, 02:55 PM
Hello guys,

If you all have notice, backtrack 3 final didn't come with the option to install OS to hard disk. But there is an easy way around that. Now, if you have the backtrack 2 or 3 beta version. Goto /usr/share/slax/ and copy BT3.kmdr or slax-install.kmdr. Use can now use that file to install backtrack 3 final to your hard disk. If you have anymore problems let me know.

Muts, and all you guys at Remote-Exploit... I am so sorry for letting this out of the bag. But I wanted to help the newbies out. Because someone helped me once before.

Ghostface

ghostface
06-21-2008, 02:56 PM
Hello guys,

If you all have notice, backtrack 3 final didn't come with the option to install OS to hard disk. But there is an easy way around that. Now, if you have the backtrack 2 or 3 beta version. Goto /usr/share/slax/ and copy BT3.kmdr or slax-install.kmdr. Use can now use that file to install backtrack 3 final to your hard disk. If you have anymore problems let me know.

Muts, and all you guys at Remote-Exploit... I am so sorry for letting this out of the bag. But I wanted to help the newbies out. Because someone helped me once before.

Ghostface

««EDocTooR»»
06-21-2008, 03:03 PM
I have to admit that the instructions are great; however, I have failed, and my BT3 won't mount anything (Ubuntu sda2), or the even automount a (dvd hdc or hda).

If you receive this error, "mount mount /mnt/hda doesnt exist"
bt / # mkdir /mnt/hda
bt / # mount /dev/hda /mnt/hda

If you receive this error, "mount mount /mnt/hdc doesnt exist"
bt / # mkdir /mnt/hdc
bt / # mount /dev/hdc /mnt/hdc

If you receive this error, "mount mount /mnt/sda2 doesnt exist"
bt / # mkdir /mnt/sda2
bt / # mount /dev/sda2 /mnt/sda2

If you receive this error, "mount mount /mnt/sda3 doesnt exist"
bt / # mkdir /mnt/sda3
bt / # mount /dev/sda3 /mnt/sda3

Thank you PureH@te, as I know how much time you put into
helping myself and others.

Re@lity
06-21-2008, 06:57 PM
Hello guys,

If you all have notice, backtrack 3 final didn't come with the option to install OS to hard disk. But there is an easy way around that. Now, if you have the backtrack 2 or 3 beta version. Goto /usr/share/slax/ and copy BT3.kmdr or slax-install.kmdr. Use can now use that file to install backtrack 3 final to your hard disk. If you have anymore problems let me know.

Muts, and all you guys at Remote-Exploit... I am so sorry for letting this out of the bag. But I wanted to help the newbies out. Because someone helped me once before.

Ghostface

I was thinking of wrapping that up into an lzm :)

F4RR4R
06-21-2008, 09:16 PM
Took me about 30 minutes to get it running in VMWare using your method. Thank you for this thread! :)

Ethical
06-22-2008, 07:46 AM
Many thanks pureh@te .
This Video in Vmware i follow your steps ... as you said just like the wiki video by Muts .

http://www.4shared.com/file/52273567/ad2dbf03/bt3final.html?dirPwdVerified=9ba4263b

alexios
06-22-2008, 08:01 AM
I installed BT3 a little bit different, in this post you will see how I installed it by modifying pureh@te tutorial a little bit.

The reasons why I did it this way is that:
-My Bios only supports 4 hard disks
-I wanted to have /boot on the same disk as where I installed backtrack, because I have a Windows installation, a swap partition and slackware on my disks. So if the Backtrack and boot where on different disk, I would exceed the maximum allowed hard disks for my Bios.
-The way pureh@te edit the lilo.conf gives me an L 01 01 01 01 etc error.

If you need to partitioning your disk.

Boot up the BT3 Final disk an use QTparted to partition your drive or boot up Gparted live CD or Ubuntu 8.04 live CD then use Gparted to partition your disk.
Personally I prefer Gparted above QTparted.

Boot the BT3 Final CD and open a terminal

bt~#mkdir /mnt/backtrack
bt~#mount /dev/*** /mnt/backtrack/ << where *** is the drive where you want to install BT3 to.
bt~#cp --preserve -R /{bin,boot,dev,home,pentest,root,usr,etc,lib,opt,sb in,var} /mnt/backtrack/ << here I added boot to the cp command so it copies the boot folder also to the hard drive
bt~#mkdir /mnt/backtrack/{mnt,proc,sys,tmp}
bt~#mount --bind /dev/ /mnt/backtrack/dev/
bt~#mount -t proc proc /mnt/backtrack/proc/

Now for lilo.
bt~#chroot /mnt/backtrack/ /bin/bash
bt~#liloconfig << by doing this, if you have a windows installation it will be added to the lilo.conf and the boot and vga will be set correctly.

select simple -> select framebuffer (I used the one that is automatically selected) -> then it's asking for kernel parameters just leave it empty and press ok -> Then slect the option install to MBR.

It will give an error, Lilo Install error #1, just ignore it and press ok.

bt~#nano /etc/lilo.conf << use nano and not kedit or kwrite it will give an error.

Then scroll down till you see

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


edit it to this


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


where *** is the partition where you installed BT3.

Now we are done editing the lilo.conf save it by pressing ctrl+X it will then ask if you want to save the changes press Y and press enter.

Now execute lilo
bt~#lilo -v

To exit chroot simply type exit
bt/~exit

Now reboot

bt~#reboot

ALL CREDITS GOES TO PUREH@TE

sak3r
06-22-2008, 11:53 AM
Hey this topic helped me install bt3 on to my eeepc even understanding the reason to ditch the installer
i'm not using it for anything else and it made sense to install it.

But as I'm sort of new to some of this i had to search for how to make the partitions with fdisk and seeing as more ppl
are having the same problem here's the txt i made for future reference.

Copied from backtrack-hd-install.pdf (http://www.offensive-security.com/documentation/backtrack-hd-install.pdf)
by the Backtrack Development Team

Creating the Partitions
Next, you will need to create the partitions and file systems. The device I am
using is /dev/sda which is 3.75 gigs in size. I will create 3 partitions. The first
partition will be /boot which I will allocate 50 MB which will be mounted as
/boot. The second partition will be a swap partition which I will allocate 512 MB.
The final partition will fill the rest of the disk and be mounted as /.

BT ~ # fdisk /dev/sda
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won't be recoverable.
Command (m for help):n [enter]
Command action
e extended
p primary partition (1-4)
p [enter]
Partition number (1-4): 1[enter]
First cylinder (1-456, default 1):[enter]
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-456, default 456): +50M [enter]
Command (m for help):n [enter]
Command action
e extended
p primary partition (1-4)
p [enter]
Partition number (1-4): 2 [enter]
First cylinder (8-456, default 8):[enter]
Using default value 8
Last cylinder or +size or +sizeM or +sizeK (8-456, default 456): +512M [enter]
Command (m for help): n [enter]
Command action
e extended
p primary partition (1-4)
p [enter]
Partition number (1-4): 3 [enter]
First cylinder (71-456, default 71):[enter]
Using default value 71
Last cylinder or +size or +sizeM or +sizeK (71-456, default 456): [enter]
Using default value 456
Command (m for help): a [enter]
Partition number (1-4): 1 [enter]
Command (m for help): t [enter]
Partition number (1-4): 2 [enter]
Hex code (type L to list codes): 82 [enter]
Changed system type of partition 2 to 82 (Linux swap / Solaris)
Command (m for help): p [enter]
Disk /dev/sda: 3758 MB, 3758096384 bytes
255 heads, 63 sectors/track, 456 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 7 56196 83 Linux
/dev/sda2 8 70 506047+ 82 Linux swap
/dev/sda3 71 456 3100545 83 Linux
Command (m for help): w [enter]
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.


Creating the Filesystems
The next step is to create the filesystems on the partitions so that we will be able to
write data to the devices. For this setup, we will use the Linux standard ext3 filesystem.
We won't need to modify /dev/sda2, as it is already setup as Linux Swap.

BT ~ # mkfs.ext3 /dev/sda1
mke2fs 1.38 (30-Jun-2005)
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
14056 inodes, 56196 blocks
2809 blocks (5.00%) reserved for the super user
First data block=1
7 block groups
8192 blocks per group, 8192 fragments per group
2008 inodes per group
Superblock backups stored on blocks:
8193, 24577, 40961
Writing inode tables: done
Creating journal (4096 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 25 mounts or 180 days, whichever
comes first. Use tune2fs -c or -i to override.
BT ~ # mkfs.ext3 /dev/sda3
mke2fs 1.38 (30-Jun-2005)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
387840 inodes, 775136 blocks
38756 blocks (5.00%) reserved for the super user
First data block=0
24 block groups
32768 blocks per group, 32768 fragments per group
16160 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912
Writing inode tables: done
Creating journal (16384 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 27 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.


Copied from pureh@te post (http://forums.remote-exploit.org/showpost.php?p=87694&postcount=1)

Mount the Devices
The next step is to mount the devices onto the disk so we can install Backtrack. We will
create directories in /tmp to mount them.

bt~#mkdir /mnt/backtrack
bt~#mount /dev/sda3 /mnt/backtrack/
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/
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/


Configure 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 )

lba32
boot /dev/sda
prompt
timeout=60
change-rules
reset
vga=791
image = /boot/vmlinuz
root = /dev/sda3
label = backtrack3_final

Excellent. Save that and then execute lilo (I like to use the verbose flag)
bt~#lilo -v

after that exit your chroot enviorment
bt/~exit

and reboot and cross your fingers

bt~#reboot

The_Denv
06-22-2008, 03:06 PM
Pureh@te, I just used your tutorial to upgrade from B|T3b -> B|T3_Final. Your tutorial was nice and clear and thanks a million for providing it for us. It took only 20mins to do, I did however run into an 'image /boot/vmlinuz not found' type error; that was quickly fixed by just copying the boot directory from the DVD[Usb-iso] to my HDD where BT3f was installed. [Yes, I did include the boot dir within the -preserve command line].

Once again PH, cheers man :cool:

Schtekarn
06-22-2008, 03:39 PM
Hey this topic helped me install bt3 on to my eeepc even understanding the reason to ditch the installer
i'm not using it for anything else and it made sense to install it.


Sweet. Im thinking of getting a eeepc and run bt3 on it. So how is your workong so far? No problems running bt on a eee?

pureh@te
06-22-2008, 04:29 PM
Yes, I did include the boot dir within the -preserve command line

This doesn't work. You have to create /boot manually and copy the kernel into it manually.

sak3r
06-22-2008, 07:53 PM
@Schtekarn

it work's wonderfull all the hardware is recognised, the atheros card supports injection, boot's under 30 secs, its great.

the screen can be a problem, you might consider the new one with a bigger screen, the hardware is almost the same and so is the size.

The_Denv
06-23-2008, 03:31 AM
This doesn't work. You have to create /boot manually and copy the kernel into it manually.

Ahh, thats why. Nice...well its working on my end after copying the boot folder manually a few days ago :) Thanks again PH.

SyS-32
06-23-2008, 12:09 PM
I am getting a "cp: connot create regular file '/mnt/backtrack/boot/vmlinuz': Read-only file system" error

Not sure where to go from here.

I tried the chmod and it still says Read-only

Any help would be greatly appreciated.

cechmaster
06-23-2008, 04:19 PM
I'm doing it PH's way, but I keep getting this error. Does anyone know what it is and how to bypass it?

bt ~ # cp --preserve -R /{bin,dev,home,pentest,root,usr,etc,lib,opt,sbin,va r} /mnt/backtrack/
cp: `/dev' and `/mnt/backtrack/dev' are the same file
cp: cannot create fifo `/mnt/backtrack/lib/udev/devices/initctl': File exists
cp: cannot create special file `/mnt/backtrack/lib/udev/devices/null': File exists
cp: cannot create special file `/mnt/backtrack/lib/udev/devices/ppp': File exists
cp: cannot create special file `/mnt/backtrack/lib/udev/devices/zero': File exists
cp: cannot create special file `/mnt/backtrack/var/run/xdmctl/dmctl-:0/socket': File exists
cp: cannot create fifo `/mnt/backtrack/var/run/xdmctl/xdmctl-:0': File exists
cp: cannot create special file `/mnt/backtrack/var/run/xdmctl/dmctl/socket': File exists
cp: cannot create fifo `/mnt/backtrack/var/run/xdmctl/xdmctl': File exists
cp: cannot create special file `/mnt/backtrack/var/run/acpid.socket': File exists
cp: cannot create special file `/mnt/backtrack/var/run/dbus/system_bus_socket': File exists
cp: cannot create special file `/mnt/backtrack/var/run/cups/cups.sock': File exists

=Tron=
06-23-2008, 04:38 PM
I'm doing it PH's way, but I keep getting this error. Does anyone know what it is and how to bypass it?

It would seem to me like you have not mounted an empty partition to /mnt/backtrack as it is complaining about /dev and /mnt/backtrack/dev being the same file. Also make sure you run these commands logged in with the BT3 Final CD/USB and not using an old installation of BT.

tonjg
06-23-2008, 08:22 PM
sak3r I followed the instructions quoted in your post below and managed to get bt3final installed on my hard drive. What puzzles me is, at the end of this install I don't know if I've got a live install or a real install....(?)

pureh@te
06-23-2008, 08:53 PM
If you did it my way you have a real install.

RedWind
06-24-2008, 12:21 AM
I have a problem I try to install on my eee 701 with three partition
/dev/hdc1 -- boot -- size:+50M
/dev/hdc2 -- swap -- size: +512M
/dev/hdc3 -- / -- size: reset of drive

and I formatted the hdc1 and hdc3 with ext3

but every time I use the command
bt~#cp --preserve -R /{bin,dev,home,pentest,root,usr,etc,lib,opt,sbin,va r} /mnt/backtrack/
but it takes 2 hours and then ends up telling me that there was not enough space.

I followed the directions and I don't know what I am doing wrong

could someone enlighten me?

outletgenie
06-24-2008, 02:11 AM
Hello,

I just want to leave a message here for PH. Thank you for this tutorial:)
It helped me out a great deal. Honestly, like it more than the BackTrack Installer method.

pureh@te
06-24-2008, 07:19 AM
I just want to leave a message here for PH. Thank you for this tutorial
It helped me out a great deal. Honestly, like it more than the BackTrack Installer method.
Thank you very much outletgenie:)


but it takes 2 hours and then ends up telling me that there was not enough space.

Redwind, I would love to help however I have never installed to the harddrive of the eeepc. I have mine on sdcard in fact I have only booted the xandros OS one time since I've had the eeepc.

amidamaru
06-24-2008, 08:00 AM
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 fresh HD with 3 partitions..
sda1=/boot
sda2=swap
sda3= /

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~#mkswap /dev/sda2
bt~#swapon /dev/sda2

bt~#mkdir /mnt/backtrack
bt~#mount /dev/sda3 /mnt/backtrack/
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/ <<< 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 )

lba32
boot /dev/sda
prompt
timeout=60
change-rules
reset
vga=791
image = /boot/vmlinuz
root = /dev/sda3
label = backtrack3_final

Excellent. Save that and then execute lilo (I like to use the verbose flag)
bt~#lilo -v

after that exit your chroot enviorment
bt/~exit

and reboot and cross your fingers

bt~#reboot


Ok...I have read with very much interest this one because I have installed on my hdd in dual boot with the XP the beta version of the BT3.

I have tried to update manually to the BT3 final based on this tutorial after I discovered that is no other way to install it from the GUI and I encountered some difficulties in this upgrade process.


I have changed my post..I will try to copy the old BT3.kmdr and run it from command line for upgrade porcess based on some awesome advices founded here....

Maybe I was too upset because the old toys gone but after all the evolution is good..;)

Thank you again.

=Tron=
06-24-2008, 08:20 AM
I have tried to use the command that you already described in the tutorial:

cp --preserve -R /{bin,dev,home,pentest,root,usr,etc,lib,opt,sbin,va r} /

but I have received for all the same output:

cp: '/bin' and '/bin' are the same file....etc

The post 6 posts above yours would not happen to have anything to do with your problem?

Also make sure you run these commands logged in with the BT3 Final CD/USB and not using an old installation of BT.

Apart from this make sure that you mount the correct drive on /mnt/backtrack.

sak3r
06-24-2008, 02:36 PM
to answer someone above i have a 4g eeepc and the cd version fits in, although i end up with less than 50mb so im guessing if you're doing it with the usb version it probably won't fit once decompressed

c0mm0n53nse
06-24-2008, 07:29 PM
Just want to say thanks PH for the howto, works on the first try.

NoobBiscUiT
06-24-2008, 11:17 PM
vey niiice!

thanks much PH...

Super n00b
06-26-2008, 04:14 AM
pureh@te - I was able to use your instructions to replace my BT 3 Beta install with BT Final on my MacBook's 5 GB Boot Camp partition. However, I probably have less than 2 neurons in my brain, because it took me forever to figure out that I needed to first do

umount /dev/sda3

before I could do the first command:

mkdir /mnt/backtrack

Also, I made my lilo config file identical to yours, which works fine on the MacBook. However, when I booted up for the first time,
I got an error message saying that the label backtrack3_final was too long, so I changed it to BT3, and it worked.

Thanks for the tutorial!

Also, thanks to jeroenimo's tutorial which allowed me to get BT 3 Beta up and running on the hard drive using Boot Camp and rEFIt.

azagorath
06-26-2008, 08:11 PM
ok guys i did the same instructions that ph wrote here and it the same instructions used for BT2 install , however when i tried this with BT3 final i couldnt find my drivers in the mnt directory even when i went to storage device and opened my drivers its shows empty nothing in it , iam trying to figure out what wrong but if you guys know whats the problem or if its a bug please let me know
thanks

pureh@te
06-26-2008, 08:38 PM
I'm not following? What drivers and why are they in the /mnt directory? If your having issues with a removable device of some sort its probably not automounting (which I dont like anyway) . I'm going to assume the issue is you got some stuff on a thumb drive you want to add to backtrack. If so then...

insert device and the type "dmesg" in a shell. The last 10 lines or so should show you a device name like sda,sdb,sdc or some thing like that. If not you got bigger problems.

After you know the name of the device simply do this (assuming the device is sda)

mkdir /mnt/sda
mount /dev/sda /mnt/sda
cd /mnt/sda
ls ( or whatever you need to do at this point)

If that doesn't clear it up then repost with a clearer picture about whats going on.

azagorath
06-26-2008, 08:45 PM
thanks ph for your reply , i solved the problem
it was my hard drives that was not mounted and i mounted by mkdir /mount
i guess i little drunk :) thanks for the reply brother

bofh28
06-28-2008, 08:00 PM
Hello guys,

If you all have notice, backtrack 3 final didn't come with the option to install OS to hard disk. But there is an easy way around that. Now, if you have the backtrack 2 or 3 beta version. Goto /usr/share/slax/ and copy BT3.kmdr or slax-install.kmdr. Use can now use that file to install backtrack 3 final to your hard disk. If you have anymore problems let me know.

Muts, and all you guys at Remote-Exploit... I am so sorry for letting this out of the bag. But I wanted to help the newbies out. Because someone helped me once before.

Ghostface

I am trying to do a real install of BT3 Final to my external usb hard drive. I tried your instructions and they look like they work but they don't. Several files are missing /var/log/* and /etc/* to name a few. /var/log/packages and /etc/hostname specifically among others. I used the BT3.kmdr from my working BT3 beta.

=Tron=
06-28-2008, 08:11 PM
I am trying to do a real install of BT3 Final to my external usb hard drive. I tried your instructions and they look like they work but they don't. Several files are missing /var/log/* and /etc/* to name a few. /var/log/packages and /etc/hostname specifically among others. I used the BT3.kmdr from my working BT3 beta.

Just follow the command line installation method instead, it has been tested and verified to work by several of the members on the forum already and is as easy as can be to follow.

pureh@te
06-29-2008, 10:24 AM
I used the BT3.kmdr from my working BT3 beta.

I would like to make it absolutely clear that I do not endorse this method of doing the install and thats not what this thread is about. Please do not post in this threads with problems from the install script.

Silver_Seven
06-30-2008, 04:14 AM
Hey there pureh@te ....... Just wanted to drop in and say that you are much appreciated. Thanks for your time, effort, and willingness to lend your experience ........ hopefully I can return it sometime :D

bofh28
06-30-2008, 01:55 PM
I would like to make it absolutely clear that I do not endorse this method of doing the install and thats not what this thread is about. Please do not post in this threads with problems from the install script.

I only wanted to say that the aforementioned method doesn't actually work. I used your method (cp --preserve etc) to get my install to work properly.

Although I would really like the answer to: Why don't you support/encourage real hard drive installations?

scint
06-30-2008, 04:16 PM
hi guys I'm a complete noob to linux so bear with me, I am currently trying to install to my hd but wen I get to this part
bt~#cp --preserve -R /{bin,dev,home,pentest,root,usr,etc,lib,opt,sbin,va r} /mnt/backtrack/
I know about the space in the var cmd, but then it looks like its installing then wen it stops its says that
cp:writing files & cannot creat directory file no space left on device this is for a hell of a lot of file to many to list,
I have went through the tut again & again same problem, I now have the 3 partitions that I created by the info on this post, just cant get by this issue, thx for ll the help & effort,

scint...

sylvestor2002
07-01-2008, 01:03 PM
I'm trying to install bt3 final_usb to my hard drive. I am getting errors on rebooting to backtrack3. I have the following partitions:


/dev/sda1: ntfs: Acer recovery partition (9.76Gb)
/dev/sda2: ntft: Vista partition (89Gb)
/dev/sda3: linux-swap: (1Gb)
/dev/sda4: ext3: (31Gb)

I booted up the backtrack_final_usb cd. Deleted all the bt3_beta files on my sda4 partition. Then I tried the following PureH@te method:

bt~#mkdir /mnt/backtrack
bt~#mount /dev/sda4 /mnt/backtrack/
bt~#mkdir /mnt/backtrack/boot/
omiited this step: (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/ <<< 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/

then I edited lilo.conf to add to the end of the file:
# Vista
other = /dev/sda2
label = Vista_Premium
table = /dev/sda

I completed the lilo -v, exit, reboot steps.

When rebooting, I do get the prompt for Linux or Vista. When I choose Vista, I boot up as expected to Vista. However, when I choose Linux, I see the command lines being executed. However, mid-way through the boot up sequence, I see the following :

....
Freeing unused kernel memory: 388k freed
Warning: unable to open an initial console
Kernel panic - not synching: No init found. Try passing init = option to kernel.



Does this error have something to do with the step I omitted omiited this step: (bt~#mount /dev/sda1 /mnt/backtrack/boot/ (note: If you only have one partiton to install backtrack to simply omit this step))

I'm not sure how to adapt PureH@te's method to my paritions. Any help would be greatly appreciated.

thanks.

Cr0wZz
07-02-2008, 05:02 AM
First i followed muts tutorial, and then this one and i still get

bt ~ # mount /dev/sda2/ /mnt/backtrack/
mount: special device /dev/sda2/ does not exist
(a path prefix is not a directory)

special device? :confused:

Device Boot Start End Blocks Id System
/dev/sda1 1 8 64228+ 83 Linux
/dev/sda2 9 139 1052257+ 82 Linux swap
/dev/sda3 140 9729 77031675 83 Linux


(qtparted destroyed my fedora, so now im stuck with an empty hd)

also
bt / # mount /mnt/sda3/ /mnt/backtrack/
mount: /mnt/sda3/ is not a block device
bt / #

sylvestor2002
07-02-2008, 06:52 PM
ok, after trying to install bt3_final_usb about 5 times, I finally figured out that my "Kernel panic - not synching: No init found. Try passing init = option to kernel" error was due to my lilo.conf file not being configured correctly. Well, actually, I left the default Linux stuff in there and only added my vista boot up info. I should have changed the default linux info as follows (sda4 is where my bt3 resides.)

root = /dev/sda4 (and not left it as sda3)

archangel.amael
07-02-2008, 06:58 PM
First i followed muts tutorial, and then this one and i still get
(qtparted destroyed my fedora, so now im stuck with an empty hd)


I know that it might suck that your other partitions have been "destroyed" but there may be a away to recover them. You will just have to look around here and the internet for more info.
As for qptarted doing this I would have to say that you did this.
In your other thread (http://forums.remote-exploit.org/showthread.php?t=15134)you were having problems understanding the shell and using the proper commands to access the partitions.
Good luck

coolamber
07-02-2008, 11:38 PM
Got this method to work on my OQO model 2. (Note its a PITA on anything other than the SSD version) Now to get all my BT2 customizations ported over. :)

hell333
07-05-2008, 12:28 AM
While i do this:

bt / # chroot /mnt/backtrack/ /bin/bash

I get error like:

egrep: /proc/cmdline: No such file or directory
egrep: /proc/cmdline: No such file or directory
egrep: /proc/cmdline: No such file or directory

Can someone tell me where i am doing wrong?

I have vista on sda1 and i am installing from USB.

So, do i need to change

mount /dev/sda1 /mnt/backtrack/boot/

to

mount /dev/sda3 /mnt/backtrack/boot/

I have vista on sda1, backtrack on sda3(trying to install it) and sda4 is swap .

trimmer
07-05-2008, 09:22 PM
With the exception of my own mistakes the directions that started this thread, (THANKS ph), work perfectly.

I mistakenly left the sda labels for my hard disk, instead of changing them to hda...

Other than that, PERFECT. PH don't let anyone tell you otherwise.


:D

sylvestor2002
07-06-2008, 02:18 PM
While i do this:

bt / # chroot /mnt/backtrack/ /bin/bash

I get error like:

egrep: /proc/cmdline: No such file or directory
egrep: /proc/cmdline: No such file or directory
egrep: /proc/cmdline: No such file or directory

Can someone tell me where i am doing wrong?

I have vista on sda1 and i am installing from USB.

So, do i need to change

mount /dev/sda1 /mnt/backtrack/boot/

to

mount /dev/sda3 /mnt/backtrack/boot/

I have vista on sda1, backtrack on sda3(trying to install it) and sda4 is swap .

read my posts below. I too have Vista and bt3 running. My partitions are a different then yours, but read the posts and adjust the parition #'s accordingly. (I installed using the bt3_final_usb cd. Not directly from a usb stick)

Schtekarn
07-07-2008, 08:57 AM
A short question: What do i need to add to the lilo.conf to get X and KDE started when bt boots?

I've tried:
append = "autoexec=xconf;kdm" and it does'nt work.

=Tron=
07-07-2008, 09:02 AM
A short question: What do i need to add to the lilo.conf to get X and KDE started when bt boots?

I've tried:
append = "autoexec=xconf;kdm" and it does'nt work.Check out the following thread:
http://forums.remote-exploit.org/showthread.php?t=14402

Schtekarn
07-07-2008, 09:14 AM
Thank you for that. Now another question popped up in my head :)
I would like a dual boot, one with the usual boot and one with the KDE. Is it possible to set the runlevel in the lilo conf?

Lex_Talionis
07-12-2008, 09:16 PM
Well first off I currently own 2 neurons :D I just spent hours troubleshooting 2 BT3 installs one for my box and one for my laptop. I already know how to install bt as they both had bt2 already installed. Anyway to the point I use a standard lilo.conf for both boxes only changing hda to sda accordingly. So during one of my copy/paste/edits i screwed up and lost an "=" sign in a most horrible place where is not relevant but this is >>> "CHECK YOUR SYNTAX"!!! you'll save yourself countless hours of frustration better spent on cheese. :)

trying
07-13-2008, 03:34 PM
what about using kde point and click just to get things going just a bit faster ...just walk away after you point ans click hxxp://xxx.exact-hosting.com/slax-install.rar..
I know you guys are going to get mad at me but.. I thought i might throw this in to help some of the guys out..

vahid maani
07-14-2008, 02:33 PM
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 fresh HD with 3 partitions..
sda1=/boot
sda2=swap
sda3= /

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~#mkswap /dev/sda2
bt~#swapon /dev/sda2

bt~#mkdir /mnt/backtrack
bt~#mount /dev/sda3 /mnt/backtrack/
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/ <<< 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 )

lba32
boot /dev/sda
prompt
timeout=60
change-rules
reset
vga=791
image = /boot/vmlinuz
root = /dev/sda3
label = backtrack3_final

Excellent. Save that and then execute lilo (I like to use the verbose flag)
bt~#lilo -v

after that exit your chroot enviorment
bt/~exit

and reboot and cross your fingers

bt~#reboot

Hi
Thanks your topics.:D
But i can't install BT 3 to HDD.
My hard is several partition's.NTFS and EXT3 and SWAP.
Swap and one ext3(active) is primery (not logical) and one ext3 is logical,But to this commend "bt ~ # mount --bind /dev/ /mnt/backtrack/dev/"
receipt this error "mount: mount point /mnt/backtrack/dev/ does not exis"
please help me.:(
BackTrack is very very good. I Love BT3.
I'm put to shame, my english language is very bad:o.
Thanks for all.

merderah
07-14-2008, 02:48 PM
to be honest with you, i think they were working on a bt3 installer but abandoned it, as there's one not in kde but in flux. check it out for yourselves (for those familiar with bt2, it's in the same menu...). click it and it won't run properly. i'm sure with some tinkering it will work...

=Tron=
07-14-2008, 02:56 PM
to be honest with you, i think they were working on a bt3 installer but abandoned it, as there's one not in kde but in flux. check it out for yourselves (for those familiar with bt2, it's in the same menu...). click it and it won't run properly. i'm sure with some tinkering it will work...As there existed a fully working installer in BT3 beta, they could easily have included one in BT3 Final as well if they had wanted to. It is not like they worked on an installer, but didn't manage to finish it. It was a conscious choice to leave it out and encourage users to run a live USB installation with persistent changes instead.

Most likely the installer you found in flux is therefore a remainder from the BT3 beta version.

vulcan146
07-14-2008, 10:56 PM
I've followed this tutorial, but I have a problem.

When I reboot, the kernel loads but stops and gives me something along these lines:

Can't mount block device sdb2 (fs-unknown)
Please specify a valid "boot=" parameter.

First, here's my setup:
sda1 through sda5 is my windows install on my internal hd
sdb2 holds my linux install (sdb1 is just storage) on my external usb hardrive

I've tried different "boot=" parameters. Using sda1-5 will work (I'll get past the error, but linux won't load for obvious reasons) but sdb1 and sdb2 don't exist.

If I use the bootlilo.sh script from the BT3 install to install Linux, then linux WILL load, (but then since I installed BT3 uncompressed will yell at me about the BT3 directory not existing)

Help?

pureh@te
07-14-2008, 11:22 PM
you will have to install lilo to sda in order for that to work. sdb is the second boot device or go in you bios and change the order of the drives booting so sdb is first.

merderah
07-15-2008, 04:12 PM
is it possible to install lilo on lets say /dev/sda6 ?? i'm redoing my laptop's partitions and want independant boot loaders for each respective OS controlled by my first layer "host" boot loader. i'm honestly a newb with lilo as i've only used grub, system commander and boot.ini in the past...

ideally i want this:

mer-der-ah.net/ideal.JPG

twocent$
07-17-2008, 05:34 PM
Sorry, but years of tweed and booze have left me with only 1.5 neurons!

I am trying to use the tut to install from one usb flash install to another usb hdd.

everything seems to work fine until I get to the lilo bit where it says that the map is on a different disk! Everything copied ok but just blinking cursor when attempt to boot. Tried to chroot back into it but only seems to work if I dev zer0 the disk and follow whole tut again.

Sorry for stupid question.

Back to the tweed!!!

B.

mcai8rw2
07-24-2008, 07:48 AM
i have partioned my drive but do i need to set up the file system e.g. mkfs.ext3 /dev/hdc1?

I was wonmdering if anyone had any further advice to this post. I get the partitioning fine... but DO need to perform the filesystem steps?

FooFighter007
07-24-2008, 10:07 AM
I assume that the lilo menu shows up, right? if so you can change the root parameter. let's assume the title in the lilo menu shows the name "backtrack" you can change the parameter to

backtrack root=/dev/sd[your_parameters]

I had a similar issue once with two USB devices. it was a sdb on install but a sda on boot. I booted with the above parameter, changed the lilo.conf on success and fired up lilo -v. works fine for me so far.

mahabad1972
08-03-2008, 09:09 PM
hi can anyone tell me please
i fallowed good girl tutorial but i stuck in making fdisk /dev/sda how can you make sda 5 and 6 when it doesn't allow you to do that this is error i get it only let you make partition between 1 and 4

t ~ # fdisk /dev/sda

The number of cylinders for this disk is set to 14593.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): p

Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 2600 20878784+ 7 HPFS/NTFS
/dev/sda2 13816 14593 6249285 12 Compaq diagnostics

Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 3
First cylinder (2600-14593, default 2600): +2600M
Value out of range.
First cylinder (2600-14593, default 2600):
Using default value 2600
Last cylinder or +size or +sizeM or +sizeK (2600-13815, default 13815): +2600M

Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Selected partition 4
First cylinder (2917-14593, default 2917): 4
Value out of range.
First cylinder (2917-14593, default 2917):
Using default value 2917
Last cylinder or +size or +sizeM or +sizeK (2917-13815, default 13815): +13815M

Command (m for help): n
You must delete some partition and add an extended partition first

Command (m for help):

adri_ht_
08-03-2008, 09:43 PM
Command (m for help): n
You must delete some partition and add an extended partition first


There is your answer! A HDD can only hold a maximum of 4 primary partitions; thus if you want to have more than four, you must make the last one an extended partition which will allow you to make as many logical partitions as you which. You might want to google partitions, it will clarify this for you.

=Tron=
08-04-2008, 03:58 AM
There is your answer! A HDD can only hold a maximum of 4 primary partitions; thus if you want to have more than four, you must make the last one an extended partition which will allow you to make as many logical partitions as you which. You might want to google partitions, it will clarify this for you.This is absolutely correct, but just to make it perfectly clear for mahabad1972, you can have max 4 primary partitions or optionally 3 primary + 1 extended partition divided into as many logical partitions as you want. There is no way to circumvent this limit so you will have to convert one of your primary partitions into an extended one to be able to divide your HDD into more parts than you currently have. Using a boot-loader you can also boot an OS just fine from one of the logical partitions.

twocent$
08-04-2008, 03:19 PM
I assume that the lilo menu shows up, right? if so you can change the root parameter. let's assume the title in the lilo menu shows the name "backtrack" you can change the parameter to

backtrack root=/dev/sd[your_parameters]


I had a similar issue once with two USB devices. it was a sdb on install but a sda on boot. I booted with the above parameter, changed the lilo.conf on success and fired up lilo -v. works fine for me so far.

Thanks. No menu. Only cursor. Will try in syslinux.cfg

Thanks for response.

Gone back to usb with changes.

journeyman761
08-06-2008, 09:38 PM
Ok first off thanks PureHate for your tutorial, worked great! I am having one problem though. I am using an HP that needed the "acpi=off noacip" cheat in vesa kde mode to get past a little blank screen problem. Just wanted to know how exactly to do this with the HDD install because once again I am having the same problem again. Please help, I have been searching these forums for some time now with no luck.

pureh@te
08-06-2008, 09:55 PM
I'm pretty sure you need to add this to the bottom of your lilo.conf

append="noacpi"

and re run lilo

adri_ht_
08-06-2008, 10:58 PM
Ok first off thanks PureHate for your tutorial, worked great! I am having one problem though. I am using an HP that needed the "acpi=off noacip" cheat in vesa kde mode to get past a little blank screen problem. Just wanted to know how exactly to do this with the HDD install because once again I am having the same problem again. Please help, I have been searching these forums for some time now with no luck.

Same problem here but with a Toshiba. I have to hit esc and type linux acpi=off everytime LILO loads up in order to avoid the blank screen...


append="noacpi"


LILO recognizes this command, but it won't do the trick, at least for me.

Jeppo
08-07-2008, 12:52 AM
Thank you very much for this brilliant guide :)

journeyman761
08-08-2008, 03:31 PM
I'm pretty sure you need to add this to the bottom of your lilo.conf

append="noacpi"

and re run lilo
Ok, im pretty sure I screwed up somehow because when I added this to my lilo.conf file i got a bunch of 70's when I rebooted my computer, had to go back through and reset my mbr just to get booted back into windows. What did I do wrong?:confused:

adri_ht_
08-08-2008, 04:59 PM
Ok, im pretty sure I screwed up somehow because when I added this to my lilo.conf file i got a bunch of 70's when I rebooted my computer, had to go back through and reset my mbr just to get booted back into windows. What did I do wrong?:confused:

Did you place the line at the end of lilo.conf? This will cause syntax error when running lilo; thus messing up completely whatever MBR you wrote to. The line had to be place in global settings (right before "# Linux bootable partition begins") in order for LILO recognize the line and run properly.

journeyman761
08-09-2008, 11:57 PM
Did you place the line at the end of lilo.conf? This will cause syntax error when running lilo; thus messing up completely whatever MBR you wrote to. The line had to be place in global settings (right before "# Linux bootable partition begins") in order for LILO recognize the line and run properly.
Yeah you hit it square in the head, thats exactly what I did. But re-installed backtrack and put this exactly where you said to and the problem still exist, nothing at all changed, i mean as far as my blank screen problem goes, no 70's this time...:( ...Thanks for the help and quick reply's PureHate and adri_ht_, anymore suggestions?

adri_ht_
08-10-2008, 08:46 PM
Yeah you hit it square in the head, thats exactly what I did. But re-installed backtrack and put this exactly where you said to and the problem still exist, nothing at all changed, i mean as far as my blank screen problem goes, no 70's this time...:( ...Thanks for the help and quick reply's PureHate and adri_ht_, anymore suggestions?

That's what I thought! Anyways I posted below that it didn't work for me either... I guess we should settle with typing linux acpi=off everytime with have to load BT; I'm use to it now!

mahabad1972
08-11-2008, 05:42 PM
thanks i managed to do all that till end but couldn't save have do you save it i used right mclick and didn't see anything

lba32
boot /dev/hda
#message = /boot/boot_message.txt (we may not have this file)
prompt
timeout=1200
change-rules
reset
vga=791
#linux bootable partition config begins
image = /boot/vmlinuz
root = /dev/hda4
label = backtrack2
read-only
#linux bootable partition ends

#windows bootable partition config begins
other = /dev/hda1
label = WindowsXP
table = /dev/hda

Hennek
08-27-2008, 01:10 AM
Thanks!!!! This guide was really useful to me!!! I was able to install in under 20 min!! And I relay don´t know anything about linux, yet! tx again.

biggyn75
08-30-2008, 11:53 AM
Hello just want to start off by saying thank you to everybody that posts on the forums to help people learn. I'm a complete noob at all this and i've really enjoyed cracking my own wep and wpa, couldn't have done without you guys.
I do have a little problem, i've been trying to install on the shell command following your thread but everytime i this command cp --preserve -R /{bin,dev,home,pentest,root,usr,etc,lib,opt,sbin,va r} /mnt/backtrack
it runs for a while telling me this cp: cannot create special file `/mnt/backtrack/dev/pty/m31': Operation not permitted and it says it for all files not just this 1. Sorry for the questions but if u could help that would be great. you guys rock keep up the great work

ecu971
09-09-2008, 01:00 PM
i have installed Lilo but i get L 01 01 01 01 when i boot. When i try GRUB and edit boot.ini under c:\ i get a bootmenu when i reboot, but when i choose backtrack 3 i get "cant write disc". I have an older compaq laptop from 2001?, only thing i not have tried is to set windows partition under 1024 cylinders. I guess im stucked to that cd.

amidamaru
09-09-2008, 02:39 PM
Hi,

I have BT 3 installed on my laptop from 6 months.

I done some my mistakes regarding the compiling of the new glib library so I have been forced to reinstall the BT 3 final.

Because this version do not have own hdd installer I was in position to find an easy install solution so check this:

Pleas copy this one over your USB or something else: BT3.kmdr from the BT3 beta edition.

Run it, install the BT final and uncheck the preserver MBR after install.

I hope that will help you like it help me ;)

Regards.

milosh.obilic
09-10-2008, 06:54 PM
hey ppl... I need help, I have a problem. I have Vista Bussines installed, I followed the tutorial, everything was nice, but... my problem is that I can't boot Vista now. I've added everything I need to lilo.conf, but I still can't boot my windows...

I get boot mgr is missing error
vista is installed at /dev/sda1, bt3 at /dev/sda5
bt3 boot fine
I've added at the end of lilo: other=/dev/sda1
label= windows

lilo.conf looks just like in tutorial from the first post, and I've added this for dual boot, but it won't work! I don't know why? where is my mistake?

adri_ht_
09-10-2008, 08:57 PM
hey ppl... I need help, I have a problem. I have Vista Bussines installed, I followed the tutorial, everything was nice, but... my problem is that I can't boot Vista now. I've added everything I need to lilo.conf, but I still can't boot my windows...

I get boot mgr is missing error
vista is installed at /dev/sda1, bt3 at /dev/sda5
bt3 boot fine
I've added at the end of lilo: other=/dev/sda1
label= windows

lilo.conf looks just like in tutorial from the first post, and I've added this for dual boot, but it won't work! I don't know why? where is my mistake?

Do you have it like this?

# Windows bootable partition config begins
other = /dev/sda1
label = Windows
table = /dev/sda
# Windows bootable partition config ends

VelkoMK
09-11-2008, 03:40 AM
When I Execute lilo -v, it says Read Only Error. How do I Fix that? Everything else went OK.

EDIT: Sorry, Wrong Section. Delete the post please.

milosh.obilic
09-11-2008, 05:01 AM
my mistake was my stupidity... this is my new comp, and vista on it is installed on sda2, not sda1 as on my old comp... so I've just changed that line in lilo.conf and now everything is ok...

thanks for great tutorial

stagger
09-15-2008, 12:47 AM
Hiya people!

Thank you so much for this guide! it will hopefully make me get my own BT3 install. However I got a problem........

Everything is totally ok when I follow the guide, until I get to

"chroot /mnt/backtrack/ /bin/bash"

when I type that command I get this: "chroot: cannot run command `/bin/bash': No such file or directory"

Im a linux newbie, but I tried with this "mkdir /bin/bash" but in response I got "mkdir: cannot create directory `/bin/bash': File exists"

I really don't know what to do... I would really appreciate it if anyone of you guys could help me out.

I'm trying to make a real hd install and I don't have any other OS on my cpu either.


Oh, and I have searched to see if anyone else has had the same problem as me but I didn't find anything. I hate to bother you since so many people are posting here already. However, I'll take my chances and hope that you can help out even if I know you got a shitload to do.

EDIT: maybe I've found the error. I suspect that maybe I have to read up on partitioning in linux. I made all hda1, hda2 and hda3 partitions primary. And maybe that's not correct. I will continue trying though..

=Tron=
09-15-2008, 02:21 AM
"chroot /mnt/backtrack/ /bin/bash"

when I type that command I get this: "chroot: cannot run command `/bin/bash': No such file or directory"Try issuing the following command prior to the chroot one:mount -o bind /dev /mnt/backtrack-partition/dev

stagger
09-15-2008, 03:06 AM
Thank you very much!

However I resolved the issue by doing it all from the beginning :)
but thanks very much for your quick answer, it's appreciated!

DrMambo
09-16-2008, 06:13 AM
First of all, thank you very much pureh@te for your excellent tutorial. I was installing in VMware and had a few issues with sda, but managed to fix it with another thread on installing in VMware.
The problem I'm having now, is I cant get eth0 to stick. netconfig does absolutely nothing, and /etc/rc.d/rc.inet1.conf or /etc/rc.d/rc.inet1 seem to be changing nothing either.
ifconfig eth0 10.1.1.45/8 followed by route add default gw 10.1.1.1 makes everything work fine. However I don't want to have to login each morning to make this work, I want to turn it on and have it 'just work'.
I tried sticking

/sbin/ifconfig eth0 10.1.1.45/8
/sbin/route add default gw 10.1.1.1
/sbin/ifconfig eth0 up

underneath the /sbin/route add -net 127.0.0.0... line in /etc/rc.d/rc.intet1 hoping that each time the computer booted, it'll call this file and run those commands, but even I can see that this is a hacky way of doing it, and I'm out of my depth :P
Anyway, this will work for about a minute from boot, then eth0 loses its IP.
So please, what is the correct way to go about setting up networking in BT3?

*edit*
After doing a bit more googling, I tried adding those three commands to /etc/rc.d/rc.S as this seemed to be a bunch of commands run at system boot. The same thing happens, it works for a bit, then goes down. I'm guessing its not my config files that's doing that, can anyone shed some light on why this might be happening?

*edit2*
More sleuthing, pinging something constantly is keeping it alive. Some sort of inactivity timer bringing it down? Power mangement maybe? I don't have this problem on my Debian VM, using the same hardware etc. I have no idea where to start turning this off :P (The problem doesn't appear on the downloadable VMware image, I'll try it from a livecd tomorrow)

J_dillinger
09-23-2008, 01:38 AM
With flash drives getting to the size they are, what is the differance between a hard drive install and a USB install? What I want from bt3 is an installed / configurable version on a flash drive. The 4 gig flash drive is large enough to have an installed version with profiles and a root password other than toor. I would like a usb install that is customized with ted or open office, the things i use other than backtrack3 tools to make the system a little more comfortable. My portable computer system. Systems like DSL just don't have the power I want from a keychain system... I have installed knoppix and was able to customize and lock down the system on a 4 gig flash drive. I have an 8 gig flash with an ext3 partition and a 1 gig swap partition... If I follow the instructions provided by pure hate, will I mess up GRUB on my box now and have to load the computer with the flash drive in the system? A problem I had doing a different flash install.

15874102
09-30-2008, 02:25 PM
Thanks pureh@te, this Tutorial was very helpful! Install went very smoothly and works perfectly!

For anyone wondering why I chose to install to my HDD is simply because I use this laptop only for this purpose. I have been running BT2 until today when I finally had the time to change over to BT3. Using the laptop in the field USB drives can get broken easily. ;)

K7@$#
10-05-2008, 09:40 AM
first off excellent tutorial,of the thousands out there with various different methods this is nice and simple to follow..im having a problem though.when i reach this stage :

bt~#cp --preserve -R /{bin,dev,home,pentest,root,usr,etc,lib,opt,sbin,va r} /mnt/backtrack/

im returned with the errors no space left on device?? all partitions are set correct..any help??

adri_ht_
10-05-2008, 09:18 PM
first off excellent tutorial,of the thousands out there with various different methods this is nice and simple to follow..im having a problem though.when i reach this stage :

bt~#cp --preserve -R /{bin,dev,home,pentest,root,usr,etc,lib,opt,sbin,va r} /mnt/backtrack/

im returned with the errors no space left on device?? all partitions are set correct..any help??

I don't see what else could it be... Do you have enough space in the partition mounted at /mnt/backtrack/?

Charlie708
10-06-2008, 12:09 AM
first off excellent tutorial,of the thousands out there with various different methods this is nice and simple to follow..im having a problem though.when i reach this stage :

bt~#cp --preserve -R /{bin,dev,home,pentest,root,usr,etc,lib,opt,sbin,va r} /mnt/backtrack/

im returned with the errors no space left on device?? all partitions are set correct..any help??

Expanded, BT3 is about 3.4GB. You might not have enough free space on your drive.

I just followed these steps, but I can't boot into BT3. I installed it on my HDD as sda10, with changes as sda12. I had GRUB on the MBR already, so I just added an entry for BT3.


title BT3 HDD
root (hd0,9)
kernel /boot/vmlinuz ramdisk_size=6666 root=/dev/sda10 rw changes=/dev/sda12 autoexec=xconf;kdm
initrd /boot/initrd.gz


Boot seizes up when looking for the BT3 directory. Is the lack of a BT3/ directory causing the crash, or is it an error with my grub entry?

pureh@te
10-06-2008, 06:56 AM
I installed it on my HDD as sda10, with changes as sda12 This would mean you have a live install not a real install so thats probably why its not working.

Charlie708
10-06-2008, 09:16 AM
Alright, thanks. I get rid of the changes, since I don't have the live install, I have a full install with the changes argument.

I found out the problem - it was the initrd. Taking it out solved the problem.

K7@$#
10-06-2008, 04:02 PM
This is how my partition table looks,im assuming backtrack hdd install is for sda3 (which is what i specify when following tutorial) but as mentioned before it states no more space on device when using the cp --preserve........etc.

Disk Drive: /dev/sda
Size: 58506416640 bytes, 58.5 GB
Heads: 255 Sectors per Track: 63 Cylinders: 7113

Name Flags Part Type FS Type [Label] Size (MB)
------------------------------------------------------------------------------
sda3 Primary Linux ReiserFS 56499.45
sda2 Primary Linux swap 1003.49
sda1 Boot Primary Linux 1003.49

i would have thought the 57 gig free would be sufficiant to install BT3 :P

Charlie708
10-06-2008, 09:05 PM
This is how my partition table looks,im assuming backtrack hdd install is for sda3 (which is what i specify when following tutorial) but as mentioned before it states no more space on device when using the cp --preserve........etc.

Disk Drive: /dev/sda
Size: 58506416640 bytes, 58.5 GB
Heads: 255 Sectors per Track: 63 Cylinders: 7113

Name Flags Part Type FS Type [Label] Size (MB)
------------------------------------------------------------------------------
sda3 Primary Linux ReiserFS 56499.45
sda2 Primary Linux swap 1003.49
sda1 Boot Primary Linux 1003.49

i would have thought the 57 gig free would be sufficiant to install BT3 :P

Is there the wrong partition mounted? Check to make sure that it is installing to sda3, and don't forget to make a filesystem on sda1.

ZHoob2004
10-13-2008, 09:31 PM
ok, i seem to have the same problem as stagger did a while back in that it will not let me chroot /mnt/backtrack/ /bin/bash it tells me there is no file at /bin/bash while i know there is. i have completely restarted my installation several times trying to fix this problem and i have also tryed to mount -o bind /dev /mnt/backtrack/dev as instructed by another but to no avail so some help from anyone would be really nice. i have even tryed using multiple systems to try and install onto this drive but they all get stuck here.

jackofoed
10-18-2008, 09:23 PM
Hi

I have installed BT3 final (via USB, dual boot XP) but when i choose backtrack in lilo
it runs through alot of "commands" and then stops at -

"warning: unable to open an initial console."
"Kernel panic - not syncing: No init found. try passing init= option to kernel"

How do I do that? or even better how do i solve that?????!!!! :confused:

REALLY NEED HELP!!!! thanks

P.S. should i be worried about "kernel Panic"???

loverboy
10-31-2008, 12:23 AM
i also see dual boot movies and i do all step , its booting but i am not getting boot menu after lilo.i got hp dv9000 laptop and i got to select vesa mod and i have to add acpi-off noapic i was try to edit grub config file but i could file any i dont know what should i do, i am able to get command line but if i do not turn the acpi off startx not working.

calnorak
11-01-2008, 12:59 AM
I have used this awesome tutorial kudos and thanks. I however, due to circumstances, need (unfortunately) my vista. It took me a long time to figure out that i needed to put other instead of image e.g.:

#Vista

other = /dev/sda2
table = /dev/sda
label = vista

#end Vista
I hope this helps someone and saves time for others.

Luigi
11-01-2008, 10:40 AM
http://forums.remote-exploit.org/showthread.php?p=105237#post105237

i have an other Probelm

Default BT3-USB on HDD (as live-System)
Hello,

i want install the BT3-USB Version on an HDD with Windows by using the NT-Bootloader of Windows XP. (but no real-BT3 installation, only the small live-install)

BT3 is running fine on an SD or USB-Stick installation with "changes"

But I don´t want everytime use the Stick or SD-Card(plug in plug out ). I want integratet the System in the HDD.

now:
c: win 98 (FAT32)
d: win XP (FAT32)
e: BT3-usb folders (FAT32)
f: data-Files(share-folder for all Systems)
g: ext2 (for changes Folder, then BT3 ist running on HDD

I want the live install on HDD, not the real install with 4,2GB!!!

I have copied the Folder´s from the USB Stick on e: (BT3 an boot)

And now i want configure the NT-Bootloader from Win XP, so that i can boot the BT3.

dd if=/dev/hda6 of=/tmp/bootsek.lin bs=512 count=1 and integration in the boot.ini doesn´t run. (i think this is only usefull for an real install)

Have anybody an Idea?

BlkUK
11-14-2008, 09:38 AM
Thanks pureh@te. BT3 installed perfectly

TeK_KeN
11-14-2008, 03:35 PM
thanks a lot pureh@te.

I'm totally new to Linux and I'm able to install BT3 dual boot with XP by following your tutorial.

thanks again bro!

edomali
11-16-2008, 06:43 AM
i can`t get it work,am i doing right?
i have 2 disk:
hda1-windows
hda2-private partition
hdb5-linux partition

img360.imageshack.us/img360/7182/snapshot1ol8.png

where i am making mistake and how should my lilo.conf needs to look like?

TeK_KeN
11-16-2008, 11:25 AM
this is my lilo dual boot with XP.

for Windows
bt~#liloconfig << by doing this, if you have a windows installation it will be added to the lilo.conf and the boot and vga will be set correctly.

select simple -> select framebuffer (I used the one that is automatically selected) -> then it's asking for kernel parameters just leave it empty and press ok -> Then slect the option install to MBR.

It will give an error, Lilo Install error #1, just ignore it and press ok.

Quote from alexios, post #24

bt~# nano /etc/lilo.conf
# Start LILO global section
lba32
boot = /dev/sda
prompt
timeout = 1200
change-rules
reset
vga = 791
# End LILO global section

# Windows bootable partition config begins
other = /dev/sda1
label = XP
table = /dev/sda
# Windows bootable partition config ends

# Linux bootable partition config begins
image = /boot/vmlinuz
root = /dev/sda3
label = BT
# Linux bootable partition config ends


change the root according to your Windows installation & BT3 mounted.

geodude
11-16-2008, 02:52 PM
ok a quick question from a noobie, i have bt3 running on usb stick its great,
i partition my hard drive for another partition (drive e:)i named it backtrack
now using the tutorial when i try the commands listed (from shell of course)

bt~#mkdir /mnt/backtrack
bt~#mount /dev/sda3 /mnt/backtrack/ (i cannot get anything to work here) and yes i put e: where sda3 is in the command (mount /dev/e: /mnt backtrack)
bt~#mkdir /mnt/backtrack/boot/


it will not see my e:\ no matter how i word it in the mount command?? i quit ,go over to e: and nothing there??
please help a noobie

edomali
11-16-2008, 03:24 PM
my lilo is totaly difrened,look like this
boot = /dev/hda
prompt
timeout = 60
#bitmap=/boot/splash.bmp
change-rules
reset
#vga = 769,771/773/792
vga = 769
image = /boot/vmlinuz
root = current
label = BackTrack
read-only

i can boot bt3 but not windows and i don`t see what should i change in my lilo

pureh@te
11-16-2008, 04:01 PM
ok a quick question from a noobie, i have bt3 running on usb stick its great,
i partition my hard drive for another partition (drive e:)i named it backtrack
now using the tutorial when i try the commands listed (from shell of course)

bt~#mkdir /mnt/backtrack
bt~#mount /dev/sda3 /mnt/backtrack/ (i cannot get anything to work here) and yes i put e: where sda3 is in the command (mount /dev/e: /mnt backtrack)
bt~#mkdir /mnt/backtrack/boot/


it will not see my e:\ no matter how i word it in the mount command?? i quit ,go over to e: and nothing there??
please help a noobie

Okay for you linux does not recognize a e: drive. You have to format the partition with a Linux file system.

Next....
i can`t get it work,am i doing right?
i have 2 disk:
hda1-windows
hda2-private partition
hdb5-linux partition

img360.imageshack.us/img360/7182/snapshot1ol8.png

where i am making mistake and how should my lilo.conf needs to look like?
First of all your picture is using the installer which is not what this thread is about.
Second if you have windows on one hard disk and linux on another hard disk you have to install the bootloader (lilo in this case) to whatever drive has windows and then point the lilo.conf to the other drive to boot linux.

geodude
11-17-2008, 04:40 PM
Quick question guys, when i finish with backtrack i get this when i come out of lelo.conf FATAL: RAID_SETUP: STAT("/DEV/SDA") what am i missing?

DISREGUARD! i figured it out, everything ok. works beautiful for a guy who has never seen anything running in linux, i belive this is much less trouble than windows