Remote Exploit Forums

Go Back   Remote Exploit Forums > Archives > BackTrack v2.0 Final > Tutorials & Guides


Tutorials & Guides Contributions welcome! Please check the rules & guidelines for posting

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-02-2007, 03:00 AM
balding_parrot's Avatar
Administrator
 
Join Date: May 2007
Posts: 3,244
Default TUTORIAL: live install with changes, swap and data partitions

This question or a question related to part of this gets asked so many times, but people seem unable to find it where I originally posted it.

THIS TUTORIAL IS FOR BT2 BUT CAN EASILY BE ADAPTED FOR BT3

Most of this is aimed at a USB HDD but it should be obvious from this how to adapt it for a USB pendrive, stick, flash drive or whatever else you like to call them.


Ok so this is how I do a live install with changes, swap and data partitions.

You will need
bt2final.iso md5 verified
WinRAR any recentish version will work (free trial version is ok too)
USB HDD size of your choice
or a USB STICK size depending on how many of these features you want (1GB MIN for the basic live or 2GB MIN for live with changes)

In windows right click my computer and select manage and select disk management. (for a USB STICK you will have to do this in QTparted)
select you USB drive and delete any partitions.

create a new Primary Partition 1-1.5 GB and format it FAT32 this extra space allows you add modules if you want to. (I like to make it 1.5GB as I like modules) I do this in windows as it seems to work better, but for USB sticks this has to be done in qtparted.

Open the bt2final.iso in WinRAR (yes it can open iso files) and extract the iso to the new partition, you could also copy them from the cd but this metod works best for me.

safe eject the USB HDD or Stick.

Boot into Backtrack from the cd, login and startx

Insert the USB HDD

Open qtparted select you USB and create a 1GB swap primary partition (whatever size you like)

Create a ext2 primary partition (I use 5GB you could use more or less) this is for the changes (Take note of what this drive is referenced as sda3 in my case but could be sdb3 etc)

Create a FAT32 or ext2 primary partition for the rest of the disk (this is where you store your data) I use FAT32 so as I can add or remove files from or to it on any computer with USB (you will only be able to access this partition on a HDD install, and not on a USB stick)

So now you should have 4 primary partitions
1 FAT32
2 SWAP
3 ext2
4 FAT32 or ext2

Partition 1 and partition 4 (if FAT32) will need to be assigned drive letters in windows for you to be able to access them.

Commit the changes, close qtparted and reboot into windows

<EDIT by ziplock> in the ext2 partition, create an empty folder named Changes </edit>

These next steps could be done in BT but I have found the last step to be unreliable.

navigate to the boot folder on the USB HDD or USB stick and right click bootinst.bat and select edit. This opens the file in notepad for editing

find this section
Quote:
:setupNT
\boot\syslinux\syslinux.exe -ma -d \boot\syslinux %DISK%:
goto setupDone

:setup95
\boot\syslinux\syslinux.com -ma -d \boot\syslinux %DISK%:
and change it too this

Quote:
:setupNT
\boot\syslinux\syslinux.exe -ma -f -d \boot\syslinux %DISK%:
goto setupDone

:setup95
\boot\syslinux\syslinux.com -ma -f -d \boot\syslinux %DISK%:
now save it making sure that it does not get .txt added

now open the syslinux folder and open syslinux.cfg in wordpad as notepad does not display it correctly

Code:
PROMPT 1
TIMEOUT 400
DEFAULT bt

label bt
kernel /boot/vmlinuz
append vga=0x317 max_loop=255 initrd=/boot/initrd.gz init=linuxrc load_ramdisk=1 prompt_ramdisk=0 ramdisk_size=4444 root=/dev/ram0 rw

label btsafe
kernel /boot/vmlinuz
append vga=769 max_loop=255 initrd=/boot/initrd.gz init=linuxrc load_ramdisk=1 prompt_ramdisk=0 ramdisk_size=4444 root=/dev/ram0 rw

label memtest86
kernel /boot/memtest86p
and now add this changes=/dev/sda3 replacing the sda3 if necessary as noted earlier so yours will now look like this.
PROPS TO SHAMANVIRTUEL FOR THIS DISCOVERY

