SFS-Combiner - merge some squashfs addons

Stuff that has yet to be sorted into a category.
Message
Author
User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#61 Post by sunburnt »

Hi dinky; With any luck MU will have the time to modify his great app.

Last night I simplified the identifing of image file types & their mounting.
Today I'll be testing that work, I'll try a few SFS file builds & check them.
If all looks good I'll repost "mksfs" here in the Software forum for testing.

User avatar
dinky
Posts: 699
Joined: Sat 19 Jan 2008, 23:39

#62 Post by dinky »

Look forward to it matey, will be happy to test things. Cheers.
~dinky

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#63 Post by sunburnt »

After much work...
It seems the top mount directory being saved to the SFS file is a real mksquashfs problem.
I looked at the docs & there's no way to control it to keep from doing it...
Explanation:
If there's just one dir., then it's contense is put in the SFS file.
If there's several dirs., then the selected dirs. & their contenses are put in the SFS file.
Some times this is exactly what you want, like what I was doing, but sometimes it's not.

What this means for mounted iso, sfs. ext2, & ext3 files is the last mount point dir. is included.
Like this mount point for an SFS file: /mnt/sfs, so /sfs is stored in the SFS file as top dir.

Sadly... The only option left is to do one source (dir. or file), & then append the next, etc.
This way all the sources will have their contenses stored in the SFS file.
I didn't have any luck appending to a SFS file before but I'll try it again, maybe this'll work.

ADDENDUM:
Success at appending each dir & file to the SFS file, just the contenses were stored.
We need a way to control this, sometimes you want the dirs. stored & sometimes not.
All the mounted files definitely need their contenses stored, but dirs. need it both ways.
To get the top dir. stored, all I can think of is to do an empty dir. with the source one.
Several sources store the top dirs., & just reuse the same empty /0 dir. over & over.

Using an empty dummy dir. to force storing of the top dir. works, but...
Each time it's used a number is appended to it, like this: /0, /0_1, /0_2, etc.
The same thing happens to all dirs. stored several times, like: /bin, /bin_1, etc.
This seems acceptable to me to be able to control the building of SFS files.
Otherwise, copying files into a ext2-3 image file or partition is the only other way.
Again... If anyone else has any info or ideas to offer on this, speak up!

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#64 Post by sunburnt »

Got it working (I think), posting it in Software forum.
MU; I'll send the bits & pieces of code if you want, or you can DnLd & pick it apart.
Let me know what you want & what you think... Terry

User avatar
dinky
Posts: 699
Joined: Sat 19 Jan 2008, 23:39

#65 Post by dinky »

Hi Sunburnt, can I get a link to your post? I can't find it. I don't understand much of what you wrote, but am eager to try it. I'm off to Sydney for the next week, and will hopefully get a chance to try it up there, if not will give you my feedback when I return. Cheers!
~dinky

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#66 Post by MU »

Sunburnts program mksfs is here:
http://murga-linux.com/puppy/viewtopic.php?t=29839
Mark
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

User avatar
Béèm
Posts: 11763
Joined: Wed 22 Nov 2006, 00:47
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

#67 Post by Béèm »

