The time now is Sat 25 May 2013, 23:23
All times are UTC - 4 |
|
Page 1 of 2 [25 Posts] |
Goto page: 1, 2 Next |
| Author |
Message |
Pizzasgood

Joined: 04 May 2005 Posts: 6270 Location: Knoxville, TN, USA
|
Posted: Tue 24 Oct 2006, 18:00 Post subject:
Edit-SFS 1.1 (squash filesystem editor) - OBSOLETE Subject description: this is now obsolete - use 2.0 instead |
|
This version is obsolete. Please use version 2.0 instead.
edit_sfs-1.1.pet
Edit-SFS.pup (old version)
This is a simple roxapp (click-able folder that runs a script, very handy things) that allows you to edit an xxxx.sfs file like pup_xxx.sfs, or devx_xxx.sfs. It takes care of mounting, making a new filesystem, replacing the files, re-compressing, etc. All you need to do is supply the file, edit it, then receive the new file.
It will install to /root/my-roxapps/Edit-SFS. Just click it and it will run. If you feel like modifying it, right-click, choose "look inside", and edit the AppRun file.
When you run it, it will pop open a rox-filer window. Place a .sfs file in it. It must have the .sfs extension. Hit "ready" when it's set. Then it will close the window, think for a little, and present you with a new window featuring the file's contents in an editable form. When you are done editing, click "finished" and it will close the window, think, and present you with a freshly compressed .sfs file. Place that somewhere for safe-keeping before hitting "ready". When ready, clicking the ready button will delete the working directory in the process of cleaning up after itself. Then you're done.
Note: Puppy's strange usage of filesystems makes one of the only reliable ways to do this to create a tmpfs area to work in. It will need one as big as the sfs file, plus a small buffer-space. It takes care of it itself, but you do need sufficient ram for the tmpfs filesystem. A 60MB file like devx_211.sfs will need 61MB or so of ram.
_________________ 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

Last edited by Pizzasgood on Mon 05 Oct 2009, 20:52; edited 5 times in total
|
|
Back to top
|
|
 |
sunburnt

Joined: 08 Jun 2005 Posts: 4006 Location: Arizona, U.S.A.
|
Posted: Tue 24 Oct 2006, 18:08 Post subject:
|
|
Thanks Pizzasgood... more tools = better & faster development of Puppy.
And with ease of learning & use, maybe more developers!
|
|
Back to top
|
|
 |
trapster

Joined: 28 Nov 2005 Posts: 1966 Location: Maine, USA
|
Posted: Tue 24 Oct 2006, 18:14 Post subject:
|
|
Sweeeeet!
Will this also work for the pup_xxx.3fs files??
Would be handy for the dual booters.
Thought I'd ask before I try
_________________ trapster
Maine, USA
Asus eeepc 1005HA PU1X-BK
Frugal install:Puppeee4.31 + 1.0, Puppy4.10 + Lupu52
Currently using Puppeee-1.0 AND lupu52 w/ fluxbox
|
|
Back to top
|
|
 |
Pizzasgood

Joined: 04 May 2005 Posts: 6270 Location: Knoxville, TN, USA
|
Posted: Tue 24 Oct 2006, 18:32 Post subject:
|
|
What! Now you people want an Edit-3fs????
If you renamed a .3fs file to .sfs and ran it through, it would sort-of work, but it would convert it to an actual .sfs when it finished. Besides, all you have to do to edit a .3fs is mount it. It's already writable. The only trickyness is that it may not be big enough. As far as I'm aware, there are already tools to enlarge them.
mount whatever.3fs /mnt/data/ -o loop
That will mount whatever.3fs to /mnt/data/. Keep in mind that whatever.3fs needs to be outside Puppy's filesystem or you'll probably get errors.
_________________ 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
|
|
 |
sunburnt

Joined: 08 Jun 2005 Posts: 4006 Location: Arizona, U.S.A.
|
Posted: Tue 24 Oct 2006, 18:52 Post subject:
|
|
trapster; Try the utility I wrote for mounting uncompressed image files, ext2 & ext3, & ISO.
It also does Squash (.fs, .sfs), image.gz & initrd.gz files.
It seems to be fully functional, let me know of any problems...
| Description |
Follow the Wizard's instructions...
|

Download |
| Filename |
xfilemount.gz |
| Filesize |
1.37 KB |
| Downloaded |
1140 Time(s) |
|
|
Back to top
|
|
 |
