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 Wed 17 Sep 2014, 07:37
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
How to edit initrd.gz from a Puppy iso?
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [10 Posts]  
Author Message
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 11064
Location: Arizona USA

PostPosted: 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?
Can't decompress initrd.gz.jpg
 Description   
 Filesize   73.61 KB
 Viewed   1298 Time(s)

Can't decompress initrd.gz.jpg


Last edited by Flash on Fri 25 Mar 2011, 10:35; edited 1 time in total
Back to top
View user's profile Send private message 
James C


Joined: 26 Mar 2009
Posts: 5752
Location: Kentucky

PostPosted: 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. Smile Used them myself to do some tweaking.

The first post explains how to open up the initrd.gz.
HTH.
Back to top
View user's profile Send private message 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 11064
Location: Arizona USA

PostPosted: Wed 23 Mar 2011, 00:14    Post subject:  

That was quick. Thanks! Smile
Back to top
View user's profile Send private message 
James C


Joined: 26 Mar 2009
Posts: 5752
Location: Kentucky

PostPosted: Wed 23 Mar 2011, 00:16    Post subject:  

Flash wrote:
That was quick. Thanks! Smile


Just happened to be in the neighborhood....... Laughing
Back to top
View user's profile Send private message 
Karl Godt


Joined: 20 Jun 2010
Posts: 3972
Location: Kiel,Germany

PostPosted: 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
View user's profile Send private message Visit poster's website 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 11064
Location: Arizona USA

PostPosted: 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
View user's profile Send private message 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 11064
Location: Arizona USA

PostPosted: 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
View user's profile Send private message 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 11064
Location: Arizona USA

PostPosted: 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.
editinit.tar.gz
Description  Utility to uncompress, edit, and recompress init.gz files
gz

 Download 
Filename  editinit.tar.gz 
Filesize  260 Bytes 
Downloaded  168 Time(s) 
Back to top
View user's profile Send private message 
8-bit


Joined: 03 Apr 2007
Posts: 3368
Location: Oregon

PostPosted: 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
View user's profile Send private message 
ttuuxxx


Joined: 05 May 2007
Posts: 10750
Location: Ontario Canada,Sydney Australia

PostPosted: 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 Smile

Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [10 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
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.0760s ][ Queries: 13 (0.0068s) ][ GZIP on ]