SFS VERSION CONVERTER-1.4-1 sfs 3 to 4 vice versa

Stuff that has yet to be sorted into a category.
Message
Author
User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#16 Post by BarryK »

esmourguit wrote:Bonjour,
I like very much this little app.
When you want to mount a SFS file (bad version) in ROX, may be is it possible to modify /usr/sbin/filemnt to launch SFSconvert and convert the SFS file and then mount it.
Cordialement ;)
yes, I'll look into integrating trio's sfs converter into filemnt and rox -- hmmm, maybe the BootManager too -- for 4.3beta2.
[url]https://bkhome.org/news/[/url]

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#17 Post by trio »

BarryK wrote:
esmourguit wrote:Bonjour,
I like very much this little app.
When you want to mount a SFS file (bad version) in ROX, may be is it possible to modify /usr/sbin/filemnt to launch SFSconvert and convert the SFS file and then mount it.
Cordialement ;)
yes, I'll look into integrating trio's sfs converter into filemnt and rox -- hmmm, maybe the BootManager too -- for 4.3beta2.
Hi Barry,

One of the reason that I prefer a GUI than a command line is that it will take a loooong time to convert the big sfs first before than mount it.

I dunno about you, but for me it's better to finish the convert process, then the new sfs can be clicked to mount it.

that's why I made a special command line converter for esmourguit

thanks

User avatar
esmourguit
Posts: 1410
Joined: Fri 17 Nov 2006, 14:45
Location: Entre l'ile aux oiseaux.et l'ile de sainte Lucie

#18 Post by esmourguit »

Bonjour à tous,
trio wrote:Esmourguit,

I made this one especially for you, commandline converter called sfs3to4:]
Thanks a lot Trio, i appreciate very much. I just try it and it works fine. It's really very practical.
BarryK wrote: yes, I'll look into integrating trio's sfs converter into filemnt and rox -- hmmm, maybe the BootManager too -- for 4.3beta2.
Also thank you Barry it would be very pleasant.
Cordialement ;)
[url=http://moulinier.net/][color=blue][b]Toutou Linux[/b][/color][/url] - [url=http://toutoulinux.free.fr/pet.php][color=blue][b]Paquets français[/b][/color][/url]

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#19 Post by trio »

Esmourguit,

U R welcome

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#20 Post by Lobster »

I am in 4.3 Beta 1 and tried to use the 3.1 compiled version SFS
recently announced
http://www.murga-linux.com/puppy/viewto ... 749#335749

Put it through the upgrader

and it appeared in Bootmanager
so I was able to add and reboot
The icons appeared for Openoffice (but just blank script icons - not full colour ones)
Clicking on them - nothing
also right mouse click not working :cry:
no menu options working
OK so tried ctrl + alt + backspace
NO!
Had to turn off machine (reset button not connected)
So that is a complete freeze

On reboot my two save files (running from CD)
came up
but keyboard(USB) was not responding :cry:

Puppy up and running from new install in a few minutes incidentally . . . :lol:
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
YoN
Posts: 76
Joined: Wed 04 Jul 2007, 07:28
Location: NIPPON

#21 Post by YoN »

Hi Trio,

I use conveniently on 4.3.1 japanese version. I like your converter.

As hope in the future, if possible, I think that it only has visually to understand the progress report on message splash window "Please wait until this box is closed" screen under conversion.
For instance, it is "Percent display" or "Graph bar display".

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#22 Post by disciple »

I'm a bit too late, aren't I :)

Bug #1: does not work if extension is .SFS instead of .sfs
Bug #2: does not work if paths have spaces.

This quick hack works for me:

Code: Select all

#!/bin/sh
#SFS Converter - 3 to 4, 4 to 3
#Trio Tjandradjaja - GPL 2009


case $1 in
-convert)

[ ! "$SFS" ] && Xdialog --title "SFS Converter Splash" --msgbox "Please drag & drop an sfs" 10 40 && exit 0

EXTENSION=sfs
if [ `echo "$SFS" |tail -c 4` = "SFS" ] ; then EXTENSION=SFS; fi
CHECKSFS=`echo "$SFS" | sed 's/^.*\.//'`
BASENAME=`basename "$SFS" ".$EXTENSION"`
if [ "$CHECKSFS" = "$EXTENSION" ]; then
	TYPE=`disktype "$SFS" | grep 'version 4'`
	if [ ! "$TYPE" ] ; then
	Xdialog --title "SFS Converter Splash" --msgbox "Converting sfs v 3.x to 4.x
	Please wait until this box is closed
	Trio Tj - GPL 2009" 10 40 &
	p=$!
	cd "$DIR"
	unsquashfs3 "$SFS"
	mksquashfs4 "squashfs-root" "$BASENAME-sfs4.$EXTENSION"
	rm -rf "squashfs-root"
	md5sum "$BASENAME-sfs4.$EXTENSION" > "$BASENAME-sfs4.$EXTENSION-md5.txt"
	kill $p
	else
	Xdialog --title "SFS Converter Splash" --msgbox "Converting sfs v 4.x to 3.x
	Please wait until this box is closed
	Trio Tj - GPL 2009" 10 40 &
	p=$!
	cd "$DIR"
	unsquashfs4 "$SFS"
	mksquashfs3 "squashfs-root" "$BASENAME-sfs3.$EXTENSION"
	rm -rf "squashfs-root"
	md5sum "$BASENAME-sfs3.$EXTENSION" > "$BASENAME-sfs3.$EXTENSION-md5.txt"
	kill $p
	fi