Does the SFS-Combiner work in the SFS4 environment?
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
[url=http://puppylinux.org/wikka/HomePage]Consult Wikka[/url]
Use peppyy's [url=http://wellminded.com/puppy/pupsearch.html]puppysearch[/url]

gyro
Posts: 1798
Joined: Tue 28 Oct 2008, 21:35
Location: Brisbane, Australia

#68 Post by gyro »

Béèm wrote:Does the SFS-Combiner work in the SFS4 environment?
A simple way to combine a number of sfs files is to simply, unsquashfs -f each of them in turn. Then mksquashfs the resultant "squashfs-root" directory.

gyro

seaside
Posts: 934
Joined: Thu 12 Apr 2007, 00:19

#69 Post by seaside »

gyro wrote:
Béèm wrote:Does the SFS-Combiner work in the SFS4 environment?
A simple way to combine a number of sfs files is to simply, unsquashfs -f each of them in turn. Then mksquashfs the resultant "squashfs-root" directory.

gyro
gyro,

Yes, that's the way I do it - and also supposedly this should work -

Code: Select all

# unsquashfs -f XXXX.sfs  YYYYY.sfs 
My result for more than one sfs file on the command line is always failure with this error - "Floating point exception"

Also the -e option with a list of sfs files doesn't seem to work either.

By any chance, has anyone gotten these options to work?

Cheers,
s

User avatar
Béèm
Posts: 11763
Joined: Wed 22 Nov 2006, 00:47
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

Error when launching

#70 Post by Béèm »

I installed the SFS-Combiner with gtlbasic003 included on a dpup 482 and a upup 466 machine
In both I have an error which seems to be the same.

I issue first:

Code: Select all

# gtkbasic003 -v
puppybasic 2.5
#
so I suppose gtkbasic003 is installed.

Then I issue the combiner:

Code: Select all

# SFS-Combiner
[Syntax error]
Unable to open "/usr/lib/wxbasicscript/basefunctions.inc" or ".//usr/lib/wxbasicscript/basefunctions.inc"

*** glibc detected *** /usr/bin/gtkbasic003: double free or corruption (top): 0x08ca61a8 ***
======= Backtrace: =========
/lib/libc.so.6[0xb762f845]
/lib/libc.so.6(cfree+0x9c)[0xb76316ec]
/lib/libc.so.6(fclose+0x145)[0xb761fbe5]
/usr/bin/gtkbasic003[0x80eada8]
/usr/bin/gtkbasic003[0x80f3111]
/usr/bin/gtkbasic003[0x80f2ff8]
/usr/bin/gtkbasic003[0x80f3204]
/usr/bin/gtkbasic003[0x8101d44]
/usr/bin/gtkbasic003[0x8101ef4]
/lib/libc.so.6(__libc_start_main+0xe5)[0xb75db455]
/usr/bin/gtkbasic003[0x808abf1]
======= Memory map: ========
08048000-0811d000 r-xp 00000000 00:00 0
0811d000-08cb4000 rwxp 00000000 00:00 0          [heap]
b7100000-b7121000 rwxp 00000000 00:00 0
b7121000-b7200000 ---p 00000000 00:00 0
but not very brilliant as result.
Do I miss anything else?
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
[url=http://puppylinux.org/wikka/HomePage]Consult Wikka[/url]
Use peppyy's [url=http://wellminded.com/puppy/pupsearch.html]puppysearch[/url]

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#71 Post by MU »

Salut Bernard,
please use the pet mentioned here in the beginning, it contains the latest version of Gtkbasic and the include files:

http://www.murga-linux.com/puppy/viewtopic.php?t=32575

Mark
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

User avatar
Béèm
Posts: 11763
Joined: Wed 22 Nov 2006, 00:47
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

#72 Post by Béèm »

Merci Marc,
Toujours rapide à répondre.
Always a quick answer.
Bernard
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
[url=http://puppylinux.org/wikka/HomePage]Consult Wikka[/url]
Use peppyy's [url=http://wellminded.com/puppy/pupsearch.html]puppysearch[/url]

User avatar
Béèm
Posts: 11763
Joined: Wed 22 Nov 2006, 00:47
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

#73 Post by Béèm »

Mark,
J'ai dû télécharger PuppyBasic2.6 également pour que SFS Combiner fonctionne.
I had to download PuppyBasic 2.6 also for SFS-Combiner to function.
Thank you,

Bernard
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
[url=http://puppylinux.org/wikka/HomePage]Consult Wikka[/url]
Use peppyy's [url=http://wellminded.com/puppy/pupsearch.html]puppysearch[/url]

HiDeHo
Posts: 311
Joined: Wed 16 Mar 2011, 09:57

#74 Post by HiDeHo »

Hi does this application work in lupu series and wary and quirky to combine sfs files.

they have included it in lighthouse pup. but lighthouse has be modified to run up to 40 so i dont see the need for sfs combiner there.

i am wanting as said for other pups.

phredo
Posts: 65
Joined: Mon 21 Oct 2013, 23:15

#75 Post by phredo »

Does this app work on recent puppies like Slacko 5.7? Alternatively, are there other ways to get beyond the 6 sfs loading limit?

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

#76 Post by CatDude »

Hello phredo
phredo wrote:..Alternatively, are there other ways to get beyond the 6 sfs loading limit?
I'm running Slacko-5.7 and i currently have 20 .sfs files loaded up
  • devx_slacko_5.7.sfs
    kernel_sources-3.4.82-slacko_4g_f2fs.sfs
    filezilla-3.7.4.1_5.6.5.6.sfs
    virtualbox-4.3.8-x86_5.6.5.6.sfs
    scribus-1.4.1-i686-s.sfs
    LibreOffice_4.2.1.1_Linux_x86.sfs
    jre-1.7.0_25.sfs
    evince-2.32.0-i486-3sl.sfs
    openshot-1.4.2.sfs
    wxGTK-2.8.12.1.sfs
    qt-everywhere-opensource-src-4.8.2-i686-s14.sfs
    Gimp-gap-py-wine-2.6.10_s57.sfs
    vlc-2.1.0-i686-s14.sfs
    copy_agent-1.42.0277.sfs
    imagemagick-6.7.7_10-i486-1.sfs
    povray-3.7.0.RC7-i486-1_SBo.sfs
    cherrytree-0.33.4.sfs
    inkscape-0.48.3.1-i486-s.sfs
    tor-browser-3.6.3-x86.sfs
    skype-4.3.0.37-s57.sfs
i use SFS-Load on-the-fly and let it create new mount points as necessary,
even though it say's "(not recommended)", but i am rather reckless. :lol:

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

phredo
Posts: 65
Joined: Mon 21 Oct 2013, 23:15

#77 Post by phredo »

Thanks, CatDude, Thats really good to learn. My savefile seems to grow more than it should and making more use of SFS-Load-On-The-Fly rather than installing PETs should help.

One of the things I love about Puppy is the quick and valuable help I can often find on this forum. :D

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#78 Post by musher0 »

Hello all.

As some of you may have noticed, MU's wonderful and quite practical
SFS-Combiner does not work anymore on recent Pups because (as I
understand it with my limited knowledge of BASIC) its BASIC foundation
has become obsolete.

It would be nice if a local BASIC expert would diagnose what's wrong with
it and suggest a cure.

In the meantime, please find attached a Bash script that does most of
the same.

It uses mount points at /mnt/zip instead of unsquashfs to preserve space

This script has:
-- its own progress bar,

-- its own icon,

-- a wrapper (so it will behave like a "quasi-GUI"),

-- a *.desktop file (so will appear in your menu, under Archiving),

-- some pretty ANSI colors,

-- a frame.

It is bilingual English-French. The messages appear automatically in the
language defined in the system $LANG variable -- or in English. It would
be great if additional translations could be contributed.

I did a fair amount of testing, and it works fine at this end. A couple of
confirmations that it works on your Pup would be nice.

Any questions about this script, please ask, I'll do my best to answer.

Of course constructive suggestions for improvements are welcome.

Enjoy.
Attachments
SFS-combiner-1st.jpg
Top
(62.42 KiB) Downloaded 604 times
SFS-combiner-2nd.jpg
Bottom
(194.3 KiB) Downloaded 617 times
Combineur-SFS-0.1.pet
(6.32 KiB) Downloaded 465 times
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
davids45
Posts: 1326
Joined: Sun 26 Nov 2006, 23:33
Location: Chatswood, NSW

Include Muppy-Filer?

#79 Post by davids45 »

G'day musher0,

With my present playing around making adrv-sfs for Pups here (I wonder who gave me that idea? :wink: ), I have been using both MU's Muppy-filer and SFS-Combiner with no problems in the latest Xenial-Artful-Bionic builds.

SFS-Combiner needs one of the two extra files for the Muppy-Filer pet (the GtkBasic003e pet) so I've combined SFS-Combiner and Muppy-Filer into the one pet with, so far, no problems.

But given enough time and tinkering, I'm sure I can muck them up :roll: .

So I'd better look at your script for future salvation.

David S.

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#80 Post by musher0 »

Hi davids45.

Eh? What? Extra file? Where? You produced something?

To tell you the truth I did not want to write this script, but I felt I had to.
Really. The original kept failing on me on xenial-7.0.6. and I could not
make sense of the long list of error messages I got when I tried to run it.

MU's was a very useful utility, and I thought it needed a replacement
ASAP. Puppy is all about sfs's, isn't? We Puppyists do not have something
like this, we Puppyists start sweating!

So if you are the silent strong man or the incognito genius, please share
your package, I for one will be most grateful.

BFN.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

Post Reply