Load up to 20 extra SFS's in Puppy 4.1.1

Under development: PCMCIA, wireless, etc.
Message
Author
JB4x4
Posts: 256
Joined: Sun 30 Jul 2006, 22:44
Contact:

Load up to 20 extra SFS's in Puppy 4.1.1

#1 Post by JB4x4 »

First off, a big thanks to forum user MU. His work on compiling the 2.6.27 kernel is what discovered the trick. I just applied it to Puppy 4.1.1 - The method used here is a replacement initrd.gz file which contains more loop devices and an edited init file, and an extra boot parameter.

Here we go.....

This was tested in a frugal install of Puppy 4.1.1 using GRUB to boot. You need to add an extra parameter to the kernel line in order for this it work. The proper way would be to recompile the kernel, but this is easier / quicker.

Example:

kernel /vmlinuz max_loop=25

You kernel line may look different depending on whether you have your files in a sub-directory etc. The important part is adding "max_loop=25"

Download and replace your initrd.gz file with the one included in this post. REBOOT

Open the Boot Manager and add away...... (Note the boot manager says only add 3, but you can now add more). Myself, I am now using Adobe Acrobat - devx - kernel-src - wine - VirtualBox - OpenOffice. That 6 :) 14 more to go......

Have fun - feedback is always welcome.
JB

User avatar
Béèm
Posts: 11763
Joined: Wed 22 Nov 2006, 00:47
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

#2 Post by Béèm »

