HOWTO create easy multi-boot USB Puppy from Linux

How to do things, solutions, recipes, tutorials
Message
Author
Scooby
Posts: 599
Joined: Sat 03 Mar 2012, 09:04

#46 Post by Scooby »

trueriver wrote: 2. Workaround for existing Puppy iso

Extract the iso file to a folder on disk, alter the file isolinux.cfg changing cd to usbflash so the last line now reads

Code: Select all

append initrd=initrd.gz pmedia=usbflash
and then re-create the iso from that folder. This process of extract->replace->rebuild could easily be automated.
I created a script for editing ISO's

it worked for me and can set whatever boot parameters you like for example
pmedia=cd

I'm thinking of incorporate a way of booting with psavemark boot option passed.
Look at discussion here

Scooby
Posts: 599
Joined: Sat 03 Mar 2012, 09:04

#47 Post by Scooby »

rmprep wrote:You can boot from ISO but you need to extract the sfs file - so you might as well just extract all three files.

here are both menu entries for precise sku - use whichever one you like and you can change the folder name if you like to match your distro.

Code: Select all

# Extract files to /precise (only vmlinuz, initrd.gz and sfs needed)
# rename PUPPY_PR.SFS to lower case puppy_precise_5.4.3.sfs
title Precise
kernel /precise/vmlinuz pmedia=usbflash psubdir=precise fix=fsck  psavemark=1
initrd /precise/initrd.gz 

# Extract sfs to /precise
# rename PUPPY_PR.SFS to lower case puppy_precise_5.4.3.sfs and place in \precise folder
title puppy boot from ISO
map /_ISO/Linux/precise-5.4.3.iso (0xff)
map --hook
root (0xff)
kernel /vmlinuz pmedia=usbflash psavemark=1 fix=fsck  psubdir=precise
initrd /initrd.gz
I am not sure if the fix=fsck is required - seems to work OK without it.

Note: ONLY WORKS ON REAL SYSTEM and NOT in QEMU!

I used a FAT32 USB boot drive and settings were not saved on exit.
They may be saved if you use ext2 format.

Code: Select all

title puppy boot from ISO
partnew (hd0,3) 0x00 (hd0,0)/_ISO/Linux/precise-5.4.3.iso
map  (hd0,0)/_ISO/Linux/precise-5.4.3.iso (0xff)
map --hook
root (0xff)
kernel /vmlinuz pmedia=usbflash psavemark=1 fix=fsck  psubdir=precise
initrd /initrd.gz
Steve I know this works as well and needs no extraction of files from ISO.

Is there any special reason you don't recommend using it this way?

And Steve I really love your work with Easy2Boot, thank you :!:

nooby
Posts: 10369
Joined: Sun 29 Jun 2008, 19:05
Location: SwedenEurope

#48 Post by nooby »

Wrong thread for my question sorry
Last edited by nooby on Sat 09 Feb 2013, 17:56, edited 1 time in total.
I use Google Search on Puppy Forum
not an ideal solution though

rmprep
Posts: 17
Joined: Sun 06 Jan 2013, 15:08

#49 Post by rmprep »

Code: Select all

title puppy boot from ISO
partnew (hd0,3) 0x00 (hd0,0)/_ISO/Linux/precise-5.4.3.iso
map  (hd0,0)/_ISO/Linux/precise-5.4.3.iso (0xff)
map --hook
root (0xff)
kernel /vmlinuz pmedia=usbflash psavemark=1 fix=fsck  psubdir=precise
initrd /initrd.gz
Steve I know this works as well and needs no extraction of files from ISO.
Is there any special reason you don't recommend using it this way?
Hi
I can't make that work? It needs to have the sfs file in the \precise folder??? If you just have the iso file it fails to boot???


If you make a file called Precise.mnu and place it in the \_ISO\Linux folder, it will be listed in the first menu in Easy2Boot. :D

rmprep
Posts: 17
Joined: Sun 06 Jan 2013, 15:08

#50 Post by rmprep »

OK
This works on a fresh, clean USB drive

Code: Select all

title puppy boot from ISO 
partnew (hd0,3) 0x00 (hd0,0)/_ISO/Linux/precise-5.4.3.iso 
map  (hd0,0)/_ISO/Linux/precise-5.4.3.iso (0xff) 
map --hook 
root (0xff) 
kernel /vmlinuz pmedia=usbflash psavemark=1 fix=fsck
initrd /initrd.gz
you must omit the subdir=precise parameter.

I have added the .mnu file to the Easy2Boot Tutorial on my site.

trueriver
Posts: 30
Joined: Thu 07 Feb 2013, 15:29
Location: Manchester, England

#51 Post by trueriver »

rmprep wrote:OK
This works on a fresh, clean USB drive ...
then the issue is probably that the .iso was fragmented on the pre-used drive.

River~~