trapster

Joined: 28 Nov 2005 Posts: 1966 Location: Maine, USA
|
Posted: Tue 24 Oct 2006, 19:13 Post subject:
|
|
sunburnt,
works great!!
I just started playing with puppy211 and this will be handy when I want to grab some stuff from my puppy203.
Thanks!!
_________________ trapster
Maine, USA
Asus eeepc 1005HA PU1X-BK
Frugal install:Puppeee4.31 + 1.0, Puppy4.10 + Lupu52
Currently using Puppeee-1.0 AND lupu52 w/ fluxbox
|
|
Back to top
|
|
 |
vanchutr
Joined: 05 Aug 2006 Posts: 419
|
Posted: Tue 21 Nov 2006, 23:43 Post subject:
Edit-SFS |
|
Pizzasgood wrote:
| Quote: |
When you run it, it will pop open a rox-filer window. Place a .sfs file in it. It must have the .sfs extension. Hit "ready" when it's set. Then it will close the window, think for a little, and present you with a new window featuring the file's contents in an editable form. When you are done editing, click "finished" and it will close the window, think, and present you with a freshly compressed .sfs file. Place that somewhere for safe-keeping before hitting "ready". When ready, clicking the ready button will delete the working directory in the process of cleaning up after itself. Then you're done.
|
I 'd done with Pizzasgood instruction. Program Edit-SFS ran but I don 't saw "new window featuring the file's contents in an editable form". I' d made what mistakes ?
Thank you
|
|
Back to top
|
|
 |
vanchutr
Joined: 05 Aug 2006 Posts: 419
|
Posted: Tue 21 Nov 2006, 23:48 Post subject:
xfilemount |
|
xfilemount is a good program (for me) to mount the systemfile. But I could' t edit something in the system file mounted. (I only could copy files from mounted file, but I could 'd move or remove ... ). That' s wrong?
|
|
Back to top
|
|
 |
sunburnt

Joined: 08 Jun 2005 Posts: 4006 Location: Arizona, U.S.A.
|
Posted: Wed 22 Nov 2006, 07:19 Post subject:
|
|
vanchutr; the utility: xfilemount ONLY mounts files, it doesn't make NEW ones.
ISO, image.gz, & initrd.gz files can be edited, Squash files CAN'T be edited.
Squash files can ONLY be made with the utility: "mksquashfs".
Pizzasgood; How about adding a "right click menu item" to mount & unmount files?
My utility auto picks the correct file type to mount, except for plain
uncompressed image files where it pops up a menu to choose from.
Perhaps my script could be changed to work with the right click context menu in ROX.
It'd be great to mount & unmount all the common file types with a click.
|
|
Back to top
|
|
 |
Pizzasgood

Joined: 04 May 2005 Posts: 6270 Location: Knoxville, TN, USA
|
Posted: Wed 22 Nov 2006, 15:00 Post subject:
|
|
Sounds good, but I don't see where that involves Edit-SFS. You'd probably have to put it in the send-to/open-with area unless you patch the Rox source.
@vanchutr: Which versions of Puppy and the .sfs file were you using? There is a compatibility problem between Puppy 2.10 and all others. 2.10 used a different compression algorithm. You'll have trouble if you run the script in 2.10 on, say, pup_211.sfs, or from within 2.11 on pup_210.sfs.
I don't remember how to access those files from the wrong version, but there was something written about it, I think by MU or GuestToo. You'd probably have to do it by hand, but it's not especially hard. You just mount the file (with the right commands), copy the contents to someplace that's writable, edit, then use the mksquashfs, maybe with some changed parameters.
_________________ 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
|
|
 |
brad_chuck
Joined: 15 Aug 2005 Posts: 284 Location: Appalachian Mountains
|
Posted: Wed 22 Nov 2006, 17:42 Post subject:
Thanks |
|
Thanks! A+ job on this one works great for me.
|
|
Back to top
|
|
 |
pakt

Joined: 04 Jun 2005 Posts: 1089 Location: Sweden
|
Posted: Thu 23 Nov 2006, 14:57 Post subject:
|
|
Thanks, pg - great little tool!
Just had a use for it to replace xorgwizard in pup_212.sfs with my modified one. Worked veerry smoothly. Will put it in with my 'must have' Puppy tools
Oh, almost forgot - it might be helpful if EditSFS puts up a 'Processing, please wait...' window during unpacking & packing as these take some time to do. Good to let the user know what's going on
Thanks again,
Paul
_________________ Testing Puppy since v0.9.2 - my desktop OS since v1.0.7
Running SlaxerPup-4.12 - Puppy with a Slackware 12.2 heart 
|
|
Back to top
|
|
 |
