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
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

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

#1 Post by trio »

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/distributio ... 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: Select all

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
Attachments
versioninfo.jpg
(16.61 KiB) Downloaded 5015 times
sfsconverter.jpg
(23.73 KiB) Downloaded 8160 times
sfs_version_converter-1.4-1.pet
(3.02 KiB) Downloaded 2697 times
Last edited by trio on Fri 15 Jan 2010, 14:20, edited 19 times in total.

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#2 Post by mikeb »

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

Jim1911
Posts: 2460
Joined: Mon 19 May 2008, 20:39
Location: Texas, USA

#3 Post by Jim1911 »

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 Mon 17 Aug 2009, 01:01, edited 1 time in total.

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

#4 Post by Lobster »

Good job trio 8)

Works
How long did the coding take you?
I now have Openoffice and XaraLX
in Puppy 4.3 Beta 1

Cyber Life is sweet 8)
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

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

#5 Post by trio »

Hi all, cool reports 8)

@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
Last edited by trio on Mon 17 Aug 2009, 00:53, edited 1 time in total.

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#6 Post by mikeb »

vice versa
bummer..so you did. :oops:

Well this lack of backward compatability is affecting my eyesight :D

regards

mike

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

#7 Post by trio »

updated to v 1.1 - added sfs version check button
updated to v 1.2 - added help button & tooltips


see main post

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

#8 Post by esmourguit »

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 ;)
[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: अनà¥￾मोदना

#9 Post by trio »

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... :wink:

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.

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

#10 Post by trio »

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

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

#11 Post by esmourguit »

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 ;)
[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: अनà¥￾मोदना

#12 Post by trio »

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
Attachments
sfs3to4.pet
(667 Bytes) Downloaded 1629 times
Last edited by trio on Wed 19 Aug 2009, 02:34, edited 1 time in total.

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

#13 Post by Lobster »

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.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

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

#14 Post by trio »

:lol: 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.

tlchost
Posts: 2057
Joined: Sun 05 Aug 2007, 23:26
Location: Baltimore, Maryland USA
Contact:

#15 Post by tlchost »

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.

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

Post Reply