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 Sat 25 Oct 2014, 13:40
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 Posts_count   Goto page: Previous 1, 2
Author Message
sc0ttman


Joined: 16 Sep 2009
Posts: 2385
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: 2385
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: 2385
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: 2385
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: 2385
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: 2385
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:   Sort by:   
Page 2 of 2 Posts_count   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:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0621s ][ Queries: 12 (0.0141s) ][ GZIP on ]