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 20 Aug 2014, 08:56
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
What is best way to edit pupxxx.sfs? Compression type xz.
Moderators: Flash, Ian, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
hoven

Joined: 21 Jun 2010
Posts: 145

PostPosted: Mon 12 Dec 2011, 02:02    Post_subject:  What is best way to edit pupxxx.sfs? Compression type xz.  

I want to make some permanent changes to the main pupxxx.sfs but when I tried the Edit-SFS utility the result was a much larger sfs than the original. I believe this may have to do with use of xz compression (not that I know what that means).

Please tell me the best tool to edit the sfs and keep the original size relationship. If it's via command line like unsquashfs and mksquashfs then please point out the correct parameters to use.
Back to top
View user's profile Send_private_message 
Karl Godt


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

PostPosted: Mon 12 Dec 2011, 23:07    Post_subject:  

Quote:
# ./mksquashfs-4.2-xz
./mksquashfs-4.2-xz: error while loading shared libraries: liblzma.so.2: cannot open shared object file: No such file or directory

after installing the Lib in /usr/lib i get
Quote:
# ./mksquashfs-4.2-xz
SYNTAX:./mksquashfs-4.2-xz source1 source2 ... dest [options] [-e list of exclude dirs/files]
.
.
.
Compressors available and compressor specific options:
gzip (no options) (default)
xz
.
.
Back to top
View user's profile Send_private_message Visit_website 
upnorth


Joined: 11 Jan 2010
Posts: 262
Location: Wisconsin UTC-6 (-5 DST)

PostPosted: Tue 13 Dec 2011, 01:02    Post_subject: -comp xz for mksquashfs 4.2
Sub_title: mksquashfs 4.2 comp option
 

Here is the command i used for racy, run from the parent dir of squashfs-root:

mksquashfs squashfs-root/ puppy_racy_5.2.1.90.sfs -comp xz

Otherwise, the main script for Edit-SFS in ~/my-roxapps/Edit-SFS/apprun could be altered with -comp xz added to (line 222 or so) and would probably work.

echo -e "#!/bin/sh\n'$MKSQUASHFS' '$TREE' '$TREE_BASE/$SFSFILE' -comp xz" > "${TREE_BASE}/script"
Back to top
View user's profile Send_private_message Visit_website 
hoven

Joined: 21 Jun 2010
Posts: 145

PostPosted: Tue 13 Dec 2011, 04:44    Post_subject: Re: -comp xz for mksquashfs 4.2
Sub_title: mksquashfs 4.2 comp option
 

upnorth wrote:
Otherwise, the main script for Edit-SFS in ~/my-roxapps/Edit-SFS/apprun could be altered with -comp xz added


Thank you for explaining the syntax in the script file and very good. That's exactly what I had hoped for and the sfs size stays the same now. Looks like using the xz compression has quite an impact.
Back to top
View user's profile Send_private_message 
8-bit


Joined: 03 Apr 2007
Posts: 3363
Location: Oregon

PostPosted: Tue 13 Dec 2011, 14:35    Post_subject:  

How will this effect the use of two utilities, edit-SFS and edit-init?

I use one to edit the puppy SFS files and the other to edit initrd.gz.

I have noticed that I used to be able to click on a puppy SFS file to mount it if it was not in use.
But some of the releases now will not mount by just clicking on them.
Is that due to the new xz compression method?
Back to top
View user's profile Send_private_message 
Karl Godt


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

PostPosted: Tue 13 Dec 2011, 17:48    Post_subject:  

Mounting xz compressed sfs works since kernel 2.6.38 .
Slacko 2.6.37.x would have still a problem to mount these .
Slacko 2.6.39.x not .
You would have to unsquashfs the sfs and mksquashfs -comp gz again for backwards compatibility .
The diff is not small : a 60MB sfs xz comp would become 72MB gz comp (+20%) .
Back to top
View user's profile Send_private_message Visit_website 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0656s ][ Queries: 12 (0.0192s) ][ GZIP on ]