Edit-SFS 2.1 (squash filesystem editor)

Miscellaneous tools
Message
Author
ICPUG
Posts: 1308
Joined: Mon 25 Jul 2005, 00:09
Location: UK

#21 Post by ICPUG »

I'm not sure if this is what Puppyluvr is saying or not!

Windows may not recognise .pet files and think they are something else. In your case it seems to think it is a .man file.

Just download it and it will be called edit_sfs-2.1.man.

It will still be called edit_sfs-2.1.man in Puppy.

Start Puppy and rename the file to edit_sfs-2.1.pet.

Click to load the pet.

Alternatively download it with Puppy and it will be downloaded with the correct name.

User avatar
chrome307
Posts: 708
Joined: Thu 15 Jan 2009, 11:00

#22 Post by chrome307 »

OK, thanks to both of you :)

Finally got it working ..... very pleasantly surprised to see it's an absolutely tiny app.

User avatar
rg66
Posts: 1158
Joined: Mon 23 Jul 2012, 05:53
Location: Vancouver, BC Canada / Entebbe, Uganda Africa!?!

#23 Post by rg66 »

Very usefull tool! However, when it recompresses the sfs file is quite a bit larger than the original. The sfs file's I want to edit are compressed with xz, does this app only use gz and if so can it be changed to use xz?

User avatar
CatDude
Posts: 1563
Joined: Wed 03 Jan 2007, 17:49
Location: UK

#24 Post by CatDude »

Hello rg66
rg66 wrote:.... The sfs file's I want to edit are compressed with xz, does this app only use gz and if so can it be changed to use xz?
  • Go to: /root/my-roxapps/
    Right-click on the icon called: Edit-SFS
    Select: Look Inside
    Now right-click on the file called: AppRun
    Select: Open As Text

    At line 223
    you should find the following line:

    Code: Select all

    echo -e "#!/bin/sh\n'$MKSQUASHFS' '$TREE' '$TREE_BASE/$SFSFILE'" > "${TREE_BASE}/script"
    Change it to look like this:

    Code: Select all

    echo -e "#!/bin/sh\n'$MKSQUASHFS' '$TREE' '$TREE_BASE/$SFSFILE' -comp xz" > "${TREE_BASE}/script"
The above details were originally found here.

Hope this helps
CatDude
.
[img]http://www.smokey01.com/CatDude/.temp/sigs/acer-futile.gif[/img]

User avatar
rg66
Posts: 1158
Joined: Mon 23 Jul 2012, 05:53
Location: Vancouver, BC Canada / Entebbe, Uganda Africa!?!

#25 Post by rg66 »

