Edit-SFS 1.1 (squash filesystem editor) - OBSOLETE

Stuff that has yet to be sorted into a category.
Message
Author
User avatar
Pizzasgood
Posts: 6183
Joined: Wed 04 May 2005, 20:28
Location: Knoxville, TN, USA

#16 Post by Pizzasgood »

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.
[size=75]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[/size]
[img]http://www.browserloadofcoolness.com/sig.png[/img]

djringjr
Posts: 157
Joined: Sun 14 Jan 2007, 21:08

#17 Post by djringjr »

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

User avatar
tazoc
Posts: 1157
Joined: Mon 11 Dec 2006, 08:07
Location: Lower Columbia Basin WA US
Contact:

Edit-SFS

#18 Post by tazoc »

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
[url=http://www.lhpup.org/][b][size=100]lhpup.org[/size][/b] [img]http://www.lhpup.org/gallery/images/favicon.png[/img][/url] [url=http://www.lhpup.org/release-lhp.htm#602]Lighthouse 64 6.02[/url]

User avatar
Pizzasgood
Posts: 6183
Joined: Wed 04 May 2005, 20:28
Location: Knoxville, TN, USA

#19 Post by Pizzasgood »

@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
[size=75]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[/size]
[img]http://www.browserloadofcoolness.com/sig.png[/img]

maddox
Posts: 454
Joined: Fri 28 Sep 2007, 20:37
Location: sometimes in France

#20 Post by maddox »

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: Select all

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" ?

User avatar
Pizzasgood
Posts: 6183
Joined: Wed 04 May 2005, 20:28
Location: Knoxville, TN, USA

#21 Post by Pizzasgood »

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.
[size=75]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[/size]
[img]http://www.browserloadofcoolness.com/sig.png[/img]

gola10
Posts: 24
Joined: Sat 01 Mar 2008, 12:55

#22 Post by gola10 »

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.

User avatar
Pizzasgood
Posts: 6183
Joined: Wed 04 May 2005, 20:28
Location: Knoxville, TN, USA

#23 Post by Pizzasgood »

Next time I work on it, I'll see what I can do.
[size=75]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[/size]
[img]http://www.browserloadofcoolness.com/sig.png[/img]

User avatar
WarMocK
Posts: 169
Joined: Thu 05 Jul 2007, 11:53

#24 Post by WarMocK »

@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. ;-)

seaside
Posts: 934
Joined: Thu 12 Apr 2007, 00:19

#25 Post by seaside »

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. ... 690#324690

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

Thanks for all your great work.

Post Reply