Are the pup_roX directories automatically created corresponding the n° of selected sfs files?
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
[url=http://puppylinux.org/wikka/HomePage]Consult Wikka[/url]
Use peppyy's [url=http://wellminded.com/puppy/pupsearch.html]puppysearch[/url]

JB4x4
Posts: 256
Joined: Sun 30 Jul 2006, 22:44
Contact:

#3 Post by JB4x4 »

There are new directories, pup_ro7 - pup_ro22, in the replacement initrd.gz file. In theory 255 directories could be created (in the initrd.gz file) along with proper editing of the file "init"

JB

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#4 Post by technosaurus »

a definite add to the next community edition

Now if we could only have a boot parameter for adding SFS files at boot the options are infinite (instantly configurable puplet from a CD/DVD with every possible sfs file included - just have various preselected sets of SFS files in each boot option) We could boot a minimal system or a totally bloated complete system from the same disk depending on our mood.

Does anyone know how to edit init to do this? MU maybe or Barry?

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#5 Post by Lobster »

If this was implemented in 4.2 - which is the next version of puppy,
would there be a danger of crashing if people who have fish for brains (me for example) tried adding 15 SFS and only had 128MB of Ram

- is this not a problem? :?
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
Pizzasgood
Posts: 6183
Joined: Wed 04 May 2005, 20:28
Location: Knoxville, TN, USA

#6 Post by Pizzasgood »

I'm not entirely certain with the latest versions of Puppy, but I've been under the impression that only the pup_xxx.sfs file ever gets copied into ram. Other ones are just mounted from wherever they are. If that is the case, including multiple .sfs files on a CD would be very slow unless you first copied them onto the HD.

Probably wouldn't be hard to change it to copy them to ram. To make things more difficult, you could add ways to specify which files are copied to ram, and which are mounted where they stand, along with a boot option to decide interactively which files to use and how to use them.
[size=75]Between depriving a man of one hour from his life and depriving him of his life there exists only a difference of degree. --Muad'Dib[/size]
[img]http://www.browserloadofcoolness.com/sig.png[/img]

raffy
Posts: 4798
Joined: Wed 25 May 2005, 12:20
Location: Manila

mount vs toram

#7 Post by raffy »

Probably have two subdirectories on CD (or psubdir), 'mount' and 'toram', and the sfs contents are mounted and copied to ram, respectively.

In Slax, additional sfs are copied to one subdirectory before building the ISO, and all sfs get mounted in the order that the files are listed.
Puppy user since Oct 2004. Want FreeOffice? [url=http://puppylinux.info/topic/freeoffice-2012-sfs]Get the sfs (English only)[/url].

User avatar
nutts4life
Posts: 263
Joined: Fri 15 Feb 2008, 09:52
Location: UK

#8 Post by nutts4life »

JB4x4

Superb stuff, do you think you could post your changed fils that you made in the initrd-tree in a tar file, so i can integrate this into unleashed?

Who da man.

n4l

User avatar
Béèm
Posts: 11763
Joined: Wed 22 Nov 2006, 00:47
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

#9 Post by Béèm »

JB4x4 wrote:There are new directories, pup_ro7 - pup_ro22, in the replacement initrd.gz file. In theory 255 directories could be created (in the initrd.gz file) along with proper editing of the file "init"

JB
Thanks JB, I was hoping for that confirmation.
Will try definitely.
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
[url=http://puppylinux.org/wikka/HomePage]Consult Wikka[/url]
Use peppyy's [url=http://wellminded.com/puppy/pupsearch.html]puppysearch[/url]

User avatar
Béèm
Posts: 11763
Joined: Wed 22 Nov 2006, 00:47
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

#10 Post by Béèm »

Béèm wrote:
JB4x4 wrote:There are new directories, pup_ro7 - pup_ro22, in the replacement initrd.gz file. In theory 255 directories could be created (in the initrd.gz file) along with proper editing of the file "init"

JB
Thanks JB, I was hoping for that confirmation.
Will try definitely.
Tried it.
Worked OK
Great. :D
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
[url=http://puppylinux.org/wikka/HomePage]Consult Wikka[/url]
Use peppyy's [url=http://wellminded.com/puppy/pupsearch.html]puppysearch[/url]

JB4x4
Posts: 256
Joined: Sun 30 Jul 2006, 22:44
Contact:

#11 Post by JB4x4 »

@nutts4life

Here are the changes I added to the file initrd.gz - The tar contains the extra directories, loops, and the modified init script. If you search the init script for "JB4x4" you will find additions in 3 places.

JB
Attachments
initrd-changes.tar.gz
(17.23 KiB) Downloaded 903 times

User avatar
HairyWill
Posts: 2928
Joined: Fri 26 May 2006, 23:29
Location: Southampton, UK

#12 Post by HairyWill »

Sounds cool. My understanding was the original limit of three extra squash files was put in place by Barry because of performance problems with the layered filesystem if it had too many layers. Has this problem been fixed? What is the maximum number of layers you have tested it with.
Will
contribute: [url=http://www.puppylinux.org]community website[/url], [url=http://tinyurl.com/6c3nm6]screenshots[/url], [url=http://tinyurl.com/6j2gbz]puplets[/url], [url=http://tinyurl.com/57gykn]wiki[/url], [url=http://tinyurl.com/5dgr83]rss[/url]

User avatar
Béèm
Posts: 11763
Joined: Wed 22 Nov 2006, 00:47
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

#13 Post by Béèm »

HairyWill,
JB4x4 wrote he has added 6 sfs files.
I have added 4 now and I don't feel a performance decrease.

But there might be another issue with redundancy, if different sfs files contains parts of a same directory structure and have same file names.

As far as I understand the loading process it's done alphabetically.
I suppose it's the last loaded which will be actually used in case of same file names.

But even with a max of 3 this situation could happen already.
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
[url=http://puppylinux.org/wikka/HomePage]Consult Wikka[/url]
Use peppyy's [url=http://wellminded.com/puppy/pupsearch.html]puppysearch[/url]

shankargopal
Posts: 295
Joined: Sat 03 Dec 2005, 11:30

#14 Post by shankargopal »

Would this work with 4.1.1 retro too? I assume not?

User avatar
Béèm
Posts: 11763
Joined: Wed 22 Nov 2006, 00:47
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

#15 Post by Béèm »

I don't think there is a restriction on normal or retro.
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
[url=http://puppylinux.org/wikka/HomePage]Consult Wikka[/url]
Use peppyy's [url=http://wellminded.com/puppy/pupsearch.html]puppysearch[/url]

ralphv
Posts: 42
Joined: Sat 17 Mar 2007, 20:50

#16 Post by ralphv »

Here's a large number of sfs files. They work best in the 2 series puppies, but some might work in the 4.1 puppy. ftp://ftp.slax.org/SLAX-5-modules/
Just rename a file to end in .sfs. Some of the files might ask for lib files not in puppy 4.1
Look here for libs http://www.puppylinux.ca/tpp/ttuuxxx/Libs/
So far, slax 6 has only a few modules. http://www.slax.org/modules.php

Ralph

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#17 Post by sunburnt »

You may mount many SFS files, but I don't know how many FUSE will union.
UnionFS would only do 5 max., but... Why slow your PC down too a crawl?

The current idea is to do away with the union all together, a clean setup...
But SFS files can still be used only mounted... IF they're made right.
Unfortunately for some apps. it gets very messy trying to get them to work.

A simple solution I proposed was a "multiple target sym link", works kinda like a union.
It could point the /usr dir. to the /usr dirs. in multiple SFS files, effectively unioning them.
It could also point to a /usr "save" dir. so the whole stack of /usr dirs. is writable.

It's a simple idea, but I have no way to create one, I don't know enough C.

User avatar
vtpup
Posts: 1420
Joined: Thu 16 Oct 2008, 01:42
Location: Republic of Vermont
Contact:

#18 Post by vtpup »

Don't try this on 4.1.2.

The initrd.gz provided specifically looks for a puppy_411.sfs and aborts the boot if it doesn't find one. If it does, it probably would boot that, rather than your puppy 4.1.2.

Any possibility of a 4.1.2 initrd.gz for this purpose?

Leon
Posts: 265
Joined: Wed 22 Jun 2005, 21:33

#19 Post by Leon »

vtpup wrote:Any possibility of a 4.1.2 initrd.gz for this purpose?
Instructions and modified initrd.gz to load up to 24 SFS files for puppy-4.1.2retro-k2.6.21.7 and puppy-4.1.2-k2.6.25.16:

http://www.murga-linux.com/puppy/viewtopic.php?t=36733

User avatar
vtpup
Posts: 1420
Joined: Thu 16 Oct 2008, 01:42
Location: Republic of Vermont
Contact:

#20 Post by vtpup »

Leon wrote:
vtpup wrote:Any possibility of a 4.1.2 initrd.gz for this purpose?
Instructions and modified initrd.gz to load up to 24 SFS files for puppy-4.1.2retro-k2.6.21.7 and puppy-4.1.2-k2.6.25.16:

http://www.murga-linux.com/puppy/viewtopic.php?t=36733
Thanks Leon!

Post Reply