Leszek:

Thank you very much for this detailed information. It is very preferable to my "trial-and-error" methodology on bootable USB drives I've used up to now.

Your e-mail has been put in my "Info-Gems" folder, to be used the next time I need to create a bootable USB (probably after the 14.04 release).

- Aere


On 02/04/2014 04:20 AM, Leszek Lesner wrote:
As I am also the main dev of Neptune and we claim ourselves to be live
and persistency experts here a short explaination for you.
First of all you have two choices to make.
1. I want a FAT32 partitioned USB Stick that not only contains my live
system but also is usable as normal usb stick on every computer around
(especially windows and mac pcs)
2. I want a linux live only usb stick without the necessity of a FAT32
partition.

For making it short I only explain 1. here

For 1: I would recommend to use unetbootin to get the ISO onto an usb
stick.
In Details what unetbootin does is:
     * Copy over the contents of the ISO onto the usb stick (including
hidden folders like .disk which is necessary for ubiquity in particular
for the installation process)
     * Install syslinux bootloader to boot. (This step includes
converting/copying the isolinux bootmenu file to syslinux format)

To make that stick now persistent you have two options.
A. I want a persistency file on my fat32 part of the usb stick so that I
can also delete/copy or make a backup of it and share it with my friends
directly from the usb stick and can live with the filesize limit of
FAT32 which is 4 GB.
B. I want a large persistency partition and don't care about easily
copying ot deleting it.

For A: dd is your friend and you can create a empty disk image like this
dd if=/dev/zero of=test.img bs=1M count=1000
This creates a 1 GB test.img file.
For it to work as persistent file it needs to be formatted as something
that the linux system can read (e.g. ext2/3/4/jfs/xfs/btrfs ...)
I recommend ext2 here or if you are fancy ext4 without journaling
(journaling makes no sense on flash based devices like an usb stick)
mkfs.ext2 test.img
This is basically all. You need to rename the file to
casper-rw
and copy it over to the root of the usb stick.
Then adding the boot option
persistent
(either manually by pressing TAB in the bootmenu of syslinux or directly
in the syslinux.cfg) the *buntu system should then boot up with
persistency enabled.

For B: You need to make space for the persistency partition on the usb
stick. Gparted is your friend here.
When creating the ext2/3/4/jfs/xfs/btrfs partition for your persistency
make sure to label the partition as
casper-rw
Then again after adding the boot option
persistent
the *buntu live system should boot up with persistency enabled.



--
Sincerely,
Aere


--
Lubuntu-users mailing list
[email protected]
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/lubuntu-users

Reply via email to