Code:
PROMPT 1
TIMEOUT 400
DEFAULT bt

label bt
kernel /boot/vmlinuz
append  changes=/dev/sda3 vga=0x317 max_loop=255 initrd=/boot/initrd.gz init=linuxrc load_ramdisk=1 prompt_ramdisk=0 ramdisk_size=4444 root=/dev/ram0 rw

label btsafe
kernel /boot/vmlinuz
append vga=769 max_loop=255 initrd=/boot/initrd.gz init=linuxrc load_ramdisk=1 prompt_ramdisk=0 ramdisk_size=4444 root=/dev/ram0 rw

label memtest86
kernel /boot/memtest86p
OK save that making sure that no extra extention gets added.

Click start run and type cmd and press enter.

at the command prompt change your new USB drive and cd /boot

BEFORE YOU DO THE NEXT STEP MAKE SURE YOU ARE IN YOUR USB DRIVE AS WE HAVE FORCED THE INSTALLER TO WRITE TO THE MBR IF YOU ARE NOT IN THE USB DRIVE YOU WILL SCREW UP YOUR SYSTEM.
CONSIDER THIS YOUR WARNING NOT TO DO THIS IF YOU ARE UNSURE
I ACCEPT NO RESPONSIBILITY IF YOU MESS THINGS UP



Ok so you are feeling brave... good

type
Code:
bootinst.bat
and follow the instructions making sure that it has got the drive letter correct.

reboot making sure to setup your bios to boot from the USB or EXTERNAL DRIVE or REMOVABLE DRIVE as the first boot device.

Once you have booted into BT make sure to turn the swap partition on.
This shouldn't be necessary, but do it just in case.
The second command will probably tell you that it is in use or busy, but you can ignore that as it is only telling you that BT has already worked it out and is using it.

Code:
mkswap /dev/sda2
swapon /dev/sda2
THAT'S IT

There you go, the best install option in my opinion. all the benefits of a live install (easy use of modules) all the benefits of a disk swap space, all the benefits of a full install (changes saved automatically) and a partition to store data on.
Plus if you do manage to mess your install up, just delete the folders in the changes partition and you are back to a virgin install. And if you think that installing some piece of software or making some changes to your install may cause a problem, you can make a copy of those same two folders, as a backup just in case.

This is the method I use all the time, and as far as I am concerned the best way of installing BT

Sorry this is a bit rough and ready, it was only written very quickly.

GOOD LUCK and enjoy

As a side note if you need to use a bootcode like irqpoll or acpi=off etc you can put it after the append mentioned earlier, you can also use multiple bootcodes if needed by putting a space between them.
__________________

Any questions you have will get a good answer as long as you have followed the forum rules and show you have tried to help yourself. Your questions are clear and contain as much relevant info as possible, especially error messages, commands you have tried and the output from those commands.

remember: garbage in = garbage out

BackTrack needs your donations, no matter how small.

Please contribute HERE


Last edited by ziplock; 09-09-2008 at 12:03 AM.
Reply With Quote
  #2 (permalink)  
Old 08-02-2007, 03:31 AM
shamanvirtuel's Avatar
Senior Member
 
Join Date: May 2007
Location: In The EX-"Human Rights Country", the land of cheese and wine.....
Posts: 2,969
Default

just a little thing... -f is needed only for HarDrive not for keys....
__________________
Reply With Quote
  #3 (permalink)  
Old 08-02-2007, 03:35 AM
balding_parrot's Avatar
Administrator
 
Join Date: May 2007
Posts: 3,244
Default

Quote:
Originally Posted by shamanvirtuel View Post
just a little thing... -f is needed only for HarDrive not for keys....
Your right, but I added it as I said most of this is aimed at a HDD install, and it wouldn't make any difference if used on a key.

But thanks for making a very valid point.
__________________

Any questions you have will get a good answer as long as you have followed the forum rules and show you have tried to help yourself. Your questions are clear and contain as much relevant info as possible, especially error messages, commands you have tried and the output from those commands.

