macplaxton
April 13th, 2010, 09:05 PM
Hi, I've spent the last 3 days solid trying to get a USB stick to work the way I want it and have run out of ideas.
The object of the exercise is to have a Live USB bootable stick running Ubuntu 9.10, but it also needs to be persistent.
I've tried a few different ways of running it.
1) From a ISO image burnt to a CD for a Live version - works fine, takes a couple of minutes to boot, but obviously no persistence.
2) Installing to 4GB FAT USB stick using the USB installer option after loading Live CD - again works fine, prompts for language just like the CD and boots in around a minute, again no persistence. Same method, but using the slider to use the spare space on the stick as a persistence file - works, but takes 8 minutes to boot.
3) Partitioning a 4GB USB stick in a variety of ways. All boot okay to Live version. Add in persistence and the boot time shoots up from less than a minute to 8 minutes.
As well as trying option 2), my preferred arrangement is to have the 4GB partitioned as 3x ext2: 1GB boot "ubuntu_0910", 1GB "casper-rw" for persistence, 2GB "storage" for everything else. After getting my head around setting up the boot loader (EXTLINUX) and configuring the the boot options correctly, I still have the same issue. Fast boot Live / Slow boot live with persistence.
Removing 'splash' and 'quiet' and I can see at what stages in the boot it stalls.
Without "cdrom-detect/try-usb=true", Live will take 8 minutes to boot. It spends 7 minutes of that in a "no medium found" merry-go-round not being able to open various devices and waiting for nothing. Then it eventually loads.
Adding in "cdrom-detect/try-usb=true", Live will take less than a minute to boot, as although it flags up 16 lines of "no medium found" for my two optical drives sr0/sr1, it ignores them and cracks on with booting up.
The problem I have is that when I add the magic word "persistent" into the boot options, it spends 7 minutes dithering again in a "no medium found" state, before giving up and magically finding what it's spent the last 7 minutes looking for on the USB stick.
Is there a precise order to the boot options? Or is there one missing I could use to sort this out? Currently I've got:
kernel /casper/vmlinuz
append file=/cdrom/preseed/ubuntu.seed boot=casper initrd=/casper/initrd.lz cdrom-detect/try-usb=true --
time taken = 39 seconds (from the log).
kernel /casper/vmlinuz
append file=/cdrom/preseed/ubuntu.seed boot=casper initrd=/casper/initrd.lz cdrom-detect/try-usb=true persistent --
470 seconds.
Adding "floppy=off", "live-media-path=/casper/" and "ignore_uuid" made no difference.
I've drawn the conclusion that either I'm doing something wrong, or there's a bug.
Any suggestions most welcome,
Rich
The object of the exercise is to have a Live USB bootable stick running Ubuntu 9.10, but it also needs to be persistent.
I've tried a few different ways of running it.
1) From a ISO image burnt to a CD for a Live version - works fine, takes a couple of minutes to boot, but obviously no persistence.
2) Installing to 4GB FAT USB stick using the USB installer option after loading Live CD - again works fine, prompts for language just like the CD and boots in around a minute, again no persistence. Same method, but using the slider to use the spare space on the stick as a persistence file - works, but takes 8 minutes to boot.
3) Partitioning a 4GB USB stick in a variety of ways. All boot okay to Live version. Add in persistence and the boot time shoots up from less than a minute to 8 minutes.
As well as trying option 2), my preferred arrangement is to have the 4GB partitioned as 3x ext2: 1GB boot "ubuntu_0910", 1GB "casper-rw" for persistence, 2GB "storage" for everything else. After getting my head around setting up the boot loader (EXTLINUX) and configuring the the boot options correctly, I still have the same issue. Fast boot Live / Slow boot live with persistence.
Removing 'splash' and 'quiet' and I can see at what stages in the boot it stalls.
Without "cdrom-detect/try-usb=true", Live will take 8 minutes to boot. It spends 7 minutes of that in a "no medium found" merry-go-round not being able to open various devices and waiting for nothing. Then it eventually loads.
Adding in "cdrom-detect/try-usb=true", Live will take less than a minute to boot, as although it flags up 16 lines of "no medium found" for my two optical drives sr0/sr1, it ignores them and cracks on with booting up.
The problem I have is that when I add the magic word "persistent" into the boot options, it spends 7 minutes dithering again in a "no medium found" state, before giving up and magically finding what it's spent the last 7 minutes looking for on the USB stick.
Is there a precise order to the boot options? Or is there one missing I could use to sort this out? Currently I've got:
kernel /casper/vmlinuz
append file=/cdrom/preseed/ubuntu.seed boot=casper initrd=/casper/initrd.lz cdrom-detect/try-usb=true --
time taken = 39 seconds (from the log).
kernel /casper/vmlinuz
append file=/cdrom/preseed/ubuntu.seed boot=casper initrd=/casper/initrd.lz cdrom-detect/try-usb=true persistent --
470 seconds.
Adding "floppy=off", "live-media-path=/casper/" and "ignore_uuid" made no difference.
I've drawn the conclusion that either I'm doing something wrong, or there's a bug.
Any suggestions most welcome,
Rich