Thanks CatDude! I was close, I had -comp xz on the right line but in the wrong place. Just tested and it's working great.
X-slacko-5b1 - X-tahr-2.0 - X-precise-2.4
[url=http://smokey01.com/rg66/]X-series repo[/url]

User avatar
rg66
Posts: 1158
Joined: Mon 23 Jul 2012, 05:53
Location: Vancouver, BC Canada / Entebbe, Uganda Africa!?!

#26 Post by rg66 »

Ok, I wanted to have the option of choosing compression type. I took some of the code from an SFS builder script and modified this one to give xz or gz options.

It does work, but since I'm a newbie at this could someone who knows what they're doing give me the proper code? This seems a bit redundant. Also, this script uses X-dialog which I couldn't get to work.

Code: Select all

#Use mksquashfs to put it back together
yad --title "Choose Compression Type" --button=XZ:0 --button=GZIP:1 --text "Choose which algorthim to compress the sfs with.
Chosing XZ here will give you a smaller iso but
may be slower than GZIP on very lowspec machines."
if [ $? = 0 ] ; then
    rox -D "$TREE"
    echo -e "#!/bin/sh\n'$MKSQUASHFS' '$TREE' '$TREE_BASE/$SFSFILE' -comp xz" > "${TREE_BASE}/script"
    chmod +x "${TREE_BASE}/script"
    rxvt -geometry 80x4 -e "${TREE_BASE}/script"
    rm "${TREE_BASE}/script"
    sync
elif [ $? = 1 ] ; then
     rox -D "$TREE"
     echo -e "#!/bin/sh\n'$MKSQUASHFS' '$TREE' '$TREE_BASE/$SFSFILE'" > "${TREE_BASE}/script"
     chmod +x "${TREE_BASE}/script"
     rxvt -geometry 80x4 -e "${TREE_BASE}/script"
     rm "${TREE_BASE}/script"
     sync
fi       
X-slacko-5b1 - X-tahr-2.0 - X-precise-2.4
[url=http://smokey01.com/rg66/]X-series repo[/url]

Dewbie

#27 Post by Dewbie »

rcrsn51 wrote:
You can do this manually.

1. unsquashfs old.sfs
2. modify the folder squashfs-root
3. mksquashfs squashfs-root new.sfs
Then, to remove squashfs-root folder:

Code: Select all

rm -r  squashfs-root
(This method works best for larger edits.)

Pelo

Edit_SFS : the most usefull tools ?

#28 Post by Pelo »

Edit_SFS : the most useful tools ? I can make the ISO as I like, SFS to, adding or removing stuff. Nice. Very nice :P
Attachments
qtWeb.png
My Puppy Legopen Unicorn got QtWeb as browser included by edit-sfs (replacing Netsurf)
(22.47 KiB) Downloaded 403 times
Last edited by Pelo on Sat 23 Jan 2016, 06:10, edited 2 times in total.

User avatar
Hesse James
Posts: 106
Joined: Mon 08 Feb 2010, 18:41

#29 Post by Hesse James »

Hi
I often use edit-sfs. I recently tried to delete some files out of a large SFS-file (>100 MB). To my astonishment the resulting file was significant larger than the original one despite the deletion (+10%). The reason were the not optimized compression parameters for mksquashfs inside edit-sfs. Therefor I added the command line parameters according to:
http://techoverflow.net/blog/2013/01/11 ... om-folder/.
This modification might be helpful for you too.
Christian
Attachments
edit_sfs-2.16.pet
(8.39 KiB) Downloaded 532 times

User avatar
ASRI éducation
Posts: 3197
Joined: Sat 09 May 2009, 12:10
Location: France
Contact:

#30 Post by ASRI éducation »

edit_sfs-2.16.pet
Thank you Hesse James.

Is it possible to choose the compression?

Regards
Projet ASRI éducation => [url=http://asri-education.org/]Association[/url] | [url=http://forum.asri-education.org/]Forum[/url] | [url=http://dl01.asri-education.org/]Dépôt[/url] | [url=http://kids.asri-education.org/]Espace kids[/url]

User avatar
ASRI éducation
Posts: 3197
Joined: Sat 09 May 2009, 12:10
Location: France
Contact:

Re: Edit_SFS : the most usefull tools ?

#31 Post by ASRI éducation »

Pelo wrote:Edit_SFS : the most useful tools ?
This is the best GUI I know to edit sfs.
Regards
Projet ASRI éducation => [url=http://asri-education.org/]Association[/url] | [url=http://forum.asri-education.org/]Forum[/url] | [url=http://dl01.asri-education.org/]Dépôt[/url] | [url=http://kids.asri-education.org/]Espace kids[/url]

User avatar
Ghost Dog
Posts: 163
Joined: Fri 27 Jan 2012, 04:29

#32 Post by Ghost Dog »

Me too.

Except sometimes, on some installations, I can't use a working partition, only ram. A bunch of gtk errors appear and even though I select "partition" it keeps popping up asking until I choose "ramdisk".

That's really annoying. But otherwise, great app!
The Way of the Samurai

User avatar
ASRI éducation
Posts: 3197
Joined: Sat 09 May 2009, 12:10
Location: France
Contact:

#33 Post by ASRI éducation »

Ghost Dog wrote:Except sometimes, on some installations, I can't use a working partition, only ram.
Edit-SFS need a ext* partition, it is not compatible with fat/ntfs.
Is this related to your problems?
Projet ASRI éducation => [url=http://asri-education.org/]Association[/url] | [url=http://forum.asri-education.org/]Forum[/url] | [url=http://dl01.asri-education.org/]Dépôt[/url] | [url=http://kids.asri-education.org/]Espace kids[/url]

User avatar
Ghost Dog
Posts: 163
Joined: Fri 27 Jan 2012, 04:29

#34 Post by Ghost Dog »

Are you sure? Because I can use that ntfs partition all the time with Edit-sfs, it's just certain distros that give me that gtk error that I have problems with.

Cheers

Edit: I just tried using / as my partition, since I'm on a full install that's ext4. Same thing...
The Way of the Samurai

User avatar
ASRI éducation
Posts: 3197
Joined: Sat 09 May 2009, 12:10
Location: France
Contact:

#35 Post by ASRI éducation »

Ghost Dog wrote:Are you sure? Because I can use that ntfs partition all the time with Edit-sfs, it's just certain distros that give me that gtk error that I have problems with.
I thought of this possibility, if you used a folder fat/ntfs placed outside the pupsave.
Ghost Dog wrote:Edit: I just tried using / as my partition, since I'm on a full install that's ext4. Same thing...
It is abnormal.
I admit that it's been (2 years) I have not used this utility (since I do everything from the command line).
I'll try to find some time to reinstall and test it.

Regards
Projet ASRI éducation => [url=http://asri-education.org/]Association[/url] | [url=http://forum.asri-education.org/]Forum[/url] | [url=http://dl01.asri-education.org/]Dépôt[/url] | [url=http://kids.asri-education.org/]Espace kids[/url]

User avatar
Ghost Dog
Posts: 163
Joined: Fri 27 Jan 2012, 04:29

#36 Post by Ghost Dog »

That's ok. Just adding my two cents, that's all. :)
The Way of the Samurai

User avatar
rufwoof
Posts: 3690
Joined: Mon 24 Feb 2014, 17:47

#37 Post by rufwoof »

Don't know about the sfs edit utility, but I've just run

mksquashfs <directory> some.sfs

on a ntfs partition and created the sfs fine. Opened it and content ok

Also ran

unsquashfs some.sfs

and it created the squashedfs-root directory containing the content of the sfs

To see which compression choices are available - in a terminal type

mksquashfs --help

Mine show gzip, xz, lz4, lzo as available choices, but that's because I recompiled with lz4 support. It also shows the compression switch/choices

Pelo

Pet does not work anymore at Home.

#38 Post by Pelo »

Pet does not work anymore at Home. I check for that. EditSFS is so useful !
About partition SFS needed, use your RAM, ASRI !
error was : edit-sfs, not editsfs (terminal)
Be careful using a laptop Acer. Temperature goes up to 84° celsius when editing :!:
I compress in Gz format first, if fine, i launch again edit SFS to compress XZ. It's my way, only my way.
"To see which compression choices are available - in a terminal type
mksquashfs --help"
Rufwoof, you are my best helper in this forum ! graphics, video and editSFS, thanks a lot :)

User avatar
LazY Puppy
Posts: 1934
Joined: Fri 21 Nov 2014, 18:14
Location: Germany

#39 Post by LazY Puppy »

Creating a SFS from dir with files from ntfs partition will work properly.
Creating a SFS from dir with files from vfat will work also properly.

The/a general problem will appear when trying to extract the content of a SFS to a vfat and/or ntfs partition.

Vfat will loose all symbolic links and ntfs (as well as vfat) will turn/change all plain text files without the file extension into executable script files (the ones with the green text color) - so you can't open them in a text editor anymore by left-clicking the text file.

I recommend to use ext partitions generally when it comes to the creation and/or extraction of packages - no matter if .tar.gz, .pet, .deb or .sfs etc.pp. Since you are in linux, you should do anything done on those linux files by using a ext partition generally and only there!
RSH

"you only wanted to work your Puppies in German", "you are a separatist in that you want Germany to secede from Europe" (musher0) :lol:

No, but I gave my old drum kit away for free to a music store collecting instruments for refugees! :wink:

Post Reply