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 Wed 22 May 2013, 04:47
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
How I make .pets into .sfs's
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 2 [23 Posts]   Goto page: Previous 1, 2
Author Message
esmourguit

Joined: 17 Nov 2006
Posts: 1151
Location: Sur l'ile aux oiseaux.

PostPosted: Wed 15 Apr 2009, 04:46    Post subject:  

Bonjour,
I restarted the PC and I was able to load the french .sfs package.
But not everything has been taken into account :
And I lost over the functions "load SFS" and "unload SFS" in "Open With" in Rox, thought there is only the translation string for Rox in the package. But for many of the programs is a success, although there is still work.
Cordialement Wink

_________________
Toutou Linux - Pets francisés
Back to top
View user's profile Send private message 
jrb


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

PostPosted: Wed 15 Apr 2009, 09:05    Post subject:  

This is the beauty of working with .sfs packages. Nothing is lost, pup_save is not corrupted and you are free to investigate and make perfect.

I think you are on to something very good here, localization by .sfs. Puppy could learn to speak every language! Cool

Good Luck, keep us posted on progress, J
Back to top
View user's profile Send private message 
Stormson5150

Joined: 06 Feb 2009
Posts: 40

PostPosted: Fri 17 Apr 2009, 23:03    Post subject:  

I have a couple of questions concerning .sfs files that perhaps you could help me with, as I am working on something somewhat similar...

1- Can .sfs files be made to a certain size, before hand, and then filled up to that particular size... Sort of like a container?

2- Are .sfs files, or can they be made to be, writable on the fly? In other words... Can I stuff say, FireFox3, into an sfs file, and then have it continue to update TO that file instead of to the save file?

3- Is there any easy way convert a save file into an sfs ( thus solving #1 as well)? Or vice versa, make an sfs act like a save (thus solving #2)? It seems that both are containers of a sort even though one is squashfs and the other ext2.. It seems if we could somehow make them act in the above manner(s) it would solve a myriad of issues...Such as what to do when you're 2g save on a fat32 partition becomes too full but you dont want to loose whats in it (simply convert it into an sfs and create a new one), or vice versa, how to have the auto updates inside of an sfs as stated above (thus saving room on the save)....
Back to top
View user's profile Send private message 
jrb


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

PostPosted: Fri 17 Apr 2009, 23:58    Post subject:  

Hi Stormson5150,
Firstly let me say that there are people in the forum who are far more expert on files and file systems than I but I will give you what knowledge I have. You might also like to read http://en.wikipedia.org/wiki/Squashfs.

Quote:
1- Can .sfs files be made to a certain size, before hand, and then filled up to that particular size... Sort of like a container?

1.) Short answer, no. Unlike .2fs, .sfs is a compression program, like zip, which is applied to files. It produces read-only files so they are unmodifiable after creation.

Quote:
2- Are .sfs files, or can they be made to be, writable on the fly? In other words... Can I stuff say, FireFox3, into an sfs file, and then have it continue to update TO that file instead of to the save file?

2.) Short answer, no. However, it is extremely easy to remake an updated .sfs file. If you're not running the .sfs at the time you can click on it to mount, copy the contents to a folder, add your updates and run dir2sfs on the folder.


Quote:
3- Is there any easy way convert a save file into an sfs ( thus solving #1 as well)? Or vice versa, make an sfs act like a save (thus solving #2)? It seems that both are containers of a sort even though one is squashfs and the other ext2.. It seems if we could somehow make them act in the above manner(s) it would solve a myriad of issues...Such as what to do when you're 2g save on a fat32 partition becomes too full but you dont want to loose whats in it (simply convert it into an sfs and create a new one), or vice versa, how to have the auto updates inside of an sfs as stated above (thus saving room on the save)....

3.) Short answer, yes. If you're not running the pup_save.2fs you can click on it to mount, copy the files you want to a folder, you can even delete them from the pup_save.2fs (careful, make a backup copy first!) and then run dir2sfs on the folder. You now have them in a .sfs. If you want to update a program running from .sfs, say FireFox, you could rebuild the FireFox.sfs with the files from your pup_save.2fs.