remember: garbage in = garbage out

BackTrack needs your donations, no matter how small.

Please contribute HERE

Reply With Quote
  #4 (permalink)  
Old 08-02-2007, 03:43 AM
shamanvirtuel's Avatar
Senior Member
 
Join Date: May 2007
Location: In The EX-"Human Rights Country", the land of cheese and wine.....
Posts: 2,969
Default

yes you're right it don't hurt nobody if it's here....

BTW i got now a dual bootable 250 WD (BT2 live and Ubuntu Server) with 8 partition (only 4 primary) ....i will be able to have a big hash table...

LOL i think im reaching the end of what is useful for use BT
__________________
Reply With Quote
  #5 (permalink)  
Old 08-02-2007, 03:57 AM
balding_parrot's Avatar
Administrator
 
Join Date: May 2007
Posts: 3,244
Default

If it's a 2 1/2" one I bet that wasn't cheap.

I have about 45GB of hash tables for WPA alone but I have quickly found that even that has serious limitations

Oh well I do have over 150million word password lists, so they will help, even though that has it's own obvious limitations too.
__________________

Any questions you have will get a good answer as long as you have followed the forum rules and show you have tried to help yourself. Your questions are clear and contain as much relevant info as possible, especially error messages, commands you have tried and the output from those commands.

remember: garbage in = garbage out

BackTrack needs your donations, no matter how small.

Please contribute HERE

Reply With Quote
  #6 (permalink)  
Old 08-02-2007, 04:05 AM
shamanvirtuel's Avatar
Senior Member
 
Join Date: May 2007
Location: In The EX-"Human Rights Country", the land of cheese and wine.....
Posts: 2,969
Default

it's a 2.5 .... yes not so expensive....

http://www.westerndigital.com/en/pro...sp?DriveID=317

200 $
__________________
Reply With Quote
  #7 (permalink)  
Old 08-02-2007, 04:21 AM
balding_parrot's Avatar
Administrator
 
Join Date: May 2007
Posts: 3,244
Default

Just checked £99.99 inc VAT + P&P in the UK

Unusual to work out at the same price as the US, it's usually more expensive in the UK
Come to think of it, that US price is plus tax and shipping, so it's cheaper here. Now that is unusual.
__________________

Any questions you have will get a good answer as long as you have followed the forum rules and show you have tried to help yourself. Your questions are clear and contain as much relevant info as possible, especially error messages, commands you have tried and the output from those commands.

remember: garbage in = garbage out

BackTrack needs your donations, no matter how small.

Please contribute HERE

Reply With Quote
  #8 (permalink)  
Old 08-02-2007, 04:33 AM
shamanvirtuel's Avatar
Senior Member
 
Join Date: May 2007
Location: In The EX-"Human Rights Country", the land of cheese and wine.....
Posts: 2,969
Default

i forgot you are in england, sorry....

are u sure of your prices ??? 99 pounds for 250 ? it's the price of a 120 in france....

here in france i pay my 250 180 E

.... why is it so cheap in uk ? maybe next time i'll by in uk ....
__________________
Reply With Quote
  #9 (permalink)  
Old 08-02-2007, 04:36 AM
balding_parrot's Avatar
Administrator
 
Join Date: May 2007
Posts: 3,244
Default

Yes, certain, look here
__________________

Any questions you have will get a good answer as long as you have followed the forum rules and show you have tried to help yourself. Your questions are clear and contain as much relevant info as possible, especially error messages, commands you have tried and the output from those commands.

remember: garbage in = garbage out

BackTrack needs your donations, no matter how small.

Please contribute HERE

Reply With Quote
  #10 (permalink)  
Old 08-02-2007, 04:42 AM
shamanvirtuel's Avatar
Senior Member
 
Join Date: May 2007
Location: In The EX-"Human Rights Country", the land of cheese and wine.....
Posts: 2,969
Default

delivery only within uk....

maybe one time i will come to london make some shopping(im in south brittany, not so far.....)there 's a big tatto convention in london maybe i will go to the next one so if im in england i hope we can drink a beer togather BP...
__________________
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 11:45 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2