(OLD) (ARCHIVED) Puppy Linux Discussion Forum Forum Index (OLD) (ARCHIVED) Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info

This forum can also be accessed as http://oldforum.puppylinux.com
It is now read-only and serves only as archives.

Please register over the NEW forum
https://forum.puppylinux.com
and continue your work there. Thank you.

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups    
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 27 Nov 2020, 13:10
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
Porteus Boot for Puppies
Moderators: Flash, Ian, JohnMurga
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies. View previous topic :: View next topic
Page 1 of 2 [20 Posts]   Goto page: 1, 2 Next
Author Message
jrb


Joined: 11 Dec 2007
Posts: 1539
Location: Smithers, BC, Canada

PostPosted: Mon 13 Jan 2020, 15:30    Post subject:  Porteus Boot for Puppies
Subject description: Adapting fredx181's Porteus boot to WoofCE puppies
 

jrb wrote:
zagreb999 wrote:
regards

great job
can you add porteus boot
as in debiandog

it is much faster!

thanks
Yes, I love porteus boot Cool and have been using it with Puppies for 3 years. The problem is its hard to compare notes with people on the forum when your Puppy is set up so differently. I'll write up a brief description of how to do it and place it in the HowTo section soon.

Cheers, J

OK, Here's the explanation, with learning aids even. I first encountered Porteus boot while using Porteus, what a surprise. I was very impressed. It gave much more control over the boot process than Puppy. SFS's (Squashfs's) were very easy to load and could be anywhere on your drive, just symlinked to the home folder. Changes you wanted to try could be placed in /rootcopy and loaded at boot. You could have save folders (This was before pupsave folders). I tried adapting Porteus initrd.xz to Puppy but it was far above my abilities. Imagine how pleased I was when fredx181 managed it. Very Happy

So, I started adapting Fred's adaption to Puppy. Turned out it wasn't that hard. Good thing too. All it really needed was one symlink. I used it that way for 3 years and then it quit working, for newer Puppies anyway. When upupbb became bionicpup32 changes in /sbin/init killed Porteus boot. So I put the old /sbin/init in the rootcopy folder and viola, Porteus boot was back in business.

I've uploaded the basic home directory. You can download it and place it on your home drive. I have included a sample menu.lst entry which you can copy into your menu.lst. Notice that it has my harddrives UUID. You can get your UUID by using
Code:
blkid
.
I set mine up a little different than Fred. I put my boot files in /base except for initrd.xz. These are just your basic Puppy files, puppy_XXX.sfs, vmlinuz, zdrv_XXX.sfs. Notice that they are symlinked to 001-zdrv-XXX.squashfs, and 002-puppy_XXX.sfs. Porteus loads in numerical order which is quite important. I should mention that if you're going to load a devx.sfs then make that 002 and puppy 003.

There's a good writeup of kernel line options in Examples-boot-codes.txt. Thanks Fred.

Have to go now, my daughter wants to go skiing.

BFN, J
PorteusBt1.jpeg
 Description   
 Filesize   67.49 KB
 Viewed   402 Time(s)

PorteusBt1.jpeg

Back to top
View user's profile Send private message 
dancytron

Joined: 18 Jul 2012
Posts: 1555

PostPosted: Mon 13 Jan 2020, 16:00    Post subject:  

Thanks for this. I'll download it and give it a try today.

Why use symlinks? Is there a reason to not just copy the files where you want them and change their names to put the in the right order?

edit: That was just too easy. Posting from it now.

This is the menu.1st entry that I used, adapted from my usual one with Debian Dog.

Quote:
title Buster Puppy with porteus

root (hd0,1)
kernel (hd0,1)/PorteusForPuppy/base/vmlinuz from=/PorteusForPuppy sgnfile=0_Test1.sgn changes=EXIT:/PorteusForPuppy/
initrd (hd0,1)/PorteusForPuppy/initrd1.xz


Not sure yet on getting it to save changes and use save folder.
Screenshot.png
Description  (attachment is screenshot of /base folder)
png

 Download 
Filename  Screenshot.png 
Filesize  99.23 KB 
Downloaded  198 Time(s) 
Back to top
View user's profile Send private message 
backi

Joined: 27 Feb 2011
Posts: 2007
Location: GERMANY

PostPosted: Mon 13 Jan 2020, 16:42    Post subject:  

Hi !

Wow .......quite interesting ......Thumbs up ...!
Wondered why nobody ever came across this idea earlier .
Anyway ....will observe this thread further .

Regards !
Back to top
View user's profile Send private message 
jrb


Joined: 11 Dec 2007
Posts: 1539
Location: Smithers, BC, Canada

PostPosted: Mon 13 Jan 2020, 16:45    Post subject:  

dancytron wrote:
Why use symlinks? Is there a reason to not just copy the files where you want them and change their names to put the in the right order?

edit: That was just too easy. Posting from it now.

No reason except I usually just symlink my Puppy files over from a normal Puppy folder. They can be anywhere on the drive, don't remember if they will bridge over partitions. Its been awhile.

I'm a firm believer in the KISS principle. Laughing
Back to top
View user's profile Send private message 
jrb


Joined: 11 Dec 2007
Posts: 1539
Location: Smithers, BC, Canada

PostPosted: Mon 13 Jan 2020, 16:51    Post subject: Why so long  

backi wrote:
Hi !

Wow .......quite interesting ......Thumbs up ...!
Wondered why nobody ever came across this idea earlier .
Anyway ....will observe this thread further .

Regards !

I thought about posting this years ago but when you're running Puppy this way its hard to ask about problems you run into or even venture opinions. You don't know if the problem is in the Puppy or in the Porteus. Confused Makes life simpler if everyone is on the same page.
Back to top
View user's profile Send private message 
dancytron

Joined: 18 Jul 2012
Posts: 1555

PostPosted: Mon 13 Jan 2020, 16:58    Post subject:  

It reports "pupmode=2", which is full install.

Is that expected or did I do something?

Have you gotten it to work with save changes on exit only to a folder?
Back to top
View user's profile Send private message 
zagreb999

Joined: 11 Apr 2014
Posts: 573
Location: Yugoslavija

PostPosted: Mon 13 Jan 2020, 17:00    Post subject:  

hi jrb,
compliments,
thanks!

i use porteus boot by fred
from tazdog_32bit-2018-05-21.iso
it is only 5.5 mb
in live folder i add
sfs of slacko 632-by micko
renamed 01-filesystem.squashfs
plus kernel-squashfs and vmlinuz1

micko's slacko is the best!
it boots in 3 seconds,
quick remaster in 3 sec.-lz4

your precise light can not boot
in this way
Back to top
View user's profile Send private message 
jrb


Joined: 11 Dec 2007
Posts: 1539
Location: Smithers, BC, Canada

PostPosted: Mon 13 Jan 2020, 17:07    Post subject: pupmode=2  

dancytron wrote:
It reports "pupmode=2", which is full install.

Is that expected or did I do something?

Have you gotten it to work with save changes on exit only to a folder?

pupmode=2 seems to be the default. Puppy doesn't seem to understand. I have a long history of not using save files, although I have recently figured out how to make read only save folders, much like rootcopy. Fred explains how to set up a Porteus save folder on the kernel parameter line. If you go that route I'd be interested to hear how it works. I don't think a normal Puppy save will ever work, (famous last words)
Back to top
View user's profile Send private message 
jrb


Joined: 11 Dec 2007
Posts: 1539
Location: Smithers, BC, Canada

PostPosted: Mon 13 Jan 2020, 17:09    Post subject: you're welcome  

zagreb999 wrote:
hi jrb,
compliments,
thanks!

i use porteus boot by fred
from tazdog_32bit-2018-05-21.iso
it is only 5.5 mb
in live folder i add
sfs of slacko 632-by micko
renamed 01-filesystem.squashfs
plus kernel-squashfs and vmlinuz1

micko's slacko is the best!
it boots in 3 seconds,
quick remaster in 3 sec.-lz4

your precise light can not boot
in this way

You're welcome Very Happy
Back to top
View user's profile Send private message 
dancytron

Joined: 18 Jul 2012
Posts: 1555

PostPosted: Mon 13 Jan 2020, 17:30    Post subject:  

It saves it's changes in memory (?) as it goes in a Debian Dog/Porteus kind of way (see screenshot).

I think getting it to save changes for persistence might be as simple as just copying over the scripts that Fred uses to save in DD and using them. The boot up sequence should then stack on the Changes folder at the same time it stacks up the squashfs files when it boots up (assuming it recognizes it).

Or Fred could just tell us how to do it. Very Happy

(edited for clarity)

edit again:

Once Again, way too easy. I ran /usr/bin/snapmergepuppy from Buster Dog and it saved changes to the changes directory and when I rebooted it, my changes were still there. Very Happy
Copy of snapmergepuppy.gz
Description  for convenience, the snapmergepuppy scripts from Buster Dog. Remove .gz and use at your own risk etc etc
gz

 Download 
Filename  Copy of snapmergepuppy.gz 
Filesize  7.01 KB 
Downloaded  187 Time(s) 
Screenshot2.png
 Description   
 Filesize   58.16 KB
 Viewed   341 Time(s)

Screenshot2.png


Last edited by dancytron on Mon 13 Jan 2020, 18:01; edited 1 time in total
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 13129
Location: Stratford, Ontario

PostPosted: Mon 13 Jan 2020, 17:56    Post subject:  

Interesting. When I messed around with Fred's mk-initrd script, my sense was that the resulting initrd1.xz was kernel-specific.

But yours is generic?
Back to top
View user's profile Send private message 
dancytron

Joined: 18 Jul 2012
Posts: 1555

PostPosted: Mon 13 Jan 2020, 18:03    Post subject:  

rcrsn51 wrote:
Interesting. When I messed around with Fred's mk-initrd script, my sense was that the resulting initrd1.xz was kernel-specific.

But yours is generic?


If that's addressed to me, then I have no idea. I'm just changing parts around and seeing what happens with a momentary highly unusual amount of success.
Back to top
View user's profile Send private message 
zagreb999

Joined: 11 Apr 2014
Posts: 573
Location: Yugoslavija

PostPosted: Mon 13 Jan 2020, 18:35    Post subject:  

compliments

fred's tazdog_32bit-2018-05-21.iso
has intrd of only 1mb
http://murga-linux.com/puppy/viewtopic.php?t=113301

it can already boot older puppy distros
as tazpuppy, slacko632...
just add sfs renamed to 01-filesystem.squashfs,
and kernel with suffix squashfs and vmlinuz
but it can not boot newer like slacko 700,
precise light , buster puppy...

my suggestion is to adopt this version of fred
for puppy universal porteus boot...

in that case you can add more squashfs files
in live folder, and use quick remaster-lz4...

also. you can manipulate (increase) ram value...
Back to top
View user's profile Send private message 
jrb


Joined: 11 Dec 2007
Posts: 1539
Location: Smithers, BC, Canada

PostPosted: Mon 13 Jan 2020, 19:33    Post subject:  

rcrsn51 wrote:
Interesting. When I messed around with Fred's mk-initrd script, my sense was that the resulting initrd1.xz was kernel-specific.

But yours is generic?
I've used several of Fred's initrd's on several different Puppies with several different kernels. They've all worked.
Back to top
View user's profile Send private message 
jrb


Joined: 11 Dec 2007
Posts: 1539
Location: Smithers, BC, Canada

PostPosted: Mon 13 Jan 2020, 19:36    Post subject:  

zagreb999 wrote:
but it can not boot newer like slacko 700,
precise light , buster puppy.
As I mentioned above the trick is to use the older /sbin/init.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 2 [20 Posts]   Goto page: 1, 2 Next
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies. 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: 1.4380s ][ Queries: 12 (1.2386s) ][ GZIP on ]