Hi,
I successfully created a Live USB bootable pen drive by using my custom kickstart file, livecd-creator, livecd-iso-to-disk, as explained here:
http://fedoraproject.org/wiki/How_to_create_and_use_Live_USB
Everything works, but I would like to be able to remove the USB pen after boot and run everything from RAM. The machine has 2GiB of RAM and the img is 300MiB, so it is certainly doable.
For what I want to do, one free USB port is more valuable than 300MiB of disk cache.
Is there a way to obtain this?
Thank you.
On 18 April 2010 09:56, Roberto Ragusa mail@robertoragusa.it wrote:
Hi,
I successfully created a Live USB bootable pen drive by using my custom kickstart file, livecd-creator, livecd-iso-to-disk, as explained here:
http://fedoraproject.org/wiki/How_to_create_and_use_Live_USB
Everything works, but I would like to be able to remove the USB pen after boot and run everything from RAM. The machine has 2GiB of RAM and the img is 300MiB, so it is certainly doable.
For what I want to do, one free USB port is more valuable than 300MiB of disk cache.
Is there a way to obtain this?
Add "live_ram" to the editable boot prompt at runtime or in your kickstart use: bootloader --append=live_ram These are hidden poweruser options use with care ;-)
...dex
dexter wrote:
Add "live_ram" to the editable boot prompt at runtime or in your kickstart use: bootloader --append=live_ram These are hidden poweruser options use with care ;-)
Thank you, it worked.
Why is this option not added as an additional entry in the boot menu? This is a useful feature and it is totally undiscoverable. (even after reading the source code of the livecd* tools it is not evident)
I already solved my problem in a different way. The livecd-iso-to-pxeboot tool appends the cdrom iso to the initrd and mounts it with -o loop, so I ported that approach to the livecd-iso-to-usb tool by adding an additional option. It works. But your solution is better because the big image is read by Linux, while in my case it was read by grub; there is a big USB speed difference.
Thanks again.
On 04/20/2010 01:32 AM, Roberto Ragusa wrote:
dexter wrote:
Add "live_ram" to the editable boot prompt at runtime or in your kickstart use: bootloader --append=live_ram These are hidden poweruser options use with care ;-)
Thank you, it worked.
Why is this option not added as an additional entry in the boot menu? This is a useful feature and it is totally undiscoverable. (even after reading the source code of the livecd* tools it is not evident)
It was in the menu before and caused a lot of confusion and bug reports from users who misunderstood what it meant.
Rahul
Rahul Sundaram wrote:
It was in the menu before and caused a lot of confusion and bug reports from users who misunderstood what it meant.
Hmmm, so this is another case where inexperienced users damage long time users. Wouldn't it better to have a "Boot normally" "Boot and run from RAM (expert)" menu structure? Or maybe something which says what kind of options are available for adding (knoppix used to have this kind of help screen).
On 04/20/2010 01:00 PM, Roberto Ragusa wrote:
Rahul Sundaram wrote:
It was in the menu before and caused a lot of confusion and bug reports from users who misunderstood what it meant.
Hmmm, so this is another case where inexperienced users damage long time users. Wouldn't it better to have a "Boot normally" "Boot and run from RAM (expert)" menu structure? Or maybe something which says what kind of options are available for adding (knoppix used to have this kind of help screen).
That was how it was done before. A number of users invariably clicked the boot from RAM option and that requires more RAM on your system and then complained about it. The number of users who actually want that option is apparently minuscule. I will add it to the How to anyway.
Rahul