| Author |
Message |
Flash
Official Dog Handler

Joined: 04 May 2005 Posts: 9848 Location: Arizona USA
|
Posted: Wed 23 Mar 2011, 00:00 Post subject:
How to edit initrd.gz from a Puppy iso? Subject description: So saved sessions load faster from multisession Puppy |
|
I thought I'd try jamesbond's suggestion from here, but I didn't get very far. Intending to edit initrd.gz from Puppy Luci 256, then burn the changed iso to a multisession DVD for testing, I first copied the iso to /tmp then clicked on it to open it in Rox. When I clicked on initrd.gz, a window opened offering to decompress the zipped file, but clicking "yes" in that window only caused the window to close. Initrd.gz stayed the same. Any suggestions as to how to proceed?
| Description |
|
| Filesize |
73.61 KB |
| Viewed |
1097 Time(s) |

|
Last edited by Flash on Fri 25 Mar 2011, 10:35; edited 1 time in total
|
|
Back to top
|
|
 |
James C

Joined: 26 Mar 2009 Posts: 4742 Location: Kentucky
|
Posted: Wed 23 Mar 2011, 00:10 Post subject:
|
|
Member jrb has some tools here
http://www.murga-linux.com/puppy/viewtopic.php?p=453164#453164
to edit the initrd.gz and all kind of fun stuff. Used them myself to do some tweaking.
The first post explains how to open up the initrd.gz.
HTH.
|
|
Back to top
|
|
 |
Flash
Official Dog Handler

Joined: 04 May 2005 Posts: 9848 Location: Arizona USA
|
Posted: Wed 23 Mar 2011, 00:14 Post subject:
|
|
That was quick. Thanks!
|
|
Back to top
|
|
 |
James C

Joined: 26 Mar 2009 Posts: 4742 Location: Kentucky
|
Posted: Wed 23 Mar 2011, 00:16 Post subject:
|
|
| Flash wrote: | That was quick. Thanks!  |
Just happened to be in the neighborhood.......
|
|
Back to top
|
|
 |
Karl Godt

Joined: 20 Jun 2010 Posts: 2675 Location: Kiel,Germany
|
Posted: Wed 23 Mar 2011, 10:42 Post subject:
|
|
when you click a gz file
pupzip
starts to run
On my installs it only showed up once and if I clicked another gz then it ran in the background .
I think I ve managed the little wired code somewhere on one install but still have to check it more . There are many days I only open one gz file .
You can of course check if `pupzip` and its `xmessage` are running in the background using `top` .
Simply `kill $PID` helps to kill it . How to get it to foreground I've no idea; perhaps `nice` or some kill -s RESTART can do it .
But I've just tested it : it works when you copy the file straight out of the /tmp/mnt* directory to /tmp
| Code: | | chmod 0777 /mnt/+tmp+dpup-001.iso |
| Quote: | | chmod: changing permissions of `/mnt/+tmp+dpup-001.iso': Read-only file system |
|
|
Back to top
|
|
 |
Flash
Official Dog Handler

Joined: 04 May 2005 Posts: 9848 Location: Arizona USA
|
Posted: Thu 24 Mar 2011, 00:02 Post subject:
|
|
I followed jrb's instructions for editing the initrd.gz file. They appeared to work. I burned a new DVD-RW with the modified initrd.gz in the iso and I'll try it out asap.
|
|
Back to top
|
|
 |
Flash
Official Dog Handler

Joined: 04 May 2005 Posts: 9848 Location: Arizona USA
|
Posted: Fri 25 Mar 2011, 10:33 Post subject:
|
|
The modification I made to initrd.gz:
| jamesbond wrote: | | Flash wrote: | | http://www.murga-linux.com/puppy/viewtopic.php?p=506476#506476 This may not have anything to do directly with aufs, but the order in which multisession Puppy boots puzzles me. It loads the last saved session into RAM first, then the next-to-last, etc., until at the end it finally loads the main sfs for that version of Puppy. I guess it doesn't matter which order the saved sessions are loaded if aufs can combine them all at the end. It just seems like loading everything in the order it was created would be more efficient. For one thing, the DVD reader must continually move back along the spiral to get to the beginning of the preceding file. Surely that slows down the boot process. Is there a reason this boot order must be followed? | Looking at the code, there isn't any particular reason why this has to be so. The order is based strictly on (reversed) directory list order, and the code that does the copying does guard against copying over older files over newer ones. So, in theory at least, one can load the files in any order - including first-to-last. You can suggest this to Barry - the relevant code is | Code: | | BKFOLDERS="`ls -1 -r $CDMNTPT | grep '^20[0-9][0-9]'`" | in /init, inside initrd.gz. In Wary 5.1.1, this is line 1125. The "-r" there makes reverse order (ie last-to-first, because folder names are sorted alphabetically). To make it load first-to-last, just drop that "-r" and make the code to | Code: | | BKFOLDERS="`ls -1 $CDMNTPT | grep '^20[0-9][0-9]'`" |
| seems to work, although not quite as I had hoped. At least so far it has had no ill effect.
Now, when I boot my multisession Puppy DVD the saved sessions load from the DVD in the order they were saved (oldest first, newest last), but the big kahuna, luci_256.sfs, still loads after all the saved sessions have loaded. I don't see why it shouldn't load before the saved sessions. In fact, it seems to me that would be better.
|
|
Back to top
|
|
 |
Flash
Official Dog Handler

Joined: 04 May 2005 Posts: 9848 Location: Arizona USA
|
Posted: Sun 27 Mar 2011, 23:42 Post subject:
|
|
Attached is a script for editing init.gz files, courtesy of forum member 8-bit. I haven't tried it.
| Description |
Utility to uncompress, edit, and recompress init.gz files
|

Download |
| Filename |
editinit.tar.gz |
| Filesize |
260 Bytes |
| Downloaded |
111 Time(s) |
|
|
Back to top
|
|
 |
8-bit

Joined: 03 Apr 2007 Posts: 3012 Location: Oregon
|
Posted: Sun 27 Mar 2011, 23:47 Post subject:
|
|
I just want to make it clear that this editinit script was in my collection of files I had downloaded.
I had no part in the creation of it. It is MU's creation and can be found in the same thread link ttuuxxx posted in this thread.
I just passed it along to Flash as a courtesy.
Last edited by 8-bit on Mon 28 Mar 2011, 03:34; edited 1 time in total
|
|
Back to top
|
|
 |
ttuuxxx

Joined: 05 May 2007 Posts: 10720 Location: Ontario Canada,Sydney Australia
|
Posted: Mon 28 Mar 2011, 00:03 Post subject:
Re: How to edit initrd.gz from a Puppy iso? Subject description: So saved sessions load faster from multisession Puppy |
|
| Flash wrote: | | I thought I'd try jamesbond's suggestion from here, but I didn't get very far. Intending to edit initrd.gz from Puppy Luci 256, then burn the changed iso to a multisession DVD for testing, I first copied the iso to /tmp then clicked on it to open it in Rox. When I clicked on initrd.gz, a window opened offering to decompress the zipped file, but clicking "yes" in that window only caused the window to close. Initrd.gz stayed the same. Any suggestions as to how to proceed? |
for years I've been using Pizzasgood method http://www.murga-linux.com/puppy/viewtopic.php?search_id=1598168876&t=25645
it explains that there are 2 types depending on which puppy linux your using.
ttuuxxx
_________________ http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games

|
|
Back to top
|
|
 |
|