trueriver
Posts: 30
Joined: Thu 07 Feb 2013, 15:29
Location: Manchester, England

#52 Post by trueriver »

Please note: I just edited an earlier post to update the location of the bootlace.com file. To save you looking back I'll repeat the corrected info here.

The bootlace program is in the grub4dos zip file downloadable from
grub4dos version 0.4.5c

or check the project's downloads page in case there is an even newer version.

Regards,
River~~

trueriver
Posts: 30
Joined: Thu 07 Feb 2013, 15:29
Location: Manchester, England

#53 Post by trueriver »

Scooby wrote:...

Code: Select all

title puppy boot from ISO
partnew (hd0,3) 0x00 (hd0,0)/_ISO/Linux/precise-5.4.3.iso
map  (hd0,0)/_ISO/Linux/precise-5.4.3.iso (0xff)
map --hook
root (0xff)
kernel /vmlinuz pmedia=usbflash psavemark=1 fix=fsck  psubdir=precise
initrd /initrd.gz
Steve I know this works as well and needs no extraction of files from ISO.

Is there any special reason you don't recommend using it this way?
This does not work with most flavours of linux. That is why people who are familiar with Grub4dos will tend not to think of this option, and (I am guessing) this might well be one of the motivations behind the easy2boot extensions to grub4dos. And indeed it is why I personally was delighted to be pointed towards that project by this thread.

Try doing it with Ubuntu for example and it tells you it can't find root and it drops you into a busybox prompt to let you sort it out.

The reason it does not work is that the linux kernel does not know where its files are. It crashes at the point where it usually mounts the true root volume, and that is just before it stops running the initrd and comes out into the real world.

The typical fix is to pass the kernel a parameter which tells it where the iso is on the filesystem (Ubuntu, for example, has a normal syntax of root=/dev/sda1 but needs a different syntax when the files are inside an iso). So the initrd has to know how to parse that paramter and what to do with it, and different distros do this in various ways. Some distros do not bother at all, and then it becomes almost impossible to boot them from an iso file without using the easy2boot extensions.

As you have noticed. it *does* work with Puppy without the need for any special fix.

The reason for this is that when Puppy runs from an .iso or from a frugal install, it never leaves the initrd. The kernel does not need to know where the root file system is, because it is inside the initrd, and that has be preloaded for it by grub / syslinux / etc

BarryK does this so that Puppy runs faster when running normal system commands - the downside is that ram is taken up with stuff that is on the disk on "most" Linuxes.

But a side effect is that because Puppy never leaves the initrd, it never panics with ther "unable to find root" message. I do not know if this was a deliberate part of the original design, or whether it is a just an accidental :wink: bone-us.

But you are right to use the older (grub4dos) method when you know it works: it is often faster.

R~~

trueriver
Posts: 30
Joined: Thu 07 Feb 2013, 15:29
Location: Manchester, England

#54 Post by trueriver »

Hi everyone.

A few days ago I said
trueriver wrote:...
Ideas.
...
4. Make a "mongrel" easy2boot and permanent system.
...
Just to let you know I have now got this working, and have posted a separate HowTo here

I posted it separately as it is quite long and I did not want to break the flow of this thread.

At the top of the first post on the new thread I compare my approach with the one being offered here - there are clear advantages to each method.

R~~

Scooby
Posts: 599
Joined: Sat 03 Mar 2012, 09:04

#55 Post by Scooby »

Updated first post with a new alternative 0 - the ultimate way!

Go There Now!!!

A pet-file is available for download!
Last edited by Scooby on Mon 25 Feb 2013, 19:57, edited 1 time in total.

nooby
Posts: 10369
Joined: Sun 29 Jun 2008, 19:05
Location: SwedenEurope

#56 Post by nooby »

Scooby I am a noob that is why I have that name.
hope it is okay to ask this here. How are your latest
0 version compared to rcrsn51's Isobooter way of doing it.

I have tested that one now for many iso's and some fail
but most works. He bases his version on your thoughts
so them maybe are very similar.

In your latest version presented today what is different
what improvement did you do?
I use Google Search on Puppy Forum
not an ideal solution though

Scooby
Posts: 599
Joined: Sat 03 Mar 2012, 09:04

#57 Post by Scooby »

nooby wrote: How are your latest
0 version compared to rcrsn51's Isobooter


Well I never tried isobooter though it seems like a good enough software

My version is for USB only - I am not sure of isobooter?

My version doesnt require any use of other partitioning tools.
The whole USB will be formatted using mine.

My version uses gtk dialogs - should be easy for a noob but only you can
say if I succeeded :wink: I think isobooter is a terminal script?

I think isobooter automatically searches and installs isos? my version you have to do the copying yourself.

Since I never tried nor read the code I cannot say much about isobooter
I would say they are fairly similar.

