Author |
Message |
ravensrest

Joined: 22 Feb 2008 Posts: 358 Location: Grants Pass, Oregon
|
Posted: Fri 16 May 2008, 09:59 Post subject:
pet2sfs converter? Subject description: change pet files to squashed file systems |
|
Does anyone know of a pet to sfs converter -- or care to write one?
BS
|
Back to top
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13648 Location: Karlsruhe, Germany
|
Posted: Fri 16 May 2008, 10:56 Post subject:
|
|
Install SFS-Combiner:
http://www.murga-linux.com/puppy/viewtopic.php?t=26097
And save the following code as /usr/local/SFS-Combiner/pet2sfs
Make it executable.
Drag it on your desktop.
Now you can drag a PET on that Icon, to create a SFS from it using SFS-Combiner.
Code: | #!/bin/bash
v=`cat /etc/puppyversion`
rm -rf /tmp/pet2sfs
mkdir /tmp/pet2sfs
mkdir /tmp/pet2sfs/pet
cd /tmp/pet2sfs
mksquashfs /tmp/pet2sfs/pet Empty.sfs
cd /tmp/pet2sfs/pet
tar -xzvf "$1"
rox -d /tmp/pet2sfs &
sleep 2 && xmessage -center -buttons 'close this window whenever you like' "
Drag Empty.sfs on the list in SFS-Combiner.
Click 'create new_$v.sfs'
Click on the folder 'pet' and the folder in it.
Drag the now visible folders (/usr , /root and so on) from the extracted .pet
to a second filemanager-window with the temporary SFS-files.
Then click okay to continue...
" &
/usr/local/SFS-Combiner/SFS-Combiner
cd
sync
rm -rf /tmp/pet2sfs
|
_________________ my recommended links
|
Back to top
|
|
 |
prit1

Joined: 03 Jan 2008 Posts: 538 Location: Los Angeles
|
Posted: Fri 16 May 2008, 12:14 Post subject:
|
|
Wow. MU you are the XXX2YYY man !!! Convert anything 2 anything - contact MU ...
Is there a script to convert Windows 2 Linux ?? LOL
What about Sfs 2 pet ?
|
Back to top
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13648 Location: Karlsruhe, Germany
|
Posted: Fri 16 May 2008, 12:28 Post subject:
|
|
hm, if I just could convert missing sleep to money or so
Sunburnt just had mentioned a more advanced, older sfs-combiner.
I wonder, why it never got as popular as mine.
Maybe it was just too early.
He will have a look again at one issue he had with it, then we might get a great new tool
My small addon above is just a "quick-hack", there miss checks, if there is enough free space and such.
But for advanced users, it should be ok for the moment.
[url]What about Sfs 2 pet ?[/url]
No, please not, must sleep
I'm testing and compiling stuff since 23 hours now...
But just click on a sfs to mount it, then run dir2pet with the mounted folder. Simple, too.
Mark
_________________ my recommended links
|
Back to top
|
|
 |
ravensrest

Joined: 22 Feb 2008 Posts: 358 Location: Grants Pass, Oregon
|
Posted: Fri 16 May 2008, 18:27 Post subject:
re: pet2sfs converter |
|
Thanks, MU, I'll give it a shot.
BS
|
Back to top
|
|
 |
dinky

Joined: 19 Jan 2008 Posts: 699
|
Posted: Sun 18 May 2008, 19:57 Post subject:
|
|
Great idea MU, but not quite there. Everything runs fine following your directions in the xmessage until:
Quote: | Drag the now visible folders (/usr , /root and so on) from the extracted .pet
to a second filemanager-window with the temporary SFS-files. |
This step completed, I follow the next directions:
Quote: | Drag the now visible folders (/usr , /root and so on) from the extracted .pet
to a second filemanager-window with the temporary SFS-files. |
Or try to... I can't click on "Ok", because that option doesn't exist. I can click on
Quote: | Create the new sfs |
again, but that doesn't give me any joy... Bug to be sorted, or am I doing something wrong. Love the idea, how do I make it work?
|
Back to top
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13648 Location: Karlsruhe, Germany
|
Posted: Sun 18 May 2008, 23:50 Post subject:
|
|
you were missing the dialog, to add additional files.
It had to be activated in a config-file.
I repackaged the dotpup now, you should get the dialog now by default.
Then you have the "okay"-button
Please install again:
http://dotpups.de/puppy3/dotpups/System_Utilities/SFS-Combiner.pup
It also includes the "pet2sfs" script now, it just must be dragged on the desktop.
Mark
_________________ my recommended links
|
Back to top
|
|
 |
