Flashdrive Knoppix

From Provider Wiki

Jump to: navigation, search

Contents

Purpose

This page was created as a guide for creating a bootable flashdrive with knoppix. It can be adapted to other media. This has only been tested with version 4.0.2 CD.

Required

   BIOS that supports booting from USB devices
   Media of appropriate size
   Knoppix liveCD (not tested with other liveCD's). Obtain from http://www.knoppix.net
   Syslinux bootloader. Obtain from http://syslinux.zytor.com/
   Floppy

Steps

1. backup sector 0. Contains MBR. sda is the typical designation for a USB drive.

   dd if=/dev/sda of=/dev/fd0/myUSBMBR.bin bs=512 count=1
   dd if=/dev/hda of=/dev/fd0/myHDMBR.bin bs=512 count=1 

2. create partition

   cfdisk /dev/sda
   while in (c)fdisk, remember to make it bootable/active.

3. format partition

   mkdosfs /dev/sda1

4. Install bootloader Unpack syslinux.

   cd /Path/To/Unpacked/Syslinux2.11/

overwrite the drives mbr with the syslinux mbr

   dd if=./mbr.bin of=/dev/sda

Install other files for syslinux

   ./syslinux /dev/sda1

5. copy the boot files from the CD.

   mkdir /mnt/sda1
   mount -t vfat /dev/sda1 /mnt/sda1
   cp /cdrom/boot/isolinux/* /mnt/sda1
   cd /mnt/sda1
   mv isolinux.cfg syslinux.cfg
   rm isolinux.bin
   rm boot.cat 

6. copy knoppix

   cp -r /cdrom/knoppix /mnt/sda1 

References

taken from http://www.knoppix.net/forum/viewtopic.php?p=64999 http://www.knoppix.net/wiki/Main_Page

Personal tools