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 Mon 01 Sep 2014, 04:29
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
Edit-SFS 1.1 (squash filesystem editor) - OBSOLETE
Moderators: deshlab, Flash, GuestToo, Ian, JohnMurga, Lobster
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 2 [25 Posts]   Goto page: Previous 1, 2
Author Message
Pizzasgood


Joined: 04 May 2005
Posts: 6270
Location: Knoxville, TN, USA

PostPosted: Mon 14 Apr 2008, 17:39    Post subject:  

The compatibility issue is because most versions of Puppy use gzip compression with the .sfs files, but some use LZW compression (I think I got the acronym right...). I'm not sure if there's a way to specify which way Puppy should use when mounting the file. That's something I probably should have investigated back when I wrote this script. I guess I figured since most people would be editing the .sfs file for the version they're using it wouldn't be a big issue.

One way around it is to just boot up in the same Puppy you're getting the first .sfs from and use that to open it up. Pull out the contents and save them on a linux partition. Then reboot into the version you got the other .sfs from and then use Edit-SFS to edit the second file.

_________________
Between depriving a man of one hour from his life and depriving him of his life there exists only a difference of degree. --Muad'Dib

Back to top
View user's profile Send private message Visit poster's website 
djringjr

Joined: 14 Jan 2007
Posts: 156

PostPosted: Sun 19 Oct 2008, 00:13    Post subject:  

I am posting here because edit-SFS does NOT seem to work with Puppy4xx.sfs files. I've posted to ask for a program request elsewhere, but I feel MU will see this here first.

We have great need for this to finish up SpeakPup - the screen reading Puppy for the Blind.

Thanks,

David
Back to top
View user's profile Send private message 
tazoc


Joined: 11 Dec 2006
Posts: 1157
Location: Lower Columbia Basin WA US

PostPosted: Mon 27 Oct 2008, 12:22    Post subject: Edit-SFS  

djringjr wrote:
I am posting here because edit-SFS does NOT seem to work with Puppy4xx.sfs files.
What happens when you boot up in Puppy 4.10, install Edit-SFS (links in this thread) and then use it to edit the the Puppy4xx sfs? So far its working for me. Please post any errors you receive, and when they occur.

Pizzasgood, thank you for Edit-SFS and for clarifying the compatibility issue and suggested workaround. Your insight has helped me many times over. The Puppy community is fortunate to have your expertise and creativity.

Take care,
TazOC

_________________
lhpup.org Lighthouse 64 6.02
Back to top
View user's profile Send private message Visit poster's website 
Pizzasgood


Joined: 04 May 2005
Posts: 6270
Location: Knoxville, TN, USA

PostPosted: Mon 27 Oct 2008, 18:34    Post subject:  

@djringjr: I'm very sorry. I read your post, and made a mental note to check on it when I had some free time. But then I completely forgot. The main catch is that this generally works best if it's run in the same version of Puppy as the file you're trying to modify, so that it uses the same algorithms that were used to create that file in the first place. This can also differ between different derivatives of the same version, if the creator changed the compression (usually they don't, though).

I've just tested this in Puppy 4.1 with both a pup_410.sfs file and a pup_400.sfs file, and it seems to have worked on both of them. I didn't try booting with them though.

Be aware, it can take five or ten minutes to finish compressing the file if your computer isn't very fast. If you used a very large file (600 mb) on an old computer, it can take a very long time.

If it doesn't work from the same version as the file you're editing, try running it from the commandline by right-clicking the icon and choosing "look inside", and then opening a terminal there and running the AppRun file. Then you can post the error messages to give me an idea of where it's breaking.

@tazoc: thanks

_________________
Between depriving a man of one hour from his life and depriving him of his life there exists only a difference of degree. --Muad'Dib

Back to top
View user's profile Send private message Visit poster's website 
maddox

Joined: 28 Sep 2007
Posts: 453
Location: sometimes in France

PostPosted: Tue 18 Nov 2008, 21:17    Post subject:  

Hi Pizzasgood,
just been testing your Edit-SFS script, a handy script ...
- these lines work with puppy 4.xx and probally before.
the 1st line is a show stopper (mount error) .. incorrect mount syntax
the 2nd line is a slight mod (-af) , copy all files and links
Code:

original line :
wait `mount tmpfs "$TMPAREA" -t tmpfs size="$SIZEOFTMP"m`
modified line :
wait `mount -t tmpfs -o size=${SIZEOFTMP}m tmpfs "$TMPAREA"`

original line :
cp -R "$WORKINGDIR/mountpoint"/* "$TREE"
modified line :
cp -af "$WORKINGDIR/mountpoint"/* "$TREE"

thanks very much for your usefull prog.

- Are you still in to translating your prog / updating it to a "pet" ?
Back to top
View user's profile Send private message 
Pizzasgood


Joined: 04 May 2005
Posts: 6270
Location: Knoxville, TN, USA

PostPosted: Wed 19 Nov 2008, 14:01    Post subject:  

Okay, changes added, .pet made:
edit_sfs-1.1.pet

Also added a menu icon and a symlink to the AppRun script at /usr/bin/edit-sfs.

_________________
Between depriving a man of one hour from his life and depriving him of his life there exists only a difference of degree. --Muad'Dib

Back to top
View user's profile Send private message Visit poster's website 
gola10

Joined: 01 Mar 2008
Posts: 24

PostPosted: Wed 26 Nov 2008, 02:45    Post subject:  

I used edit_sfs-1.1.pet on puppy 4.11 and it worked.
I would like to suggest that you add to it a screen that displayes the activity and error messages while assembling the final sfs.
I tried it a few times and always gave me an error. Then i launced it from a xterm and could see that at 39% it stopped due to no space to build the new sfs.
I do not know why it was happening since i had 512mb of memory and 500mb of swapfile.
Finally i mounted a 1 gb partition and replaced in the script the path from /tmp/.....
to /mnt/sda1/.... and it worked right.
Back to top
View user's profile Send private message 
Pizzasgood


Joined: 04 May 2005
Posts: 6270
Location: Knoxville, TN, USA

PostPosted: Wed 26 Nov 2008, 03:33    Post subject:  

Next time I work on it, I'll see what I can do.
_________________
Between depriving a man of one hour from his life and depriving him of his life there exists only a difference of degree. --Muad'Dib

Back to top
View user's profile Send private message Visit poster's website 
WarMocK


Joined: 05 Jul 2007
Posts: 169

PostPosted: Thu 16 Jul 2009, 12:21    Post subject:  

@pizzasgood:
I just used Edit-sfs on an frugal installation of NOP 4.13. However it didn't work right away since /tmp was considered to be 0 kb (aka "no space left on device"). A simple solution was to edit the tool by replacing "/tmp" with "$HOME/tmp" and creating a tmp-folder in /root. After the modifications, the tool worked properly (and it's a great toy imho. I'll probably write a GUI for the sfs tools using tcl/tk in the foreseeable future. SFS is brilliant. ^^).

Just my 2 cents. Wink
Back to top
View user's profile Send private message 
seaside

Joined: 11 Apr 2007
Posts: 886

PostPosted: Fri 17 Jul 2009, 21:01    Post subject:  

Pizzasgood,

I hope you don't mind that I modified your script and made a Rox right-click "open with" choice with it.

The Edit-SFSRox.pet is here-
http://murga-linux.com/puppy/viewtopic.php?p=324690#324690

I also added a "processing sfs file" message to keep everyone from leaving town. Very Happy Very Happy

Thanks for all your great work.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 2 of 2 [25 Posts]   Goto page: Previous 1, 2
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.0690s ][ Queries: 12 (0.0044s) ][ GZIP on ]