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

Thread: Backtrack 4 Final Persistent USB ***Easiest Way***

  1. #1
    Just burned his ISO nishant's Avatar
    Join Date
    Feb 2010
    Location
    /dev/null
    Posts
    7

    Default Backtrack 4 Final Persistent USB ***Easiest Way***

    Hello all,

    This is my first post on the new backtrack forums. I'm feeling kinda nervous. Well, this is a small shell script I have written to make just any USB flash drive to a fully working persistent install of phenomenal BT. Well, the obvious question that may arise in your mind that why again another tutorial for the same persistent "thing". Well, I too don't favor re-inventing the old wheel. But IMHO this method has some advantages like:

    - As easy as 1-2-3
    - No need to format, partition the USB drive.
    - No need to install grub. We can use the easy UnetBootin as we did earlier
    - Interestingly we can share our pre-created BT4 "persistence" with our friends, even from Windows.
    - Restore your persistence, incase of accidental or emergency USB disk format.
    Now if any of the above points interests you, you can continue reading this thread. For this method you need to 1 bootable BT4 media (may be a DVD or bootable USB) and another with USB disk.
    Now follow these steps:
    1. Use UnetBootin tool to copy the BT4 ISO to your target USB drive.
    2. Reboot your PC, with the second BT4 bootable media (e.g. DVD)
    3. Connect your USB disk and mount it in Konqueror, in other words simply double click it.
    4. Run the following script:

    Code:
    #!/bin/bash
    USB_PATH=none
    RW_SIZE=none
    clear
    echo "WARNING: Before running this script, confirm that the target USB"
    echo "drive has WRITE permission and it has been mounted. If you are"
    echo "unsure press Ctrl+C and check before running this script again."
    echo " "
    sleep 3
    echo "Enter the path to your mounted USB disk: (e.g. /media/disk-0):"
    read USB_PATH
    echo " "
    echo "Enter the amount of space you want to allocate, in MB (e.g. 1024 = 1GB or 4096 = 4GB):"
    read RW_SIZE
    echo " "
    echo "Stop all operations on target disk,"
    echo "sleeping for 5 seconds before processing..." 
    sleep 5
    echo " "
    echo "Task starting, this may take several minutes..."
    dd if=/dev/zero of/$USB_PATH/casper-rw bs=1M count=$RW_SIZE
    mkfs.ext3 -F /$USB_PATH/casper-rw
    echo "Task completed successfully. Reboot PC in persistent mode! :)"
    5. In your target USB drive, open the file /syslinux.cfg in your favorite editor e.g. Kate and change the line

    Code:
    initrd=/boot/initrd.gz BOOT=casper boot=casper persistent rw quiet
    to

    Code:
    initrd=/boot/initrd.gz BOOT=casper boot=casper persistent rw quiet vga=0x317
    6. Reboot and enjoy persistence.

    Now if you want to share your persistence with others or just want to keep a back-up so that you need to restore it later, for any reasons then plug in the USB disk and copy the casper-rw file to a safe location of your hard-disk. You can distribute this file with all your changes saved there in.

    Thats all for now. Please be kind, if I made any mistakes.

  2. #2
    Just burned his ISO
    Join Date
    Jan 2010
    Posts
    10

    Default Re: Backtrack 4 Final Persistent USB ***Easiest Way***

    fail. newb here and followed your easy steps to failure

    dd: unrecognized operand 'of//media/sdc4/casper-rw'

    mkfs.ext3: No such file or directory while trying to determine filesystem size

    anyone know where I or IT went wrong?

  3. #3
    Just burned his ISO nishant's Avatar
    Join Date
    Feb 2010
    Location
    /dev/null
    Posts
    7

    Default Re: Backtrack 4 Final Persistent USB ***Easiest Way***

    @adoidont:

    Hi mate. I'm extremely sorry there is a typing error in the script. In the above script change the line:

    dd if=/dev/zero of/$USB_PATH/casper-rw bs=1M count=$RW_SIZE
    to

    dd if=/dev/zero of=/$USB_PATH/casper-rw bs=1M count=$RW_SIZE
    This should solve all your problems. Sorry again for the mistake

  4. #4
    Junior Member
    Join Date
    Jan 2010
    Posts
    41

    Default Re: Backtrack 4 Final Persistent USB ***Easiest Way***

    "mkfs.ext3: No such file or directory while trying to determine filesystem size"

    l think that's because the USB hasn't been formatted properly. Needs to be two partitions in FAT32 and EXT3.

  5. #5
    Just burned his ISO
    Join Date
    Jan 2010
    Posts
    10

    Default Re: Backtrack 4 Final Persistent USB ***Easiest Way***

    I ended up doing it the manual way. From the look of the script it looks like it does the partitioning but no formatting. Thanks for the quick reply though

  6. #6
    Junior Member cr1p70's Avatar
    Join Date
    Jan 2010
    Location
    Inside your network
    Posts
    32

    Default Re: Backtrack 4 Final Persistent USB ***Easiest Way***

    I may give this a try to see if it will rewrite the MBR on my usb,
    i had everything working fine, but decided to muck around now all i get is the word grub 1000 of them across my screen, i have tried "dd", reformatting all in linux, even tried in windows, i tried to use disk director to wipe the usb, tried it all to no avail now i just have the word grub and a flashing_ so its close i feel it lol but i will fix it soon enough..thx for the script..

    why not just use a new USB stick well i hate when something try's to beat me wont happen..

    Intel Core i7-620M 2.66GHz (3.33Ghz Turbo Mode, 4M cache)

    Genuine Windows 7 Home Premium, 64bit, English

    512MB NVIDIA GeForce GT 240M

    6GB DDR3 at 1066MHz

    250GB SATAII 7,200RPM

    Slot-Load Dual Layer DVD Burner (DVD+-RW, CD-RW)

    Wireless 1520 802.11n Half Mini-Card

  7. #7
    Just burned his ISO asimarunava's Avatar
    Join Date
    Jan 2010
    Posts
    3

    Smile Re: Backtrack 4 Final Persistent USB ***Easiest Way***

    thax for sharing ................it worked well.......no need to format

  8. #8
    Just burned his ISO
    Join Date
    Jan 2010
    Posts
    1

    Default Re: Backtrack 4 Final Persistent USB ***Easiest Way***

    I use LiLi USB Creator, I find it easier for me to create a persistent usb with that

  9. #9
    Just burned his ISO ethicalhacker's Avatar
    Join Date
    Feb 2010
    Location
    Universe
    Posts
    9

    Question Re: Backtrack 4 Final Persistent USB ***Easiest Way***

    I have 4GB USB, Is that enough??????????

  10. #10
    Just burned his ISO
    Join Date
    Apr 2010
    Posts
    1

    Default Re: Backtrack 4 Final Persistent USB ***Easiest Way***

    I have tried Unetbootin and LinuxLive Usb(I use persistence storage of 4gb),for the first time it boots without any problem but in live mode when I start the installation after time and keyboard settings etc it doesnt detect my USB drive only Hard drive and its partitions are there.

    My laptop lacks a DVD drive and I dont have a spare usb drive.My usb flash drive is 8gb.I have read somewhere to make a partition in usb drive but it was having its own caveats.

    I'll try your method when I'll get another flash drive.Thanks for the tutorial anyways!

Page 1 of 3 123 LastLast

Similar Threads

  1. BackTrack 4 Persistent USB Install Video
    By balding_parrot in forum BackTrack Videos
    Replies: 9
    Last Post: 12-14-2010, 05:15 PM
  2. Using non-persistent BT on USB and writing
    By huhwha in forum Beginners Forum
    Replies: 1
    Last Post: 03-03-2010, 09:13 PM
  3. bt4 persistent not persistent
    By ample in forum Beginners Forum
    Replies: 6
    Last Post: 02-07-2010, 05:00 PM
  4. Persistent excess
    By darkdragn in forum Beginners Forum
    Replies: 0
    Last Post: 01-27-2010, 06:13 AM
  5. BackTrack 4 with Ubuntu all persistent on the same USB key
    By mathieu in forum BackTrack Howtos
    Replies: 2
    Last Post: 01-19-2010, 03:24 AM

Posting Permissions

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