Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 24 Jul 2014, 04:27
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
HOWTO create easy multi-boot USB Puppy from Linux
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 4 of 6 [81 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6 Next
Author Message
Scooby

Joined: 03 Mar 2012
Posts: 282

PostPosted: Fri 08 Feb 2013, 13:42    Post subject:
Subject description: Some untested workarounds for the savefile issue
 

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:
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
Back to top
View user's profile Send private message 
Scooby

Joined: 03 Mar 2012
Posts: 282

PostPosted: Fri 08 Feb 2013, 13:58    Post subject:  

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:
# 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:
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 Exclamation
Back to top
View user's profile Send private message 
nooby

Joined: 29 Jun 2008
Posts: 10557
Location: SwedenEurope

PostPosted: Sat 09 Feb 2013, 10:04    Post subject:  

Wrong thread for my question sorry
_________________
I use Google Search on Puppy Forum
not an ideal solution though

Last edited by nooby on Sat 09 Feb 2013, 13:56; edited 1 time in total
Back to top
View user's profile Send private message 
rmprep

Joined: 06 Jan 2013
Posts: 8

PostPosted: Sat 09 Feb 2013, 13:45    Post subject:    

Quote:
Code:
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. Very Happy
Back to top
View user's profile Send private message 
rmprep

Joined: 06 Jan 2013
Posts: 8

PostPosted: Sat 09 Feb 2013, 14:30    Post subject:  

OK
This works on a fresh, clean USB drive
Code:
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.
Back to top
View user's profile Send private message 
trueriver

Joined: 07 Feb 2013
Posts: 30
Location: Manchester, England

PostPosted: Sun 10 Feb 2013, 09:52    Post subject:  

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~~
Back to top
View user's profile Send private message 
trueriver

Joined: 07 Feb 2013
Posts: 30
Location: Manchester, England

PostPosted: Sun 10 Feb 2013, 10:24    Post subject:  

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~~
Back to top
View user's profile Send private message 
trueriver

Joined: 07 Feb 2013
Posts: 30
Location: Manchester, England

PostPosted: Mon 11 Feb 2013, 14:41    Post subject:  

Scooby wrote:
...

Code:
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~~
Back to top
View user's profile Send private message 
trueriver

Joined: 07 Feb 2013
Posts: 30
Location: Manchester, England

PostPosted: Mon 11 Feb 2013, 15:09    Post subject:
Subject description: A tested workaround for the savefile issue
 

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~~
Back to top
View user's profile Send private message 
Scooby

Joined: 03 Mar 2012
Posts: 282

PostPosted: Mon 25 Feb 2013, 14:35    Post subject:  

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, 15:57; edited 1 time in total
Back to top
View user's profile Send private message 
nooby

Joined: 29 Jun 2008
Posts: 10557
Location: SwedenEurope

PostPosted: Mon 25 Feb 2013, 15:43    Post subject:  

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
Back to top
View user's profile Send private message 
Scooby

Joined: 03 Mar 2012
Posts: 282

PostPosted: Mon 25 Feb 2013, 16:46    Post subject:  

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?
Back to top
View user's profile Send private message 
nooby

Joined: 29 Jun 2008
Posts: 10557
Location: SwedenEurope

PostPosted: Mon 25 Feb 2013, 17:16    Post subject:  

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
Back to top
View user's profile Send private message 
gcmartin

Joined: 14 Oct 2005
Posts: 4078
Location: Earth

PostPosted: Tue 26 Feb 2013, 13:26    Post subject:  

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

_________________
Get ACTIVE Create Circles; Do those good things which benefit people's needs!
We are all related ... Its time to show that we know this!
3 Different Puppy Search Engine or use DogPile
Back to top
View user's profile Send private message 
nooby

Joined: 29 Jun 2008
Posts: 10557
Location: SwedenEurope

PostPosted: Tue 26 Feb 2013, 15:10    Post subject:  

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
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 4 of 6 [81 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1014s ][ Queries: 13 (0.0101s) ][ GZIP on ]