Edit-SFS 2.1 (squash filesystem editor)

Miscellaneous tools
Message
Author
User avatar
Pizzasgood
Posts: 6183
Joined: Wed 04 May 2005, 20:28
Location: Knoxville, TN, USA

#16 Post by Pizzasgood »

Yeah, my website randomly disappeared for some reason. Been distracted the last couple days and didn't notice until tonight. Just sent in a support ticket to find out wtf happened.
[size=75]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[/size]
[img]http://www.browserloadofcoolness.com/sig.png[/img]

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

#17 Post by chrome307 »

Hi there

Is the pet file still available?

I have checked the link in the 1st post and on the wikki and it gives me a file:

editsfs-2.1.man (?) 8kb

should this not be a *.pet file?

Thanks in advance!

User avatar
puppyluvr
Posts: 3470
Joined: Sun 06 Jan 2008, 23:14
Location: Chickasha Oklahoma
Contact:

#18 Post by puppyluvr »

Close the Windows, and open your eyes, to a whole new world
I am Lead Dog of the
Puppy Linux Users Group on Facebook
Join us!

Puppy since 2.15CE...

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

#19 Post by chrome307 »

Hi there, thanks for letting me know, but I still appear to have the same problem :oops:

Image

User avatar
puppyluvr
Posts: 3470
Joined: Sun 06 Jan 2008, 23:14
Location: Chickasha Oklahoma
Contact:

#20 Post by puppyluvr »

:D Hello,
LOL, the screen shot helped a lot..
You are using Windows to D/L it, and Windoze dont see no .pet files..
I believe that whatever Winblows calls it, D/L it, and reboot to Puppy, it should show up as a .pet..
But really, I recommend D/Ling it in Puppy...
If it wont D/L try renaming it .zip first... :wink:
Whatever it takes to D/L is, after you reboot to Puppy, rename it to *.pet first to install it in Puppy..
Close the Windows, and open your eyes, to a whole new world
I am Lead Dog of the
Puppy Linux Users Group on Facebook
Join us!

Puppy since 2.15CE...

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 531 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]

Post Reply