Suppose you are running the pup_save.2fs, simply copy to a different name, pup_save2.sfs, then mount it and copy files, edit, etc. Same with .sfs, if you're running it then copy it to a different name and mount it.

Hope that is clear and helps. J
Back to top
View user's profile Send private message 
Stormson5150

Joined: 06 Feb 2009
Posts: 40

PostPosted: Sat 18 Apr 2009, 14:24    Post subject:  

Yup.. Thanks jrb... That's all about what I figured as well.

Its a shame we dont have a writable, compressed file system in a container format for linux yet... Though I did find one solution (http://www.eldos.com/solfs/), unfortunately its commercial...

If something where to be developed along these lines under the GPL, it would answer allot of the issues surrounding all livecd type systems.. In our case it could replace both the save, allowing more save space due to the compression AND the .sfs container format making the add on packs writable and upgradable...
Back to top
View user's profile Send private message 
clarf


Joined: 13 Jun 2007
Posts: 606
Location: The old Lone Wolf

PostPosted: Thu 25 Jun 2009, 12:24    Post subject:  

Hi jrb, thank you for this manual.

I found this manual an interesting reading, now I have some questions that I hope you can answer:

1. Is there a size limit for a given .sfs file that Puppy can handle?

2. Which compression format use Puppy to handle .sfs files?. Does it use gzip or LZMA?.

Thank you for the attention pleased.
Back to top
View user's profile Send private message 
jrb


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

PostPosted: Fri 03 Jul 2009, 22:53    Post subject:  

Hi Clarf,
Sorry for the delay in answering. Have been in webless territory.
Quote:
1. Is there a size limit for a given .sfs file that Puppy can handle?

I'm not aware of any fixed size limit, but I expect it will be limited by the amount of ram and/or swapfile size you have. Perhaps someone else knows a bit more than I about this? Perhaps you will be able to tell us after building some massive .sfs files?
Quote:
2. Which compression format use Puppy to handle .sfs files?. Does it use gzip or LZMA?.

According to wikipedia's SquashFS article:
Quote:
The standard version of Squashfs uses gzip compression, although there is also a project that brings LZMA compression to SquashFS
,
I understand that .sfs files created with the newer linux kernels are incompatible with the old system. Perhaps they have moved on to LZMA.

Hope this has been of some help. Good Luck, J

_________________
SFS-TCZ_Linker, http://puppylinuxstuff.meownplanet.net/choicepup/ user=puppy, password=linux
Back to top
View user's profile Send private message 
clarf


Joined: 13 Jun 2007
Posts: 606
Location: The old Lone Wolf

PostPosted: Sat 04 Jul 2009, 09:38    Post subject:  

Thanks for reply jrb. You give some points to think about...

I found some information about lzma support in http://www.squashfs-lzma.org/.

Here I found that:

1. SquashFS version 4.0 is already included in Linux Kernel 2.6.29. but LZMA support is not there.

2. LZMA is not directly supported in squashfs, then to add support for LZMA to squashFS you have to patch squashfs. And not every kernel version is supported for this, as they say: "Make sure to use a supported Linux Kernel, as only version 2.6.27.6 is officially supported".

3. I also found that LZMA compression was added recently to kernel 2.6.30, using this kernel you can use squasfs with LZMA support.

Adding LZMA support in early kernel version (as I pointed before) is not easy a not supported, then Puppy surely uses gzip for SFS. Also using gzip in Puppy has some advantages for old systems like: faster compression/decompression and less intensive CPU usage during compression

That is what I found until now, if I can found more info I let you know.

Cheers, clarf.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 2 of 2 [23 Posts]   Goto page: Previous 1, 2
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.0668s ][ Queries: 13 (0.0115s) ][ GZIP on ]