Friday, November 27, 2009

Persistent USB drive CrunchBang install

This means you can save your settings an have a system going.

The following tutorial covers the process of installing CrunchBang Linux to a USB Flash Drive via the CrunchBang Live CD. In addition, the casper persistence feature will be utilized to allow a user to save and restore changes automatically. CrunchBang Linux is based on Ubuntu, featuring a lightweight Openbox window manager.

source:

http://www.pendrivelinux.com/crunchbang-linux-flash-drive-install-via-cd/

Creating a CrunchBang Persistent Flash Drive from the Live CD

  1. Download the CrunchBang 8.10.01 ISO and burn it to a CD ( I used 9.04 Jaunty Jackalope)
  2. Reboot your PC from the CrunchBang Live CD
  3. Insert your USB flash drive
  4. Open "terminal emulator" and type sudo su
  5. 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. The following step 6 I did with Gparted
  6. 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 p for 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
  7. Remove and reinsert your flash drive
  8. Type umount /dev/sdx1
  9. Type mkfs.vfat -F 32 -n CrunchBang /dev/sdx1 ( I kept the usb drive on fat16 because I read somewhere Fat32 could lead to problems )
If you have problems giving the usb drive a label see here:
https://help.ubuntu.com/community/RenameUSBDrive

I use this:
sudo mlabel -i bracket_device_bracket ::bracket_label_bracket

got this error

If you get a message like this: Total number of sectors (7831520) not a multiple of sectors per track (63)!

You can easily ignore the check by running this command:

echo mtools_skip_check=1 >> ~/.mtoolsrc

This instruction supposes your pc can boot from an USB stick. My bios made that impossible. In the next story howto boot a boot USB with a boot cdrom and how to make a boot cdrom like that

No comments:

Blog Archive