Boot menu for Flash stick

This is something that I have been meaning to do for a long time. When the Universal Installer installs Puppy to a USB or ATA Flash memory, there is no splash graphic nor any opportunity to enter boot parameters. This is a bit of a disappointment if you have been accustomed to these features when booting off a live-CD.

I have modified the Universal Installer (script /usr/sbin/puppyinstaller) to present a boot splash graphic and menu, just as with the live-CD, when installing to any media that uses Syslinux or Extlinux to boot.


Posted on 21 Mar 2010, 10:23


Comments:

Posted on 21 Mar 2010, 10:47 by cthisbear
Good result
Perfect BK.

Well missed after being in Puppy 4.2.1 and
since then being forced to pluck files off the cd.

Chris.


Posted on 21 Mar 2010, 14:54 by Lobster
non boot
. . . reminds me I sometimes have a USB device plugged in. It fails to boot and I wonder if a message - "USB device plugged in - remove and reboot" would be possible? I have been left confuse several times by this non booting behaviour - now used to it.


Posted on 21 Mar 2010, 16:37 by drongo
Good, but.....
.... on or in which one? Woof? Quirky? Puppy 4.3.2? All three?

I can stop using CDs now. Good.


Posted on 22 Mar 2010, 14:36 by Lobster
All
Yes all of them - if booting from CD

I sometimes leave a USB reader in and a Grub message comes up - which I assume is on the MBR of the hard drive - so that might be remnants of Ubuntu - m m m . . . might not be Puppy at all - it comes up before the CD boots - might have a look in the BIOS . . . [Lobster rambles off into the distance]


Posted on 22 Mar 2010, 22:22 by eprv
boot menu
Great, that was missing I had to copy the files from the iso to the flash stick. and edit the extlinux.conf file each time.


Posted on 23 Mar 2010, 2:08 by Michalis
Boot Grub-like option?
I tried the last days for first time to use different puppies versions from a single usb, the same way I do it in my hard drive and I found out that it's a bit complicated and needs much involve of the end user to achieve it.

Could you change the usb installation in a way that it will make it easy to install many different puppies frugal style? From what I've read it is possible with grub4dos. This way anyone could install each puppy in a different subfolder the same way it's being done in an hdd and have the ability to select whichever wants. It would be really helpful.


Posted on 23 Mar 2010, 21:35 by Michalis
Syslinux does the job
I searched a little bit feather and found that the solution is very simple by using syslinux. Syslinux is the default that puppy is using when installed in an usbthumb, so no need for grub4dos.

What is needed is except of the syslinux.cfg a file called "menu.txt" at the root of the usb.
In my case where the files are under subfolders /puppy/ and /quirky010/ the menu.txt is:
1.- Puppy Linux 431

2.- Quirky Linux 010


and the syslinux.cfg is:
PROMPT 1

TIMEOUT 0
DEFAULT 1
DISPLAY menu.txt

LABEL 1
KERNEL /puppy/vmlinuz
INITRD /puppy/initrd.gz pmedia=usbflash pfix=copy

LABEL 2
KERNEL /quirky010/vmlinuz
INITRD /quirky010/initrd.gz pmedia=usbflash pfix=copy


To choose whether boot of puppy431 or quirky is being done only by typing "1" or "2" and press enter. Of course anybody can add as many puppies as he needs and modify the files as needed.

Works perfect except of a small problem, it doesn't make use of the parameter pfix. No matter whether is pfix=copy or pfix=ram it will load the pup save file from the hard drive. Is there a solution for this problem?


Posted on 24 Mar 2010, 4:08 by Michalis
The solution
Gosh, I can't believe it, by mistake I changed the initrd line and that's why wasn't working. The correct syslinux.cfg is the following:
PROMPT 1

TIMEOUT 0
DEFAULT 1
DISPLAY menu.txt

LABEL 1
KERNEL /puppy/vmlinuz
APPEND initrd=/puppy/initrd.gz pmedia=usbflash pfix=copy

LABEL 2
KERNEL /quirky010/vmlinuz
APPEND initrd=/quirky010/initrd.gz pmedia=usbflash pfix=copy


Works without any problem and uses the pfix options.

Anyway it would be nice, since you are reworking the boot from flash media, to add this feature. Would be very easy to anyone who isn't familiar with booting from usb flash drives to make his own multiboot/multitest flash drive.


Posted on 25 Oct 2010, 18:40 by Muhammad usman
GREAT SITE
I'm running fellow Edubook user pskin's Puppy 431 build for the Gecko (http://murga-linux.com/puppy/viewtopic.php?t=50208). I tried to generate a report from hardinfo, with the intention of posting it here, but it returns an empty file. Any command-line functions you'd have me run?


THANKS
<a href="http://www.testkings.net">testking</a>
Muhammad usman


Posted on 25 Oct 2010, 18:42 by Muhammad usman
GREAT SITE
I'm running fellow Edubook user pskin's Puppy 431 build for the Gecko (http://murga-linux.com/puppy/viewtopic.php?t=50208). I tried to generate a report from hardinfo, with the intention of posting it here, but it returns an empty file. Any command-line functions you'd have me run?


THANKS
testking
Muhammad usman