Skip to content

July 13, 2009

2

How-to: Backtrack 4 USB Persistent Changes

Here is my dirty way to make BT4 running on USB disk instead of run from DVD.

  1. Boot Live DVD Backtrack 4
  2. Split your pendrive into 2 partitions, the 1st is for your BT4 files, and the 2nd is for your changes. I have 4 GB pendrive, so i made 2 partitions with 1500MB for BT4 files (with FAT32 FS) and the rest of disk space went to another partition with Ext3 FS. You can use fdisk of cfdisk to make those things.
  3. Format it using mkfs:
    • mkfs.vfat -F 32 -n BT4 /dev/sdb1
    • mkfs.ext3 -b 4096 -L casper-rw /dev/sdb2
  4. Mount them:
    • mkdir /mnt/BT4
    • mount /dev/sdb1 /mnt/BT4
  5. Copy all BT4 files from mounted DVD to our new mounted partition (/mnt/BT4)
    • rsync -avh /media/cdrom/ /mnt/BT4/
  6. Instal GRUB boot loader
    • grub-install –no-floppy –root-directory=/mnt/BT4 /dev/sdb
  7. Edit the menu.lst file
    • nano /mnt/BT4/boot/grub/menu.lst
  8. Start Persistent Live CD <———- find this line
    bla bla bla quiet vga=0×317 <———- add vga=0×317 like this

  9. umount /mnt/BT4
  10. reboot

That’s it. Can’t wait for the official release ^^

reference: Offensive-Security

Related posts

2 Comments Post a comment
  1. t0m
    Jan 26 2010

    @Phlip
    hello Phlip, i just discovered your comment here..
    From what i know, the grub installation step must be done from Backtrack 4 Live DVD or another Ubuntu based distro live CD. Have you did that? thank you..

    Reply
  2. Phlip
    Jan 25 2010

    grub-install –no-floppy –root-directory=/mnt/BT4 /dev/sdb

    root@YodaTop:/media/iso# grub-install –no-floppy –root-directory=/mnt/BT4 /dev/sdb
    More than one install_devices?
    Usage: grub-install [OPTION] install_device
    Install GRUB on your drive.

    -h, –help print this message and exit
    -v, –version print the version information and exit
    –modules=MODULES pre-load specified modules MODULES
    –root-directory=DIR install GRUB images under the directory DIR
    instead of the root directory
    –grub-setup=FILE use FILE as grub-setup
    –grub-mkimage=FILE use FILE as grub-mkimage
    –grub-mkdevicemap=FILE use FILE as grub-mkdevicemap
    –grub-probe=FILE use FILE as grub-probe
    –no-floppy do not probe any floppy drive
    –recheck probe a device map even if it already exists
    –force install even if problems are detected
    –disk-module=MODULE disk module to use

    INSTALL_DEVICE can be a GRUB device name or a system device filename.

    grub-install copies GRUB images into the DIR/boot directory specified by
    –root-directory, and uses grub-setup to install grub into the boot
    sector.

    Report bugs to .

    Reply

Share your thoughts, post a comment.

(required)
(required)

Note: HTML is allowed. Your email address will never be published.

Subscribe to comments

Rss Feed Tweeter button Facebook button Linkedin button Stumbleupon button