Page 2 of 2

Posted: Fri 18 May 2012, 12:08
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.

Posted: Sun 20 May 2012, 10:10
by chrome307
OK, thanks to both of you :)

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

Posted: Mon 24 Sep 2012, 06:31
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?

Posted: Mon 08 Oct 2012, 12:27
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
.

Posted: Mon 08 Oct 2012, 13:01
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.

Posted: Thu 22 Nov 2012, 13:13
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       

Posted: Thu 19 Sep 2013, 04:48
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.)

Edit_SFS : the most usefull tools ?

Posted: Thu 19 Jun 2014, 03:29
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

Posted: Thu 19 Feb 2015, 18:14
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

Posted: Thu 19 Feb 2015, 18:22
by ASRI éducation
edit_sfs-2.16.pet
Thank you Hesse James.

Is it possible to choose the compression?

Regards

Re: Edit_SFS : the most usefull tools ?

Posted: Thu 19 Feb 2015, 18:24
by ASRI éducation
Pelo wrote:Edit_SFS : the most useful tools ?
This is the best GUI I know to edit sfs.
Regards

Posted: Thu 19 Feb 2015, 20:02
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!

Posted: Thu 19 Feb 2015, 21:05
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?

Posted: Thu 19 Feb 2015, 21:34
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...

Posted: Thu 19 Feb 2015, 21:49
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

Posted: Thu 19 Feb 2015, 21:56
by Ghost Dog
That's ok. Just adding my two cents, that's all. :)

Posted: Thu 19 Feb 2015, 22:03
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

Pet does not work anymore at Home.

Posted: Sat 23 Jan 2016, 04:44
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 :)

Posted: Sun 20 Mar 2016, 17:15
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!