Load up to 20 extra SFS's in Puppy 4.1.1
Load up to 20 extra SFS's in Puppy 4.1.1
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
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
- Béèm
- Posts: 11763
- Joined: Wed 22 Nov 2006, 00:47
- Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win
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]
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]
- technosaurus
- Posts: 4853
- Joined: Mon 19 May 2008, 01:24
- Location: Blue Springs, MO
- Contact:
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?
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?
- Pizzasgood
- Posts: 6183
- Joined: Wed 04 May 2005, 20:28
- Location: Knoxville, TN, USA
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.
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]
[img]http://www.browserloadofcoolness.com/sig.png[/img]
mount vs toram
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.
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].
- nutts4life
- Posts: 263
- Joined: Fri 15 Feb 2008, 09:52
- Location: UK
- Béèm
- Posts: 11763
- Joined: Wed 22 Nov 2006, 00:47
- Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win
Thanks JB, I was hoping for that confirmation.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
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]
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]
- Béèm
- Posts: 11763
- Joined: Wed 22 Nov 2006, 00:47
- Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win
Tried it.Béèm wrote:Thanks JB, I was hoping for that confirmation.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
Will try definitely.
Worked OK
Great.
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]
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]
@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
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 907 times
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]
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]
- Béèm
- Posts: 11763
- Joined: Wed 22 Nov 2006, 00:47
- Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win
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.
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]
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]
-
- Posts: 295
- Joined: Sat 03 Dec 2005, 11:30
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
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
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.
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.
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:vtpup wrote:Any possibility of a 4.1.2 initrd.gz for this purpose?
http://www.murga-linux.com/puppy/viewtopic.php?t=36733
Thanks Leon!Leon wrote: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:vtpup wrote:Any possibility of a 4.1.2 initrd.gz for this purpose?
http://www.murga-linux.com/puppy/viewtopic.php?t=36733