Author |
Message |
trio

Joined: 21 Dec 2008 Posts: 2083 Location: अनुमोदना
|
Posted: Sun 16 Aug 2009, 13:03 Post subject:
SFS VERSION CONVERTER-1.4-1 sfs 3 to 4 vice versa Subject description: For those using 4.3 that can't use sfs v 3 |
|
Hi,
If you drag and drop v 3, it will autodetect and convert to v 4, vice versa
Thanks
Actually, it seems that you can install and use the new squashfs tools in an older puppy (4.2 and under). Get them from here: ftp://ibiblio.org/pub/linux/distributions/puppylinux/pet_packages-4/squashfs-tools4-4.0-pup4.pet
Updated - v 1.4-1: Version Info now also tells you compatibility of your sfs with your kernel
Updated - v 1.4:
- Fixes reading .SFS extension (thanks disciple)
- Fixes reading spaces in paths (thanks disciple)
- Now can run from terminal, example:
Code: | sfsconvert /mnt/home/openoffice.sfs |
- Now can right click on an sfs file and click --> open with -->sfsconvert
Updated - v 1.3 :
- Simplified GUI (the notes now in tooltips)
- Option to choose working directory - default /mnt/home
- md5.txt will be created afterwards
Updated - v 1.2 - Help button & tooltips
Updated - v 1.1 - SFS version check button
Description |
|
Filesize |
16.61 KB |
Viewed |
5100 Time(s) |

|
Description |
|

Download |
Filename |
sfs_version_converter-1.4-1.pet |
Filesize |
3.02 KB |
Downloaded |
2737 Time(s) |
Description |
|
Filesize |
23.73 KB |
Viewed |
8293 Time(s) |

|
_________________ My apps
Last edited by trio on Fri 15 Jan 2010, 10:20; edited 19 times in total
|
Back to top
|
|
 |
mikeb

Joined: 23 Nov 2006 Posts: 11331
|
Posted: Sun 16 Aug 2009, 14:48 Post subject:
|
|
Could you also make a squash 4 to squash 3 convertor so when an existing sfs has been converted and worked on it can then be converted back to squash 3 so that it is useable in all the previous and some current puppies? Or simply to convert a squash 4 so that it can be used in puppy 1, 2, 3 and 4
I foresee confusion....
mike
|
Back to top
|
|
 |
Jim1911
Joined: 19 May 2008 Posts: 2460 Location: Texas, USA
|
Posted: Sun 16 Aug 2009, 15:04 Post subject:
|
|
trio,
Thanks for this great little converter. I'm posting using an opera10.sfs on Pup 4.3.0 after using your converter. Also operating are OO3, FF3, and KDE358 whose sfs were converted with your program. Naturally, FF3 crashed after an update to 3.0.13 but that's a characteristic of 430 with firefox.
Thanks again for this and your many other useful contributions. I hope that a .pet converter will be next. EDIT: Just showing my ignorance concerning .pets.
Jim
Last edited by Jim1911 on Sun 16 Aug 2009, 21:01; edited 1 time in total
|
Back to top
|
|
 |
Lobster
Official Crustacean

Joined: 04 May 2005 Posts: 15588 Location: Paradox Realm
|
Posted: Sun 16 Aug 2009, 16:07 Post subject:
|
|
Good job trio
Works
How long did the coding take you?
I now have Openoffice and XaraLX
in Puppy 4.3 Beta 1
Cyber Life is sweet
_________________ Puppy Raspup 8.2 Final
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html 
|
Back to top
|
|
 |
trio