else
Xdialog --title "SFS Converter Splash" --msgbox "Not a valid sfs file" 10 40
fi
;;

-version)
Xdialog --title "SFS Version Info" --msgbox "INFO:
	`disktype "$SFS"`" 15 50 &
;;
-help)
defaulttextviewer /usr/local/sfsconvert/README.txt &
;;

esac
It would also be a nice enhancement to add a checkbox so the user can choose not to add -sfs4 in the name... although it doesn't really matter as it isn't an app you use every day :)
Also, a checkbox to rename the original sfs would be nice - that way if you're upgrading to a new puppy you can just replace all your old squashfiles with new ones, keeping a backup, and won't need to rename them manually.
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

Diamond
Posts: 141
Joined: Tue 11 Dec 2007, 15:44
Contact:

#23 Post by Diamond »

Please help!
Sfs converter don't work for me,i am using puppy 4.0. All I get is txt file.
How to use this hack ?
Thanx!

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#24 Post by disciple »

I imagine it is because you only have the squashfs tools from Puppy 4.0, so can't extract or create newer squashfiles... or have you got the newer tools from somewhere?
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

yerc1
Posts: 118
Joined: Sat 10 Jan 2009, 02:40

SFS CONVERTER-1.3 sfs 3 to 4 vice versa

#25 Post by yerc1 »

Diamond wrote:Please help!
Sfs converter don't work for me,i am using puppy 4.0. All I get is txt file.
How to use this hack ?
Thanx!
The utility works well for me except for converting an OpenOffice sfs with lzma compression - the one I use for the NOP variant. Is lzma compression the issue or is it the huge size of the sfs file? I don't know, but i'm sharing this for others to take note of when using this wonderful utility and also for trio to have a look at... :D

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#26 Post by disciple »

Probably the lzma... was there plenty of space on the drive you converted it on?
How did it fail?

BTW Diamond, you could try using the squashfs tools from 4.3, although I'm not certain that they will work in 4.0. Does anyone know? Or has anyone packaged them for 4.0?

Also, for information: I discovered that Puppy 4.3 can't use files with .SFS extensions (rather than .sfs), even though 4.1x can.
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

User avatar
Q5sys
Posts: 1105
Joined: Thu 11 Dec 2008, 19:49
Contact:

#27 Post by Q5sys »

This is great for people that are using 4.3 or newer, but is not much use for people on earlier systems. I'm running 4.1.2, so I cant use this; which sucks cause I really need to.
I guess my only choice is to install a 4.3 system somewhere for the sole purpose of converting newer SFS4 files to SFS so I can use them on my older system. Kinda an obtuse way to get around the problem, but apparently the only solution. While I dont mind doing it for my purpose (trying to install a newer kernel), Im sure there are a ton of people that once they hit this roadblock will just give up. Installing an entire OS no matter how small just to convert one or two files is a lot of effort.

But the general idea of this converter is great. I just wish there was a way that we all could benefit from it. Thanks to the OP who created this program! :) If it wasnt for you work I wouldnt be able to do what I want to do, even though it'll be work intensive.

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#28 Post by disciple »

Actually, it seems that you can install and use the new squashfs tools in an older puppy. Get them from here ftp://ibiblio.org/pub/linux/distributio ... 0-pup4.pet
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

yerc1
Posts: 118
Joined: Sat 10 Jan 2009, 02:40

#29 Post by yerc1 »

disciple wrote:Probably the lzma... was there plenty of space on the drive you converted it on?
How did it fail?
hi disciple,

there was 1 gb free on the drive i converted on.
with the lzma'd sfs (OpenOffice), the resulting file was only the one for checking checksum.
the rest of the sfs files (not using lzma compression) converted ok.

thanks

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#30 Post by trio »

Updated to Version 1.4 -- see main page

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#31 Post by trio »

Updated - v 1.4-1: Version Info now also tells you compatibility of your sfs with your kernel

Pelo

could you make a newer version four newest kernels ?

#32 Post by Pelo »

cause kernel is 3.2.48, Sfs convert unable to convert :?

Pelo

kde357j-4.sfs: 51 M

#33 Post by Pelo »

system for esmourguit works, tested with slacko 5.7 :) kde357j-4.sfs: 51 M

Post Reply