If you provide the isos that fail I will be happy to test them?

nooby
Posts: 10369
Joined: Sun 29 Jun 2008, 19:05
Location: SwedenEurope

#58 Post by nooby »

isobooter is extremely easy to use.

I'll test your Alternative 0 now
within 30 minute or so. Rebooting ...
I use Google Search on Puppy Forum
not an ideal solution though

gcmartin

#59 Post by gcmartin »

nooby wrote:isobooter is extremely easy to use.

I'll test your Alternative 0 now
within 30 minute or so. Rebooting ...
I have not tested using "0". but, have, in the past weeks found Easy2Boot extremely simple without requiring the need to "reset" the GRUB4DOS menu system that ISObooter requires.

Both of these methods, ISObooter and Easy2Boot, achieve what they advertise; namely to modify a USB or HDDs Bootmanager to allow ISOs to be booted after download to that USB.

Here to help

nooby
Posts: 10369
Joined: Sun 29 Jun 2008, 19:05
Location: SwedenEurope

#60 Post by nooby »

Yes sorry if my clumsy way of expressing myself
comes through as any kind of criticism. I think E2B
works good for some and Isobooter works better
for me and maybe others that are noobs like me.

Sorry for the big delay. i promised 30 minutes but
obviously it took many hours. Voi.

So now I have tested 4 different isos on a 4GB USB
and to me IsoBooter is magnitudes easier to handle.

Took me very long time to get how E2B wants me to
behave. Sorry I am just different I trust it is the best
for you and others. So to each his own.

Hasty report. Both fail with same isos.
Could be something I set up wrong but
the consistency tells me it is rather something
with the iso and not how one boot it.

Porteus lxde has this error message at boot and lock itself
xterm: Cannot load font ....

slitaz requests events from the kernel and lock.

Antix 13 Can not mount SDA1 but that could be
a very known thing. So not related to either E2B or isobooter
it fails on both to mount the NTFS formatted SDA1

I am in a Slacko puppy now that I will most likely go on using
without savefile. Seems to be the one easiest to set up fresh
each time.
I use Google Search on Puppy Forum
not an ideal solution though

Scooby
Posts: 599
Joined: Sat 03 Mar 2012, 09:04

#61 Post by Scooby »

slitaz requests events from the kernel and lock.

Antix 13 Can not mount SDA1 but that could

Steve who created Easy2Boot has posted some menu items of Slitaz and Antix --- I havent tried them!

You can use them directly with Easy2Boot .mnu feature or hack the straight into
isobooter menu.lst and try.

I dunnow if they'll work bur steve is very good at what he does - you could try

Good luck with isobooter!
Attachments
Slitaz-4.0.iso.zip
Slitaz-4.0
(743 Bytes) Downloaded 498 times
antiX-M11-core-squeeze-486.iso.zip
AntiX M11 core 486 iso
(788 Bytes) Downloaded 470 times

nooby
Posts: 10369
Joined: Sun 29 Jun 2008, 19:05
Location: SwedenEurope

#62 Post by nooby »

Edit. It could have been me downloading the wrong iso.
I still don't know I am too lazy to find out. sorry
old text
I downloaded and looked into Slitaz-4.0.iso.zip and there is
nothing there that is different from what Easy2boot already have
in the boot code so I doubt it would work differently.
Last edited by nooby on Wed 10 Apr 2013, 09:04, edited 1 time in total.
I use Google Search on Puppy Forum
not an ideal solution though

Scooby
Posts: 599
Joined: Sat 03 Mar 2012, 09:04

#63 Post by Scooby »

nooby wrote:I downloaded and looked into Slitaz-4.0.iso.zip and there is
nothing there that is different from what Easy2boot already have
in the boot code so I doubt it would work differently.
As I said I didnt try it(or look at it) but it was reported as working

Scooby
Posts: 599
Joined: Sat 03 Mar 2012, 09:04

#64 Post by Scooby »

looks like rmprep(steve) is working on a new version of Easy2Boot

It seems like he is working on windows install iso's and more

check out

https://sites.google.com/a/rmprepusb.com/www/tutorials/72---easyboot---a-grubdos-multiboot-drive-that-is-easy-to-maintain

also check out his blog for more info


http://rmprepusb.blogspot.co.uk/

DrDeaf
Posts: 69
Joined: Sat 30 Dec 2006, 14:10

#65 Post by DrDeaf »

My present choices of boot media and file system made "Alternative 1" look best to me. I didn't stick with it because it writes out the ISO files to a separate partition.
It worked well but there was one fly in the ointment.
I don't use savefiles so my practice is to boot from "read only".
I did wonder if it is possible to set it up to copy the ISO files to RAM and then proceed? Perhaps delete the files after boot?
I use Fatdog64 and I installed RAM to take advantage of that. RAM space is not a problem.
Thanks for your work!

Post Reply