Page 1 of 4 123 ... LastLast
Results 1 to 10 of 63

Thread: How to: USB BackTrack 4 with Changes

Hybrid View

  1. #1
    Junior Member
    Join Date
    Apr 2007
    Posts
    74

    Default How to: USB BackTrack 4 with Changes

    Ok here is one that worked for me and I am a really still learning. It was simple enough for me so I am sure it will work for others so I copied and pasted it here. I hope this helps others.


    A USB thumbdrive - minimum capacity 2GB
    A Backtrack 3 CDROM, Backtrack 4 DVD or an additional USB thumbdrive (minimum 1GB) - Used to partition the thumbdrive.
    UNetbootin - A tool to transfer an iso image to a USB drive.
    So, without further au dieu, let’s get started!

    Partition the USB thumbdrive

    If you have a Backtrack 3 CDROM or Backtrack 4 DVD, you are in good shape, if you don’t and are using an additional USB thumbdrive, skip to here and then return once you have a bootable Backtrack 4 device. I know this seems convoluted, but it’s the easiest and most sure way I know to get us where we want to go.

    First let’s partition our thumbdrive. I used a 4 GB drive as I read that we would need 1.2 GB for persistent changes. After I got everything working, it looks to me like we can get away with a 2 GB stick if we are careful about regular cleanup of log files. Nessus tends to be the main culprit here.

    Regardless of the size thumbdrive we use, we need to partition and format the drive as follows:

    Note: I used Acronis Disk Director Suite for the next part

    The first partition needs to be a primary partition of at least 1 GB and formated as FAT32.
    The second Partition can be the rest of the thumbdrive. It needs to be formatted as ext2.
    If you try to use Windows to re-partition the drive, you will likely run into some problems. Windows sees most USB thumbdrives as removable media and does not support multiple partitions on them. It also does not allow us to delete the existing partition from the drive. This is because most thumbdrives have the ‘Removable Media Bit’ set. This blog post describes the situation very well. I would not recommend trying their suggestion since it really isn’t necessary.

    The easy way to get around the problem is to re-partition the drive using Linux. That’s why we need the Backtrack CDROM although any Linux system will work. So go ahead and partition and format the drive according the layout above. Once I was done with this step, I switched back to a Windows system for the next few steps.

    Make a bootable Backtrack 4 USB thumbdrive

    Now we need to download the Backtrack 4 ISO.

    Description: DVD Image
    Name:: bt4-beta.iso
    Size: 854 MB
    MD5: 7d1eb7f4748759e9735fee1b8a17c1d8
    Download: Click here

    So now we have a usb thumbdrive with at least one 1 GB FAT32 partition on it.

    The next step is to make it a bootable USB thumbdrive. There is a much easier way now. We are going to use the UNetbootin tool mentioned above. It is super easy to use. Just start UNetbootin, select the Backtrack 4 ISO, select the USB drive and click okay. You may get a warning that files exist on your USB drive. After making sure you picked the right one, tell it to go ahead and replace the files. It’ll chug along and before you know it you will have a bootable thumbdrive. Much easier than the rigmarole we had to go through before.

    UNetbootin download http://unetbootin.sourceforge.net/

    Persistent Changes

    Let’s configure persistent changes while booted to Backtrack 4. Once we have booted into Backtrack we need to configure the rest of the thumbdrive if we haven’t already done so. I used fdisk to create a second partition from the remainder of the drive and formatted it with mkfs.ext2. In my case my usb drive was /dev/sdb.

    Once we have a formatted second partition, mount it and create a changes directory in the root of the file system.

    open a terminal windows
    mount /dev/sdb2 /mnt/sdb2
    cd /mnt/sdb2
    mkdir changes
    Next we need to make some changes to how the system boots. Execute the following:

    cd /boot/syslinux
    chmod +Xx lilo
    chmod +Xx syslinux
    Open syslinux.cfg with your favorite editor and make the following change. Note: I copied the boot definition I wanted to change and created a new entry so I would have a fall back option if something became broken. Again, I booted to KDE.

    Find the line “LABEL BT4″.
    Copy that line and next 3 and paste them right below the existing line.
    Change the “LABEL BT4″ to something you want like “LABEL BT4-persist” and description to something like “MENU LABEL BT4 Beta - Console - Persistent”
    Change the line that begins with APPEND in your copied section by adding “changes=/dev/sdx2″ immediately after “root=/dev/ram0 rw” where the x is the drive appropriate for your system. In my case it looks like this, “….root=/dev/ram0 rw changes=/dev/sdb2….”
    I placed the MENU LABEL BT4 Beta - Console - Persistent at the top so it starts right from there on start up.

    Save your changes and exit the editor.
    That should do it. Reboot and select the option you setup configured. To test it, create a file and reboot again. If your file is still there, everything is golden.

  2. #2
    Super Moderator Archangel-Amael's Avatar
    Join Date
    Jan 2010
    Location
    Somewhere
    Posts
    8,012

    Default

    Quote Originally Posted by Richard Naggin View Post
    so I copied and pasted it here.
    Although you have mentioned that this is a cut and paste, it is generally considered in bad taste to not give credit to the author/s.

    As for the source it is here.
    To be successful here you should read all of the following.
    ForumRules
    ForumFAQ
    If you are new to Back|Track
    Back|Track Wiki
    Failure to do so will probably get your threads deleted or worse.

  3. #3
    Just burned his ISO
    Join Date
    Sep 2008
    Posts
    4

    Default Thanks

    [QUOTE=archangel.amael;120182]Although you have mentioned that this is a cut and paste, it is generally considered in bad taste to not give credit to the author/s.

    As for the source it is here.

    Thanks for linking to my how-to. Really appreciate it.

  4. #4
    Super Moderator Archangel-Amael's Avatar
    Join Date
    Jan 2010
    Location
    Somewhere
    Posts
    8,012

    Default

    Quote Originally Posted by kriggins View Post
    Thanks for linking to my how-to. Really appreciate it.
    No problem Kriggins just want to make sure that credit is given where it is due.
    To be successful here you should read all of the following.
    ForumRules
    ForumFAQ
    If you are new to Back|Track
    Back|Track Wiki
    Failure to do so will probably get your threads deleted or worse.

  5. #5
    Junior Member Rhuwme's Avatar
    Join Date
    Jan 2010
    Location
    Virginia, USA
    Posts
    31

    Default

    Quote Originally Posted by archangel.amael View Post
    No problem Kriggins just want to make sure that credit is given where it is due.
    Kriggins, excellent tutorial! I'm bare-butt new and had only minor problems getting the necessary changes done.

  6. #6
    Junior Member mRM3e's Avatar
    Join Date
    Oct 2008
    Posts
    28

    Default shutdown issues

    Works a treat thanks!
    I feel sorry for them - those who take authority as the truth and not truth as the authority -- Zeitgeist

  7. #7
    Junior Member
    Join Date
    Mar 2010
    Posts
    43

    Default

    Thank you...
    You really don't know how long I spent pounding at my keyboard to figure this stuff out... after all that... this tutorial has metaphorically dropkicked me in the face with how very VERY little I know about linux.... and more importantly, how very very hungry I am for more.

    Cheers

  8. #8
    Junior Member
    Join Date
    Jan 2008
    Posts
    80

    Default

    well all i did was download the dvd iso img mounted it with magic disc and then went into the bootinst file press enter twice and voilla u have a bootable thumb drive easy as pie
    You can learn more from other peoples mistakes than you can of your own

  9. #9
    Junior Member
    Join Date
    Feb 2009
    Posts
    28

    Default

    Quote Originally Posted by fido13uk View Post
    well all i did was download the dvd iso img mounted it with magic disc and then went into the bootinst file press enter twice and voilla u have a bootable thumb drive easy as pie
    that does not make a PERSISTENT usb drive. Tried it just now ...

  10. #10
    Junior Member
    Join Date
    Jan 2008
    Posts
    80

    Default

    that does not make a PERSISTENT usb drive. Tried it just now ...
    worked for me ok no problem
    You can learn more from other peoples mistakes than you can of your own

Page 1 of 4 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
  •