Create a CrunchBang Linux Bootable USB from CD
Create a CrunchBang Linux Bootable USB Flash Drive by typing a few commands while running from the Live CD. This segment also covers adding the casper persistence feature. This feature allows users to save changes, and then restore those changes upon subsequent reboots, automatically.
CrunchBang was once a very popular penetration testing distribution. Unfortunately, it was eventually discontinued sometime in 2015. It was originally based on Debian, but later versions were based upon Ubuntu.
CrunchBang Linux running from USB
Distribution Home Page:
Persistent Feature: Yes
- CrunchBang CD
- Working internet connection
- 2GB or larger USB Flash Drive
How to Create a CrunchBang Linux Bootable USB from the CD
- Download the ISO and burn it to a CD.
- Reboot your PC from the Live CD.
- Insert your USB flash drive.
- Open “terminal emulator” and type sudo su
- Now type fdisk -l to list available drives/partitions (note which device is your flash drive Example: /dev/sdb). Throughout this tutorial, replace all instances of x with your flash drive. letter. For example, if your flash drive is sdb, replace x with b.
- Type fdisk /dev/sdx
- type p to show the existing partition and d to delete it.
- type p again to show any remaining partitions (if partitions exist, repeat the previous step).
- type n to make a new partition.
- type pfor primary partition.
- type 1 to make this the first partition.
- hit enter to use the default 1st cylinder.
- hit enter again to use the default last cylinder.
- type a to make this partition active.
- type 1 to select partition 1.
- type t to change the partition filesystem.
- type 6 to select the fat16 file system.
- type w to write the new partition table.
- Remove and reinsert your flash drive.
- Type umount /dev/sdx1
- Type mkfs.vfat -F 32 -n CrunchBang /dev/sdx1
- Type apt-get install syslinux
- Type syslinux -f /dev/sdx1
- Remove and reinsert your flash drive again.
- Type cd /live/image
- Type cp -rfv .disk dists install isolinux live pool md5sum.txt /media/CrunchBang
- Type cd /media/CrunchBang
- Type wget pendrivelinux.com/downloads/crunchbang/syslinux.cfg
- Type dd if=/dev/zero of=casper-rw bs=1M count=1024
- replacing 1024 with the (size in MB) you wish to use for saving changes persistently.
- Type mkfs.ext3 -F casper-rw
- Reboot your computer. Then set your BIOS boot priority or Boot Menu to boot from the USB device. Finally, save your changes and proceed to boot from your CrunchBang USB device.
Create a CrunchBang Linux Bootable USB from CD published under Flash drive installs using Live CD