Page 1 of 3 123 LastLast
Results 1 to 10 of 24

Thread: How to install BackTrack 3 Final from the shell, dual boot Win XP

  1. #1
    Just burned his ISO goodgirl's Avatar
    Join Date
    Jun 2008
    Posts
    1

    Default How to install BackTrack 3 Final from the shell, dual boot Win XP

    I managed to install Back|Track 3 Final

    - in a dual boot configuration with Win XP
    - without touching my existing MBR
    - on an IBM Thinkpad X41, keeping the IBM recovery partition functional
    - installing Grub boot loader on the boot partition, not the MBR


    This is a hard disk install, not a live install of Backtrack, for those who do not want to run BackTrack from a CD or USB device.

    In this Howto the 60 GB hard disk has got two existing partitions, the Win XP ntfs partition and the IBM recovery partition:
    /dev/sda1 HPFS/NTFS
    /dev/sda2 Compaq diagnostics

    If you are following this Howto on a Win XP machine that is not a Thinkpad, you might only have one existing NTFS partition and your Devices (sda2, sda3, ...) will be different, so you need to adjust the commands accordingly.

    What you need
    Computer with Win XP installed
    BackTrack 3 Final iso on a CD or DVD or USB stick to boot from
    Internet connection to download Grub

    Backup
    Back up your entire system, there is no guarantee that it will not break.

    Defrag your XP NTFS partition
    While still in Win XP, defrag your NTFS drive. You will resize it to make space for the BackTrack partitions.

    Boot BackTrack live from CD, DVD or USB device

    Unmount the existing partitions, the BackTrack Live has automatically mounted them.
    Code:
    umount /dev/sda1
    umount /dev/sda2
    Run QTParted to resize the NTFS partition
    KDE menu > System > QTParted
    Resize sda1 to make free space for BackTrack and save changes. Exit QTParted.
    Note: On this 60 GB drive I reduced the Win XP partition to about 10 GB, leaving enough space for a BackTrack, a /boot, a swap and a data partition.
    The data partition would this way be able to hold for example some wordlists for WPA cracking.


    Create Linux partitions for BackTrack
    Code:
    fdisk /dev/sda
    Create a primary partition number sda3 1 GB in size, this will be swap
    change type of primary partition sda3 to 82
    Create an extended partition number sda4, use rest of free disk space
    Create a new partition sda5 100 MB, this will be for /boot
    Create a new partition sda6 9 GB, this will be for Backtracks root file system /
    Create a new partition sda7 of remaining space, this will be for data like WPA wordlists
    write partition table
    quit fdisk

    Format the new partitions
    Code:
    mkswap /dev/sda3
    swapon /dev/sda3
    mkfs.ext3 /dev/sda5
    mkfs.ext3 /dev/sda6
    mkfs.vfat /dev/sda7
    Mount the new partitions so you can install BackTrack on them
    Code:
    mkdir /mnt/backtrack
    mount /dev/sda6 /mnt/backtrack/
    mkdir /mnt/backtrack/boot/
    mount /dev/sda5 /mnt/backtrack/boot/
    mkdir /mnt/bacltrack/boot/boot
    mkdir /mnt/sda7
    mount /dev/sda7 /mnt/sda7
    Install BackTrack files
    Code:
    cp /boot/vmlinuz /mnt/backtrack/boot/boot/
    cp --preserve -R /{bin,dev,home,pentest,root,usr,etc,lib,opt,sbin,var} /mnt/backtrack/ 
    mkdir /mnt/backtrack/{mnt,proc,sys,tmp}
    mount --bind /dev/ /mnt/backtrack/dev/
    mount -t proc proc /mnt/backtrack/proc/
    Connect to the Internet
    Using for example KDE menu > Internet > Wireless Assistant

    Download and install Grub on the /boot partition and configure the menu.lst
    Code:
    cd /mnt/sda7
    wget ftp://ftp.slackware.com/pub/slackware/slackware-current/extra/grub/grub-0.97-i486-6.tgz 
    installpkg grub-0.97-i486-6.tgz
    grub-install --root-directory=/mnt/backtrack/root/ /dev/sda5
    
    vi /mnt/backtrack/boot/grub/menu.lst
    
    
    Code:
    default 1
    timeout 30 
    
    title Backtrack 3 KDE
    rootnoverify (hd0,4)
    kernel /boot/vmlinuz vga=791 root=/dev/sda6 ro autoexec=xconf;kdm
    boot
    
    title Backtrack 3
    rootnoverify (hd0,4)
    kernel /boot/vmlinuz vga=791 root=/dev/sda6 ro
    boot
    Making the Dual Boot
    I'm using a USB stick mounted on /mnt/sdb1 to transfer the following file to Win XP. But you could also mount sda1 or sda7 and creat the .mbr file there.
    Code:
    dd if=/dev/sda5 of=/mnt/sdb1/backtrack3.mbr bs=512 count=1
    Now reboot into Win XP and copy the backtrack3.mbr file in the root of your c:\ drive.
    Now clear the read-only attribute of c:\boot.ini to be able to edit this file in notepad.
    In notepad add the following line at the end of the boot.ini file:
    Code:
    c:\backtrack3.mbr="Backtrack 3"
    Now you can activate the read-only attribute of c:\boot.ini again.

    Reboot into your new BackTrack 3 Final
    When you reboot now you can check that pressing your blue Access IBM button will still boot you into the IBM Recovery console.
    Otherwise you will now have two boot options given by boot.ini, Win XP and BackTrack 3. Select BackTrack 3 and this will bring up the Grub boot menu, now boot into BackTrack 3 KDE.

  2. #2
    Just burned his ISO
    Join Date
    Oct 2007
    Posts
    3

    Default

    Back GoodGirl

    There was My Old Email and I forget to change my Old email to my new email to receive activation

    and thank you my sistar for your interesting

    Ok ....

    Now what did I Mus do to install my backtrack

    Parition lable format
    -----------------------------------
    /dev/sda1 (xp) ntfs
    /dev/sda2 (linux) EXT3
    /dev/sda3 (swap) swap
    /dev/sda5 (work) ntfs
    /dev/sda6 (Others) ntfs
    /dev/sda7 (MySpace) ntfs


    then how i can install the backtrack3 on ext3 directly without creat all partitions that you are tell us about its


    thank you my sister

  3. #3
    Member The_Denv's Avatar
    Join Date
    Nov 2006
    Posts
    364

    Default

    Hey goodgirl, Welcome to the forums!
    This is fantastic for your first post. I wish there were more people that did this for their first post.

    Good work and enjoy your stay lassie

  4. #4
    Junior Member
    Join Date
    Aug 2007
    Posts
    85

    Default

    Thank you - for the time you put all this in such nice way .
    How you spend your time is more important than how you spend your money. Money mistakes can be corrected, but time is gone forever. David Norris

  5. #5
    Just burned his ISO
    Join Date
    Jan 2008
    Posts
    5

    Default lame problem

    i know i'm a newbie in linux stuff. I just wanted to install backtrack on dual boot with xp. i was following this tutorial until i stucked with:

    bt ~ # grub-install --root-directory=/mnt/backtrack/root /dev/sda7
    The file /mnt/backtrack/root/boot/grub/stage1 not read correctly.

    i've tried to find the solution in the documentation but it only made me more confused while i've heard its a simple problem to fix:S

    What should I do? thanks for ur patientence in advance

  6. #6
    Just burned his ISO
    Join Date
    Apr 2008
    Posts
    9

    Default

    To versus

    why not use lilo ^_^
    root@bt#vi /etc/lilo.conf ---configure the lilo
    lba32
    boot = /dev/sda5 ---notice to change the sda5 to your /boot partition
    prompt
    timeout = 100
    change-rules
    reset
    vga = normal
    image = /boot/vmlinuz
    root = /dev/sda6 ---notice to change the sda5 to your /root partition
    label = BackTrack3Final
    read-only

    and then
    root@bt#lilo -v
    root@bt#dd if=/dev/sda5 of=bt3final.mbr bs=446 count=1 ---notice to change the sda5 to your /boot partition

    hope helps

  7. #7
    Just burned his ISO
    Join Date
    Jun 2008
    Posts
    1

    Default

    To versus

    I had the same problem after running the following code


    Code:
    wget ftp://ftp.slackware.com/pub/slackware/slackware-current/extra/grub/grub-0.97-i486-6.tgz 
    installpkg grub-0.97-i486-6.tgz
    grub-install --root-directory=/mnt/backtrack/root/ /dev/sda5  <-- same faulty line issue.
    The way i solved it was by running the grubconfig command (after you ran the "installpkg grub..." command, the results should have said something about using that command. I just ran the "grubconfig" command, and used that tool to set up my boot partitions correctly.

    Be sure NOT to select the third option on that tool to write to the MBR (unless you really want to have grub as your main boot manager. if you do set it on your MBR, be aware there will be more configuration to be done to in order to boot in windows.

    After you set the grub boot manager in the partition sda5, go to "/mnt/backtrack/boot/grub/menu.lst" OR the directory specified by the configuration tool at the end and modified the menu.lst file with the right settings.

  8. #8
    Just burned his ISO
    Join Date
    Jan 2008
    Posts
    5

    Default

    thanks both of u for the help.

    Edit: It's working all good thanks for the tutorial

  9. #9
    Just burned his ISO
    Join Date
    Jun 2008
    Posts
    1

    Default kernel panic

    i've follow almost your installing guide...
    but i tried to run that LILO...
    i've been edit that lilo.conf to startup...the LILO is running almost correctly,but when the BT3 is boot up,kernel panic error message shown...
    is there any idea?

  10. #10
    Just burned his ISO
    Join Date
    Jun 2008
    Posts
    1

    Default Woohooo

    I did it... yay!!! a few hick ups as a couple of people witnessed
    like:
    1-
    grub-install --root-directory=/mnt/backtrack/root/ /dev/sda5
    The file /mnt/backtrack/root/boot/grub/stage1 not read correctly.
    2 -
    Coding where the "vi /mnt/backtrack/boot/grub/menu.lst" was talking about

    default 1
    timeout 30

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

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

    But yep.. all good.. thanks! guys! Wicked...

Page 1 of 3 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •