Pendrive Linux

From miki
Revision as of 08:35, 1 June 2011 by Mip (talk | contribs) (1st version)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Instructions on how to make a Persistent Live USB Linux. This page is completely crap.

References

1st recipe

  • Extract Linux CD in USB root
  • Delete folder [ROOT]
  • Copy the files to USB root:
 menu.c32
 syslinux.cfg
 ubnfilel.txt 		(list of all files on the cd - probably useless)
 ubnpathl.txt		(list of all dir on the cd - probably useless)
  • Copy /casper/vmlinuz to /ubnkern
  • Copy /casper/initrd.lz to /ubninit
  • Use "PDL-Casper-RW-Creator.exe" to create the casper file
  • Then edit D:\syslinux.cfg (where D: is the drive letter of your usb stick), and add "persistent" at the end of the line that begins with "append":
default unetbootin
label unetbootin
  kernel /ubnkern
  append initrd=/ubninit file=/cdrom/preseed/ubuntu.seed boot=casper quiet splash persistent --

Another way to create the persistent file

To create a persistent file (4GB file):

dd if=/dev/zero of=G:\\casper-rw bs=1M count=4090 --progress
mke2fs -b 4090 -L casper-rw G:\\casper-rw

To create a persistent partition:

sudo mkfs.ext3 -b 4096 -L casper-rw /dev/sda1
dd if=/dev/zero of=/media/hda1/casper-rw bs=1M count=128
mkfs.ext3 /media/hda1/casper-rw

Yet another way

  • Created partition: 1 for extract iso, 1 for casper-rw
  • extract the .ISO to usb
  • make the drive bootable:
syslinux -maf X:
  • delete [BOOT]
  • created /syslinux.cfg
  • include /isolinux/isolinux.cfg