Making a bt4-pre-final.iso bootable USB drive
Use an 4 GB drive

Boot a VM to bt4-pre-final
Add a USB device to the VM (VM, Removable Devices, USB device, Connect)

At the Backtrack terminal prompt:


# startx

Open a Terminal window

----------------------------------------------------

# gparted

   Open device /dev/sda
   delete all existing partitions
   Now the whole disk should be Type "free"
   Create a primary partition with size 1500 MB, fat32, no label
   Create a second primary partition to use all remaining space, ext3, no label
   Set the BOOT partition as Active (not really necessary)

   Close gparted

   At terminal prompt, do this to make the DATA partition persistent:

# mkfs.ext3 -b 4096 -L casper-rw /dev/sda2

   This takes several minutes.

   At terminal prompt, do this to mount the BOOT partition for writing:

   # mkdir /mnt/sda1
# mount /dev/sda1 /mnt/sda1

   Then use this command to copy the bte-pre-final.iso files to the BOOT partition:

# rsync -avh /media/cdrom/ /mnt/sda1

   (Notice the final / in /media/cdrom/)

   Now install the grub bootloader:

# grub-install --no-floppy --root-directory=/mnt/sda1 /dev/sda
 
   Next adjust the boot loader menu.lst file

# nano /mnt/sda1/boot/grub/menu.lst 

   Edit the second line to be

   default 4


   Then scroll down to find the "Start Persistent Live CD" section
   Add this to the end of the kernel line for an Eee PC:  vga=0x315
   If you are using a non-netbook computer, use 0x317

   /boot/vmlinuz BOOT=casper boot=casper persistent rw quiet vga=0x315 


   Save changes

# umount /mnt/sda1

-----------------------------------------------------

# init 6


Reference:

http://pauldotcom.com/2009/06/backtrack-4-pre-release-with-p.html

last modified 7-28-09