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 28 Jul 2014, 17:12
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
Squash files not compatible between distros.
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [13 Posts]  
Author Message
sunburnt


Joined: 08 Jun 2005
Posts: 5010
Location: Arizona, U.S.A.

PostPosted: Sat 18 Aug 2012, 15:46    Post subject:  Squash files not compatible between distros.  

No Linux distro seems to be able to mount another`s squash files.
But all of them use version 4 of Squash, must be the compression.
Is there a way to achieve Squash compatibility between distros?

I know Puppy has had problems when changing Squash versions.
Back to top
View user's profile Send private message 
sunburnt


Joined: 08 Jun 2005
Posts: 5010
Location: Arizona, U.S.A.

PostPosted: Mon 20 Aug 2012, 23:04    Post subject:  

Rephrased the Q...
Back to top
View user's profile Send private message 
Karl Godt


Joined: 20 Jun 2010
Posts: 3956
Location: Kiel,Germany

PostPosted: Tue 21 Aug 2012, 17:33    Post subject:  

I think you know the Puppy Squashfs converter for version 3 <-> version 4 .

mksquashfs can be configured in 4 different ways IIRC : Lzop, Lzma, Lzma2, Xz .

Dunno what each distro have configured their's mksquashfs .

Will have to look into my archives . I remember 7zip-9x was not so good for lzma , used 7z-465 i think .
Back to top
View user's profile Send private message Visit poster's website 
sunburnt


Joined: 08 Jun 2005
Posts: 5010
Location: Arizona, U.S.A.

PostPosted: Tue 21 Aug 2012, 23:28    Post subject:  

Hello again Karl, how have you been?

When you say "configured" I assume you mean for compiling?

What does "IIRC" mean? ===> Google: "If I Recall Correctly"

I think you`re saying that 7zip will read them? HOW..?


# This comes close to the answer I need.

Compile 4 different versions of mksquashfs, one for each compression.
Then any distro. that`ll use the 4 mksquashfs will create any Squash type.

### But how to get a distro. to mount any of the 4 types?

The kernel can be built with all 4 compression types.
But that doesn`t mean that it was made with all of them.
Back to top
View user's profile Send private message 
8-bit


Joined: 03 Apr 2007
Posts: 3357
Location: Oregon

PostPosted: Wed 22 Aug 2012, 04:29    Post subject:  

I also have ran across that problem in trying to mount a squash file from another version of puppy.
If it is indeed a matter of the sub-type of squash file compression, it would be in puppy's interests to get a standard for compatibility in all squash version 4 files.
Back to top
View user's profile Send private message 
Karl Godt


Joined: 20 Jun 2010
Posts: 3956
Location: Kiel,Germany

PostPosted: Wed 22 Aug 2012, 12:54    Post subject:  

Sunburnt yes if i recall/remember corrcetly .

This 7z is needed for lzma : http://packages.debian.org/squeeze/lzma

And now i found that i have named these compiles :

mksquashfs-4.2-lzma
mksquashfs-4.2-lzma_xz
mksquashfs-4.2-lzma+xz
mksquashfs-4.2-xz

Look into the Makefile of the mksquash source : http://packages.debian.org/source/wheezy/squashfs-tools

*

For the kernel source it might be bugs there, the 2.6.38.X <X>-minor (sub-sub-minor) patches are huge .
Back to top
View user's profile Send private message Visit poster's website 
Bruce B


Joined: 18 May 2005
Posts: 11080
Location: The Peoples Republic of California

PostPosted: Sat 25 Aug 2012, 01:51    Post subject:  

I'm not sure if this fits in or how. I think I recall there being two 4.xx versions which were incompable with each other. As in they both needed different support to manage the .sfs file.

~

_________________
New! Puppy Linux Links Page
Back to top
View user's profile Send private message 
sunburnt


Joined: 08 Jun 2005
Posts: 5010
Location: Arizona, U.S.A.

PostPosted: Sat 25 Aug 2012, 15:09    Post subject:  

Karl; I`ll get a chance to look at it.

The main problem for portable apps. is the kernel only mounts one type.
Even if several types can be mounted, most distro`s. kernels won`t.
So the only solution is to pick the newest Squash compression type,
or make the portable apps. "loose files" ( not a good alternative ).


# Linux being what it is, "one app. fits all" just isn`t possible it seems.


Bruce B; Yes, that`s what I found, there`s 2 compressions for version 4.

This ambiguity makes for my current dilemma, to use XZ compression
would be the best as it`s the newest and most capable.
But Puppy and Tiny Core use LZMA ( I think...), probably for faster access.
This may be changed with time and newer versions of the O.S.s.


# Squash files don`t lend themselves to portability between kernels.
If the compression type was something that could be add on-the-fly...
Back to top
View user's profile Send private message 
8-bit


Joined: 03 Apr 2007
Posts: 3357
Location: Oregon

PostPosted: Tue 28 Aug 2012, 22:50    Post subject:  

Could it bee that one version of Puppy was built with woof and the other was built using T2 which Barry still uses sometimes.
If it is in the type of utility used to build a SFS file differing depending on the builder of a Puppy version, I would like to see the developers get on the same track and use the same version/type of SFS builder thus maintaining SFS4 compatibility across versions of Puppy.
Back to top
View user's profile Send private message 
ozsouth

Joined: 01 Jan 2010
Posts: 127
Location: S.E Australia

PostPosted: Wed 29 Aug 2012, 01:44    Post subject: Edit-sfs problem with new Puppy  

If I try to edit sfs file from Slacko 5.3.3 with edit-sfs, I get an error. With Slacko 5.3.1 no problem. Converter doesn't help.
Apparently different structures.
Back to top
View user's profile Send private message 
sickgut


Joined: 23 Mar 2010
Posts: 1157
Location: Tasmania, Australia in the mountains.

PostPosted: Sat 01 Sep 2012, 00:46    Post subject:  

Different linux kernel version numbers are compatible with different types of squash compression. For example, a debian wheezy squashfs file cant be mounted by a debian squeeze squashfs file as the wheezy kernel supports a newer type of compression.

there is confusion between cpio, zip, gzip, lzma and other types. One lzma isnt the same as another lzma as there are very many different types and versions of it.
Back to top
View user's profile Send private message Visit poster's website 
sunburnt


Joined: 08 Jun 2005
Posts: 5010
Location: Arizona, U.S.A.

PostPosted: Sat 01 Sep 2012, 20:34    Post subject:  

As Flash is fond of saying:

Standards are great as there`s so many of them to choose from.

Especially in Linux.!
Back to top
View user's profile Send private message 
sickgut


Joined: 23 Mar 2010
Posts: 1157
Location: Tasmania, Australia in the mountains.

PostPosted: Sun 02 Sep 2012, 01:03    Post subject:  

sunburnt wrote:
As Flash is fond of saying:

Standards are great as there`s so many of them to choose from.

Especially in Linux.!


Zip is about the only thing that all modern OSes can compress/ decompress from, this is why i usually release packages for linux in Zip format.

it can be edited or whatever in windows or whatever and rezipped and it still works on linux.
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [13 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Off-Topic Area » Programming
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.0746s ][ Queries: 12 (0.0140s) ][ GZIP on ]