Joined: 21 Dec 2008 Posts: 2083 Location: अनुमोदना
|
Posted: Sun 16 Aug 2009, 20:13 Post subject:
|
|
Hi all, cool reports
@Mike
It already does that, v 3 to 4, and v 4 to 3 (you didn't read carefully). Sfs v 4 works for 430 and sfs v 3 works for 421-under (4 series). I don't know 3 and 2 series.
@jim1911
Aaah Good that it;s useful. Pet converter? Why do we need that? 430 and 421-under (also I think 3 and 2) dot pets are compatible (the pet itself). BUT the applications inside the pet is a whole different story. It just depends how you compile/make the apps. There can't be a converter for that, you just need to compile again from source
@Lobster
It took me about 2,5 hours, and yeah, I decided to make this, one of the reason is you when posting in bugs thread about incompatible sfs files you have
Thanks all
_________________ My apps
Last edited by trio on Sun 16 Aug 2009, 20:53; edited 1 time in total
|
Back to top
|
|
 |
mikeb

Joined: 23 Nov 2006 Posts: 11331
|
Posted: Sun 16 Aug 2009, 20:33 Post subject:
|
|
bummer..so you did.
Well this lack of backward compatability is affecting my eyesight
regards
mike
|
Back to top
|
|
 |
trio

Joined: 21 Dec 2008 Posts: 2083 Location: अनुमोदना
|
Posted: Sun 16 Aug 2009, 22:11 Post subject:
|
|
updated to v 1.1 - added sfs version check button
updated to v 1.2 - added help button & tooltips
see main post
_________________ My apps
|
Back to top
|
|
 |
esmourguit

Joined: 17 Nov 2006 Posts: 1411 Location: Entre l'ile aux oiseaux.et l'ile de sainte Lucie
|
Posted: Mon 17 Aug 2009, 05:27 Post subject:
|
|
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
_________________ Toutou Linux - Paquets français
|
Back to top
|
|
 |
trio

Joined: 21 Dec 2008 Posts: 2083 Location: अनुमोदना
|
Posted: Mon 17 Aug 2009, 05:35 Post subject:
|
|
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  |
Sure it's possible, but I do not want to interfere with Barry's current work with filemnt. You need to alter individually. You look for the warning line:
NOTICE: this is an older version of etc etc
When you found it, just put this under it:
exec /usr/local/sfsconvert/sfsconvert &
Yeah, it's a dirty hack...
Cordialement
Edit: you mean auto convert then mount it? Yes, possible, but I don't think I want to make it that way, if it is not a native app. The reason is like I said above, it will be useless if the filemnt is not altered.
_________________ My apps
|
Back to top
|
|
 |
trio

Joined: 21 Dec 2008 Posts: 2083 Location: अनुमोदना
|
Posted: Tue 18 Aug 2009, 00:43 Post subject:
|
|
Updated - v 1.3 :
- Simplified GUI (the notes now in tooltips)
- Option to choose working directory - default /mnt/home
- md5.txt will be created afterwards
See main post
_________________ My apps
|
Back to top
|
|
 |
esmourguit

Joined: 17 Nov 2006 Posts: 1411 Location: Entre l'ile aux oiseaux.et l'ile de sainte Lucie
|
Posted: Tue 18 Aug 2009, 02:36 Post subject:
|
|
Bonjour à tous,
Thank you very much for your answer. This has been very useful
Then, could you possibly provide the part of script to add up for automounting the SFS file after processing?
Cordialement
_________________ Toutou Linux - Paquets français
|
Back to top
|
|
 |
trio

Joined: 21 Dec 2008 Posts: 2083 Location: अनुमोदना
|
Posted: Tue 18 Aug 2009, 03:52 Post subject:
|
|
Esmourguit,
I made this one especially for you, commandline converter called sfs3to4:
same function auto detect v 3 to 4 and 4 to 3, usage: sfs3to4 xxx.sfs, after that directly auto mount the new sfs
To have filemnt auto mount the v3 sfs file, you have to edit /usr/bin/filemnt:
line 78 to 84:
xmessage -center -bg '#FFC0C0' "NOTICE: This is an older version 3.x squashfs file, not usable.
All Linux kernels 2.6.29 or later require version 4.x squashfs files."
sfs3to4 $imgFile &
else
xmessage -center -bg '#FFC0C0' "NOTICE: This is a newer version 4.x squashfs file, not usable.
All Linux kernels 2.6.28 or earlier require version 3.x squashfs files."
sfs3to4 $imgFile &
Please test.
Cheers
Edit: this is only to mount, not LOAD on the fly
Description |
|

Download |
Filename |
sfs3to4.pet |
Filesize |
667 Bytes |
Downloaded |
1686 Time(s) |
_________________ My apps
Last edited by trio on Tue 18 Aug 2009, 22:34; edited 1 time in total
|
Back to top
|
|
 |
Lobster
Official Crustacean

Joined: 04 May 2005 Posts: 15588 Location: Paradox Realm
|
Posted: Tue 18 Aug 2009, 05:50 Post subject:
|
|
Quote: | one of the reason is you when posting in bugs thread about incompatible sfs files you have |
Good job. For various reasons I stay at the puppy cutting edge whenever possible. I studied your code and was very impressed that you did it in 2.5 hours.
It is interesting that your respond to needs that people express.
Really appreciate this and other work you are doing.
_________________ Puppy Raspup 8.2 Final
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html 
|
Back to top
|
|
 |
trio

Joined: 21 Dec 2008 Posts: 2083 Location: अनुमोदना
|
Posted: Tue 18 Aug 2009, 06:11 Post subject:
|
|
No problem Mr. Crustacean
I only want to help out.
Note to all:
if you are using USB/Hard Drive with FAT partition, sfs containing symlinks (like devx) will not be converted. It will fail.
_________________ My apps
|
Back to top
|
|
 |
tlchost
Joined: 05 Aug 2007 Posts: 2111 Location: Baltimore, Maryland USA
|
Posted: Tue 18 Aug 2009, 06:33 Post subject:
|
|
Lobster wrote: |
It is interesting that your respond to needs that people express.
Really appreciate this and other work you are doing. |
If developers adopted his attitude, more folks would be using Puppy as their OS of choice, without having to put on geek hats to do it.
|
Back to top
|
|
 |
|