Lubuntu from live installation (with persistence) onto usb stick (needs PAE capable CPU to boot this - google fake-PAE for possible workarounds)
Used Puppy Precise 5.6.1 to undertake the lubuntu installation as follows:
1. Downloaded linux 32bit lubuntu-13.10-desktop-i386.iso from
http://lubuntu.net
2. I used Gparted to create three partitions on my 16 GB usb drive, which on my system appeared as /dev/sdb... when plugged in (was very IMPORTANT to double check this was the desired target usb stick...):
/dev/sdb1 1 GB ext2 primary partition
(Once you have made all the partitions, right-click on this first partition and select Manage Flags and checkbox boot to make it bootable)
/dev/sdb2 14 GB ext2 primary partition - used required-for-persistence special volume label casper-rw
/dev/sdb3 1 GB fat32 primary partition
EDIT (27Nov13): Actually, you need to arrange for the FAT32 partition to be partition 1 instead or MS windows won't see it and want to format your usb stick. I forgot about that. Also, it is a good idea to partition usb drives more carefully to help prolong their lifetime and perhaps make them faster in operation. I don't know how accurate it is but there is an article about that here:
http://wiki.laptop.org/go/How_to_Damage ... age_Device. I haven't had any problems so far though, even though I have just been partitioning any old way...
NOTES:
I made the unnecessary FAT32 partition just so I could easily move files between linux and MSwindows systems.
The sizes of the partitions isn't important as long as partition 1 is large enough to store the contents from the lubuntu iso. Most any usb flash stick of size 1 GB or over can thus be used for installing lubuntu in this manner.
3. I installed the syslinux mbr.bin bootloader onto the UNMOUNTED usb stick (again double checked /dev/sdb really was the usb stick first!):
Code: Select all
dd if=/usr/lib/syslinux/mbr.bin of=/dev/sdb bs=446 count=1
NOTE: That on Puppy Precise 5.6.1 the syslinux boot code mbr.bin can be found at location /usr/lib/syslinux. On some other systems it is sometimes found at /usr/share/syslinux.
4. I then mounted the first partition, /dev/sdb1 and installed the extlinux ldlinux.sys boot loader code onto that, by using command:
4. I then copied all files and directories (including any hidden ones) from the lbuntu iso to that same mounted partition (/mnt/sdb1).
i.e. Using Rox filemanager:
Open the contents of the lubuntu iso by clicking on it, show hidden files in Rox, and then copy all lubuntu iso contents over to your mounted /mnt/sdb1.
5. On /mnt/sdb1 I then made a txt file called extlinux.conf containing following:
Code: Select all
default /casper/vmlinuz
append initrd=/casper/initrd.lz file=/cdrom/preseed/lubuntu.seed boot=casper quiet splash -- persistent
Above is for booting from usb from the installed extlinux. However, I also boot the stick from another machine that has a BIOS that doesn't boot usb. In its case, I boot the usb stick from the 'already installed to harddrive' grub4dos mbr with the menu.lst lines:
Code: Select all
title lubuntu frugal on sdb1
kernel (hd1,0)/casper/vmlinuz boot=casper noeject noprompt splash persistent --
initrd (hd1,0)/casper/initrd.lz boot
Note that because the second partition on my usb has volume label "casper-rw", which lubuntu looks for, that automatically provides persistence between reboots (i.e. any filesystem changes or work stored during lubuntu use get automatically saved there and, similar to pup-save, appear automatically in filesystem tree on reboot).