Page 1 of 1

Edit initrd.gz (SOLVED)

Posted: Mon 28 Oct 2013, 11:55
by nic007
I'm using this (the GUI one). My resulting initrd after the rebuit is only a few bytes. Can't be right. Anyone been using this and got it working?

Posted: Mon 28 Oct 2013, 12:09
by bigpup
More info please.
What version of Puppy?
What edit GUI program?
Maybe link to program?

Posted: Mon 28 Oct 2013, 12:16
by saintless
Same question from nic007 is also here:
http://murga-linux.com/puppy/viewtopic.php?t=72842
saintless wrote:
nic007 wrote:This utility is not working for me. It opens 4 files/scripts to edit. Then I do this, save it but the rebuilt initrd.gz is only a few bytes big. Surely this can't be right?
Quick test with ver.1.4 and it works fine.
Open and read the help file.
initrd.gz file has to be in /root, otherwise you will get only few bytes big initrd.gz
If you still have troubles here is how you can edit initrd from command line:
http://www.murga-linux.com/puppy/viewtopic.php?t=24899

Cheers

Posted: Mon 28 Oct 2013, 12:25
by nic007
saintless wrote:Same question from nic007 is also here:
http://murga-linux.com/puppy/viewtopic.php?t=72842
saintless wrote:
nic007 wrote:This utility is not working for me. It opens 4 files/scripts to edit. Then I do this, save it but the rebuilt initrd.gz is only a few bytes big. Surely this can't be right?
Quick test with ver.1.4 and it works fine.
Open and read the help file.
initrd.gz file has to be in /root, otherwise you will get only few bytes big initrd.gz
If you still have troubles here is how you can edit initrd from command line:
http://www.murga-linux.com/puppy/viewtopic.php?t=24899

Cheers
Ah, thanks Saintless. I didn't see the reply there.

Posted: Mon 28 Oct 2013, 12:29
by rg66
If you have edit-initrd.sh in /usr/sbin, from the command line use:

Code: Select all

/usr/sbin/edit-initrd.sh /path-to/initrd.gz

Posted: Mon 28 Oct 2013, 12:32
by nic007
Thanks guys, I copied the file to the root directory and it works.