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 Mon 24 Nov 2014, 10:15
All times are UTC - 4
 Forum index » Advanced Topics » Cutting edge
Load up to 20 extra SFS's in Puppy 4.1.1
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [24 Posts]   Goto page: 1, 2 Next
Author Message
JB4x4

Joined: 30 Jul 2006
Posts: 256

PostPosted: Wed 05 Nov 2008, 20:46    Post subject:  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 Smile 14 more to go......

Have fun - feedback is always welcome.
JB
initrd.gz
Description 
gz

 Download 
Filename  initrd.gz 
Filesize  1.21 MB 
Downloaded  779 Time(s) 
Back to top
View user's profile Send private message Yahoo Messenger 
Béèm


Joined: 21 Nov 2006
Posts: 11782
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

PostPosted: Wed 05 Nov 2008, 21:05    Post subject:  

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).
Consult Wikka
Use peppyy's puppysearch
Back to top
View user's profile Send private message 
JB4x4

Joined: 30 Jul 2006
Posts: 256

PostPosted: Wed 05 Nov 2008, 22:08    Post subject:  

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


Joined: 18 May 2008
Posts: 4378

PostPosted: Wed 05 Nov 2008, 22:24    Post subject:  

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


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: Wed 05 Nov 2008, 23:11    Post subject:  

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? Confused

_________________
Puppy WIKI
Back to top
View user's profile Send private message Visit poster's website 
Pizzasgood


Joined: 04 May 2005
Posts: 6270
Location: Knoxville, TN, USA

PostPosted: Thu 06 Nov 2008, 00:47    Post subject:  

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.

_________________
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

Back to top
View user's profile Send private message Visit poster's website 
raffy

Joined: 25 May 2005
Posts: 4796
Location: Manila

PostPosted: Thu 06 Nov 2008, 01:56    Post subject: 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.

_________________
Puppy user since Oct 2004. Want FreeOffice? Get the sfs (English only).
Back to top
View user's profile Send private message 
nutts4life


Joined: 15 Feb 2008
Posts: 263
Location: UK

PostPosted: Thu 06 Nov 2008, 08:48    Post subject:  

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
Back to top
View user's profile Send private message 
Béèm


Joined: 21 Nov 2006
Posts: 11782
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

PostPosted: Thu 06 Nov 2008, 09:04    Post subject:  

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).
Consult Wikka
Use peppyy's puppysearch
Back to top
View user's profile Send private message 
Béèm


Joined: 21 Nov 2006
Posts: 11782
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

PostPosted: Thu 06 Nov 2008, 19:40    Post subject:  

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. Very Happy

_________________
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
Consult Wikka
Use peppyy's puppysearch
Back to top
View user's profile Send private message 
JB4x4

Joined: 30 Jul 2006
Posts: 256

PostPosted: Thu 06 Nov 2008, 20:06    Post subject:  

@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
initrd-changes.tar.gz
Description 
gz

 Download 
Filename  initrd-changes.tar.gz 
Filesize  17.23 KB 
Downloaded  646 Time(s) 
Back to top
View user's profile Send private message Yahoo Messenger 
HairyWill


Joined: 26 May 2006
Posts: 2949
Location: Southampton, UK

PostPosted: Fri 07 Nov 2008, 01:56    Post subject:  

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: community website, screenshots, puplets, wiki, rss
Back to top
View user's profile Send private message 
Béèm


Joined: 21 Nov 2006
Posts: 11782
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

PostPosted: Fri 07 Nov 2008, 05:07    Post subject:  

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).
Consult Wikka
Use peppyy's puppysearch
Back to top
View user's profile Send private message 
shankargopal

Joined: 03 Dec 2005
Posts: 295

PostPosted: Fri 07 Nov 2008, 09:41    Post subject:  

Would this work with 4.1.1 retro too? I assume not?
Back to top
View user's profile Send private message 
Béèm


Joined: 21 Nov 2006
Posts: 11782
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

PostPosted: Fri 07 Nov 2008, 11:41    Post subject:  

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).
Consult Wikka
Use peppyy's puppysearch
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 2 [24 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Cutting edge
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.0820s ][ Queries: 12 (0.0092s) ][ GZIP on ]