Pizzasgood

Joined: 04 May 2005 Posts: 6270 Location: Knoxville, TN, USA
|
Posted: Fri 24 Nov 2006, 13:14 Post subject:
|
|
Yes, good idea. I stuck it on my to-do list. When I get done upgrading PupBeGone I'll move on to this.
_________________ 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
|
|
 |
tazoc

Joined: 11 Dec 2006 Posts: 1111 Location: Lower Columbia Basin WA US
|
Posted: Fri 21 Sep 2007, 10:43 Post subject:
Edit-SFS-LHP.pet updated interface/error checks Subject description: & CopyToEdit-SFS Rox right-click access for .sfs types |
|
Edit .sfs squash files in LighthousePup 215 and (hopefully) in official Puppy 2.xx also, but I haven't been able to check all versions. Additional testing/review before general release (if desirable) might be worthwhile. Please post here if you find bugs or can improve on it.
Edit-SFS-LHP 2007-09-20 TazOC - Based on Edit-SFS by Pizzasgood
Added some validity checks, user feedback and logging for the error conditions I've come across so far. Log window now opens with app and displays output during processing, start to finish. Not as much as I'd like, but better than before. Custom error codes 64-68 logged and included with exit command at completion of shell script.
Does not allow editing more than one SFS at a time. Now uses mksquashfs-gzip, if present for improved version compatibility. Currently testing in both LIghthouse and Puppy 2.17.1.
.desktop file for XDG Menu | System | System Memory | Edit-SFS-LHP
/usr/local/bin/CopyToToEdit-SFS is symlinked to Rox-Filer's OpenWith/SendTo Folder for mime-types corresponding to .sfs. It makes sure that Edit-SFS isn't already running, copies the .sfs file, and passes control to Edit-SFS-LHP, which opens with the Filer window already displaying the new copy of the .sfs file.
In frugal install PUPMODE=12, if /mnt/home is ext2, ext3, reiserfs or reiser4, a SymLink from /tmp/tmp-starting-dir to
initrd/mnt/dev_save/tmp is used so that larger SFS files can be accommodated, or so that one can edit a larger file than can be extracted and rebuilt within a pup_save file. As the code is currently in this version, to use RAM for editing the .sfs file--instead of the /mnt/home drive, either use Edit-SFS-LHP (without CopyToEdit-SFS,) or boot into LiveCD mode.
-TazOC
 |
| Description |
*** Beta/for testing only *** 2007-09-20 TazOC Includes both Edit-SFS-LHP and CopyToEdit-SFS
|

Download |
| Filename |
Edit-SFS-LHP.pet |
| Filesize |
32.19 KB |
| Downloaded |
837 Time(s) |
_________________ lhpup.org Lighthouse 64 6.01
|
|
Back to top
|
|
 |
Turpin

Joined: 16 May 2007 Posts: 117
|
Posted: Mon 14 Apr 2008, 12:57 Post subject:
|
|
| Code: |
It appears the .sfs mount or extraction was unsuccessful. Somtimes this is because there is insufficient
free space; about 3-4 times the size of the .sfs file is recommended. Sometimes the first mount
operation will fail and trying again will succeed. Otherwise the .sfs format may not be compatible
with this program. Try another .sfs file or post your log output at
www.murga-linux.com/puppy/viewtopic.php?t=12112
|
At the time I get this message I have 3500 MB of space free. I have a 2GB swap partition, a bit over 4GB save file, and 1GB ram, trying to merge two pup_301.sfs files, Nearly Office Puppy and PCPuppyOS. Especially trying to copy the PCPuppy files over the NOP files, because I think that will still give me most of the XFCE optimizations while keeping the PCPuppy's scripts intact. I think it might boot if I could successfully complete the process. Any ideas on how I could get around this problem? Oh, I just now read the compatibility statement at the end. Maybe that's the problem. Dangit. Maybe I'll try this sfs Merge util I was reading about. Or was it 2fsMerge. I'll find out in a minute or two.
|
|
Back to top
|
|
 |
|
|
Page 1 of 2 [25 Posts] |
Goto page: 1, 2 Next |
|
|
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
|