Page 1 of 2
SFS VERSION CONVERTER-1.4-1 sfs 3 to 4 vice versa
Posted: Sun 16 Aug 2009, 17:03
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
Posted: Sun 16 Aug 2009, 18:48
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
Posted: Sun 16 Aug 2009, 19:04
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
Posted: Sun 16 Aug 2009, 20:07
by Lobster
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
Posted: Mon 17 Aug 2009, 00:13
by trio
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
Posted: Mon 17 Aug 2009, 00:33
by mikeb
vice versa
bummer..so you did.
Well this lack of backward compatability is affecting my eyesight
regards
mike
Posted: Mon 17 Aug 2009, 02:11
by trio
updated to v 1.1 - added sfs version check button
updated to v 1.2 - added help button & tooltips
see main post
Posted: Mon 17 Aug 2009, 09:27
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
Posted: Mon 17 Aug 2009, 09:35
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...
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.
Posted: Tue 18 Aug 2009, 04:43
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
Posted: Tue 18 Aug 2009, 06:36
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
Posted: Tue 18 Aug 2009, 07:52
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
Posted: Tue 18 Aug 2009, 09:50
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.
Posted: Tue 18 Aug 2009, 10:11
by trio
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.
Posted: Tue 18 Aug 2009, 10:33
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.
Posted: Tue 18 Aug 2009, 10:34
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.
Posted: Tue 18 Aug 2009, 11:14
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
Posted: Wed 19 Aug 2009, 08:15
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
Posted: Wed 19 Aug 2009, 08:21
by trio
Esmourguit,
U R welcome
Posted: Sat 29 Aug 2009, 07:44
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
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
Puppy up and running from new install in a few minutes incidentally . . .