Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sun 23 Nov 2014, 16:01
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
SFS VERSION CONVERTER-1.4-1 sfs 3 to 4 vice versa
Moderators: deshlab, Flash, GuestToo, Ian, JohnMurga, Lobster
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 3 [32 Posts]   Goto page: Previous 1, 2, 3 Next
Author Message
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7082
Location: Perth, Western Australia

PostPosted: Tue 18 Aug 2009, 06:34    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 Wink


yes, I'll look into integrating trio's sfs converter into filemnt and rox -- hmmm, maybe the BootManager too -- for 4.3beta2.

_________________
http://bkhome.org/news/
Back to top
View user's profile Send private message Visit poster's website 
trio


Joined: 21 Dec 2008
Posts: 1883
Location: अनुमोदना

PostPosted: Tue 18 Aug 2009, 07:14    Post subject:  

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 Wink


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

_________________
My apps
Back to top
View user's profile Send private message 
esmourguit


Joined: 17 Nov 2006
Posts: 1288
Location: Sur l'ile aux oiseaux.

PostPosted: Wed 19 Aug 2009, 04:15    Post subject:  

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 Wink

_________________
Toutou Linux - Pets francisés
Back to top
View user's profile Send private message 
trio


Joined: 21 Dec 2008
Posts: 1883
Location: अनुमोदना

PostPosted: Wed 19 Aug 2009, 04:21    Post subject:  

Esmourguit,

U R welcome

_________________
My apps
Back to top
View user's profile Send private message 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: Sat 29 Aug 2009, 03:44    Post subject:  

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/viewtopic.php?p=335749#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 Crying or Very sad
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 Crying or Very sad

Puppy up and running from new install in a few minutes incidentally . . . Laughing

_________________
Puppy WIKI
Back to top
View user's profile Send private message Visit poster's website 
YoN


Joined: 04 Jul 2007
Posts: 76
Location: NIPPON

PostPosted: Fri 04 Dec 2009, 04:43    Post subject:  

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".
Back to top
View user's profile Send private message 
disciple

Joined: 20 May 2006
Posts: 6455
Location: Auckland, New Zealand

PostPosted: Sat 05 Dec 2009, 20:20    Post subject:  

I'm a bit too late, aren't I Smile

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:
#!/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 Smile
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.

_________________
DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
Back to top
View user's profile Send private message 
Diamond

Joined: 11 Dec 2007
Posts: 141

PostPosted: Sun 13 Dec 2009, 10:26    Post subject:  

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!
Back to top
View user's profile Send private message Visit poster's website 
disciple

Joined: 20 May 2006
Posts: 6455
Location: Auckland, New Zealand

PostPosted: Mon 14 Dec 2009, 01:36    Post subject:  

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?
_________________
DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
Back to top
View user's profile Send private message 
yerc1

Joined: 09 Jan 2009
Posts: 73

PostPosted: Wed 16 Dec 2009, 18:47    Post subject:  SFS CONVERTER-1.3 sfs 3 to 4 vice versa
Subject description: Does not work for sfs that use lzma compression?
 

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... Very Happy
Back to top
View user's profile Send private message 
disciple

Joined: 20 May 2006
Posts: 6455
Location: Auckland, New Zealand

PostPosted: Thu 17 Dec 2009, 05:37    Post subject:  

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.

_________________
DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
Back to top
View user's profile Send private message 
Q5sys


Joined: 11 Dec 2008
Posts: 1073

PostPosted: Sat 19 Dec 2009, 02:36    Post subject:  

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! Smile If it wasnt for you work I wouldnt be able to do what I want to do, even though it'll be work intensive.
Back to top
View user's profile Send private message Visit poster's website 
disciple

Joined: 20 May 2006
Posts: 6455
Location: Auckland, New Zealand

PostPosted: Sat 19 Dec 2009, 04:06    Post subject:  

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/distributions/puppylinux/pet_packages-4/squashfs-tools4-4.0-pup4.pet
_________________
DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
Back to top
View user's profile Send private message 
yerc1

Joined: 09 Jan 2009
Posts: 73

PostPosted: Tue 29 Dec 2009, 18:35    Post subject:  

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
Back to top
View user's profile Send private message 
trio


Joined: 21 Dec 2008
Posts: 1883
Location: अनुमोदना

PostPosted: Sat 09 Jan 2010, 11:38    Post subject:  

Updated to Version 1.4 -- see main page
_________________
My apps
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 2 of 3 [32 Posts]   Goto page: Previous 1, 2, 3 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1033s ][ Queries: 13 (0.0143s) ][ GZIP on ]