dinky

Joined: 19 Jan 2008 Posts: 699
|
Posted: Mon 19 May 2008, 00:46 Post subject:
|
|
Almost there. Works fine, though the second file manager window, SFS-TEMP/tempfiles is only visible AFTER clicking ok, which means I need to manually navigate to that folder, then copy the files into it. Is this what you intended?
|
Back to top
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13648 Location: Karlsruhe, Germany
|
Posted: Mon 19 May 2008, 00:54 Post subject:
|
|
no, not intended.
But the script was just a quick addon.
To open the folder automatically, I had to modify the program itself, I just had no time for that yet.
As sunburnt is working on an own, advanced version, I actually will not add modifications, as this program might get obsolete in some days.
Mark
_________________ my recommended links
|
Back to top
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13648 Location: Karlsruhe, Germany
|
Posted: Mon 19 May 2008, 01:03 Post subject:
|
|
ok, updated the dotpup.
It now opens the folder with the tempfiles, so that you can drag files there immedeatly
Mark
_________________ my recommended links
|
Back to top
|
|
 |
dinky

Joined: 19 Jan 2008 Posts: 699
|
Posted: Mon 19 May 2008, 20:33 Post subject:
|
|
Fantastic MU, really great piece of work, now works perfectly. I'm looking forward to Sunburnt's code, it would also be great to be able to do this without a linux partition. THis is a major, major advancement of puppy, and I think will have very far reaching effects. Long love puppy!
~dinky
|
Back to top
|
|
 |
vtpup

Joined: 15 Oct 2008 Posts: 1208 Location: Republic of Vermont
|
Posted: Fri 20 Feb 2009, 22:04 Post subject:
|
|
Tried this method out w/a 4.1.2 new kernel Puppy, but had problems:
I drag the .pet onto pets2fs, which is located on the desktop.
A small ROX window opens showing a pet folder and Empty.sfs, as well as another window with a text explanation of the procedure to follow.
However, before I can do anything, another message pops up saying the file has been deleted or moved. Closing that message also closes the ROX window with the Empty.sfs and I'm left with just the procedure message.
I also looked at the sunburnt thread, but did not see that a pet-to-sfs function had been written yet.
Is there some other way of creating an sfs from a pet that I've missed?
Apologies if I'm going over old ground. I see the last update here was in 2007. Seems likely there is some other method already. I just haven't found it in forum searches.
|
Back to top
|
|
 |
jrb

Joined: 11 Dec 2007 Posts: 1103 Location: Smithers, BC, Canada
|
Posted: Sat 21 Feb 2009, 01:23 Post subject:
|
|
vtpup, here's one way,
Place the foo.pet on a ext2 or ext3 partition. Rename to foo.tgz. Click on it and extract. This will create folder /foo/. Now run dir2sfs foo and you will have your foo.sfs.
You should however check for a pinstall.sh in the /foo/ folder. Usually they build symlinks. You will have to duplicate these symlinks in the proper folder in /foo/. Say you need a symlink from /usr/bin/foo to /usr/local/bin/, open the /foo/ folder twice in ROX. In one window go to /usr/bin in the other go to /usr/local/bin (you may have to create it). Drag /usr/bin/foo to /usr/local/bin and "Link (relative)".
The other thing to check is icons. /foo/foo.xpm should be placed in /foo/usr/local/lib/X11/mini-icons before you build your .sfs
Whew, that's a lot of foo's. Hope I made myself clear?
|
Back to top
|
|
 |
reckrhodes
Joined: 30 May 2007 Posts: 116
|
Posted: Sat 21 Feb 2009, 10:24 Post subject:
|
|
Hello!
I think there is a utility program to convert from package.pet to package.tar.gz. that is called pet2tgz
in the # (command prompt) type the following
1. pet2tgz package.pet
then it will give you a filename called package.tar.gz
click on that file called package.tar.gz and select all then extract all of them. Then it will show a directory called package
then type the next command which is dir2sfs
2. dir2sfs package
then that's it.
I tried this several times. I hope this would help.
|
Back to top
|
|
 |
vtpup

Joined: 15 Oct 2008 Posts: 1208 Location: Republic of Vermont
|
Posted: Sun 22 Feb 2009, 17:28 Post subject:
|
|
Thanks jrb and reckrhodes. I remember reading about the manual methods once before. Thanks for the clear specifics.
I'm still interested in the simplicity of action in mu's app, seems like a cool way to do it, I was wondering if there was something wrong with my system, or method of using it. Maybe to clear that up I'll try it on a new pfix=ram session.
|
Back to top
|
|
 |
|