Pendrive Linux: Difference between revisions

From miki
Jump to navigation Jump to search
(1st version)
 
No edit summary
Line 1: Line 1:
Instructions on how to make a Persistent Live USB Linux. {{red|This page is completely crap.}}
Everything on how to make a persistent Live USB Linux, pen drive linux, install linux on a flash drive, from Windows or Linux...<br/>{{red|This page is completely crap.}}


== References ==
== References ==
* NetBookIn
* Ubuntu wiki: https://wiki.ubuntu.com/LiveUsbPendrivePersistent)
* Ubuntu wiki: https://wiki.ubuntu.com/LiveUsbPendrivePersistent)
* [http://unetbootin.sourceforge.net/ UNetbootin]
* [http://www.pendrivelinux.com/universal-usb-installer-easy-as-1-2-3/ Universal USB Installer] on pendrivelinux.com
* [http://www.pendrivelinux.com/universal-usb-installer-easy-as-1-2-3/ Universal USB Installer] on pendrivelinux.com, simply the best on Windows.


== 1st recipe ==
== Using Automatic Tools ==

=== Universal USB Installer (Windows) ===
See [http://www.pendrivelinux.com/universal-usb-installer-easy-as-1-2-3/ Universal USB Installer] on pendrivelinux.com.

=== UNetbootin (Windows, Linux) ===

=== Startup Disk Creator (Ubuntu) ===
This is an utility on Ubuntu.
* Launch ''Startup Disk Creator'' in menu ''System'' &rarr; ''Administration''.
* Select ISO you want to use
* Select a free '''FAT32''' partition on your USB drive ({{red|BEWARE! Don't let it erase the partition, because that b*tch will erase the '''WHOLE''' disk}})
* Select size of ''casper'' file for persistent
* ... and let's go.

== Manual recipes ==

=== 1st recipe ===
* Extract Linux CD in USB root
* Extract Linux CD in USB root
* Delete folder [ROOT]
* Delete folder [ROOT]
Line 27: Line 44:
</source>
</source>


== Another way to create the persistent file ==
=== Another way to create the persistent file ===
To create a persistent file (4GB file):
To create a persistent file (4GB file):
<source lang="bash">
<source lang="bash">
Line 41: Line 58:
</source>
</source>


== Yet another way ==
=== Yet another way ===
* Created partition: 1 for extract iso, 1 for casper-rw
* Created partition: 1 for extract iso, 1 for casper-rw
* extract the .ISO to usb
* extract the .ISO to usb

Revision as of 08:45, 1 June 2011

Everything on how to make a persistent Live USB Linux, pen drive linux, install linux on a flash drive, from Windows or Linux...
This page is completely crap.

References

Using Automatic Tools

Universal USB Installer (Windows)

See Universal USB Installer on pendrivelinux.com.

UNetbootin (Windows, Linux)

Startup Disk Creator (Ubuntu)

This is an utility on Ubuntu.

  • Launch Startup Disk Creator in menu SystemAdministration.
  • Select ISO you want to use
  • Select a free FAT32 partition on your USB drive (BEWARE! Don't let it erase the partition, because that b*tch will erase the WHOLE disk)
  • Select size of casper file for persistent
  • ... and let's go.

Manual recipes

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