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 Sun 23 Nov 2014, 13:25
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
Initrd.gz Editor - simple GUI tool
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 2 [22 Posts]   Goto page: Previous 1, 2
Author Message
sc0ttman


Joined: 16 Sep 2009
Posts: 2386
Location: UK

PostPosted: Sun 22 May 2011, 04:48    Post subject:  

updated code in main post - now works as I want it... considered mroe or less finished.
Thanks for the help everyone Smile (I know it could be improved and I appreciate the suggestions..)

EDIT: just a quick question: I've tried many of the examples on this forum to open the initrd.gz of puppy2/214X, but get cpio errors, many lines such as :

Code:
cpio: Malformed number ÁRûB5
cpio: Malformed number ÁRûB5Ú
cpio: Malformed number RûB5ڐ
cpio: Malformed number ûB5ڐ¬
cpio: Malformed number B5ڐ¬¬
cpio: warning: skipped 165418 bytes of junk
cpio: warning: archive header has reverse byte-order
sh: line 1:  9935 Broken pipe             zcat "$FILE"


So what do I need to open the initrd.gz of 214X or puppy 2/3, whatever? What's the difference?

_________________
Akita Linux, VLC-GTK, Pup Search, Pup File Search
Back to top
View user's profile Send private message 
sc0ttman


Joined: 16 Sep 2009
Posts: 2386
Location: UK

PostPosted: Sun 22 May 2011, 17:53    Post subject:  

To answer myself, I think the answer is here: http://www.murga-linux.com/puppy/viewtopic.php?p=293254#293254

Different archive formats after puppy 2... How can we detect the archive type, before trying to extract it?

_________________
Akita Linux, VLC-GTK, Pup Search, Pup File Search
Back to top
View user's profile Send private message 
Dougal


Joined: 19 Oct 2005
Posts: 2505
Location: Hell more grotesque than any medieval woodcut

PostPosted: Mon 23 May 2011, 10:19    Post subject:  

sc0ttman wrote:
How can we detect the archive type, before trying to extract it?

Code:
file -z $File

_________________
What's the ugliest part of your body?
Some say your nose
Some say your toes
But I think it's your mind
Back to top
View user's profile Send private message 
sc0ttman


Joined: 16 Sep 2009
Posts: 2386
Location: UK

PostPosted: Tue 24 May 2011, 07:12    Post subject:  

Dougal wrote:
sc0ttman wrote:
How can we detect the archive type, before trying to extract it?

Code:
file -z $File

you da man! so glad you hover around on these forums!
a constant time saver! Cool

_________________
Akita Linux, VLC-GTK, Pup Search, Pup File Search
Back to top
View user's profile Send private message 
sc0ttman


Joined: 16 Sep 2009
Posts: 2386
Location: UK

PostPosted: Wed 25 May 2011, 02:46    Post subject:  

I will update this tool today, so that it checks the archive type and runs the correct unpacking/packing commands...
Then done!

_________________
Akita Linux, VLC-GTK, Pup Search, Pup File Search
Back to top
View user's profile Send private message 
sc0ttman


Joined: 16 Sep 2009
Posts: 2386
Location: UK

PostPosted: Thu 26 May 2011, 19:15    Post subject:  

updated main post...

initrd-editor can now edit initrd.gz files from puppy 1 and later Smile

thanks for the help peeps

_________________
Akita Linux, VLC-GTK, Pup Search, Pup File Search
Back to top
View user's profile Send private message 
sc0ttman


Joined: 16 Sep 2009
Posts: 2386
Location: UK

PostPosted: Fri 27 May 2011, 12:58    Post subject:  

updated (last time)

better CLI options:

- give path to initrd.gz in CLI to skip the GUI completely
- give the save directory where your new initrd.gz will end up

(ready to be integrated into woofy Smile )

_________________
Akita Linux, VLC-GTK, Pup Search, Pup File Search
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 2 of 2 [22 Posts]   Goto page: Previous 1, 2
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
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.0583s ][ Queries: 12 (0.0108s) ][ GZIP on ]