LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-24-2009, 09:11 PM   #1
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
geexbox: cant extract files from initrd.gz


hi, i am trying to modify a geexbox install but i cant extract the initrd.gz file; heres what i tried:
Code:
[fedora@localhost fedora]$ mkdir geexbox; cd geexbox
[fedora@localhost geexbox]$ cp -r /media/GEEXBOX/* .
[fedora@localhost geexbox]$ ll
total 4536
drwxr-xr-x 3 fedora fedora    4096 2009-06-24 21:54 boot
dr-xr-xr-x 9 fedora fedora    4096 2009-06-24 21:54 GEEXBOX
-r--r--r-- 1 fedora fedora 2806819 2009-06-24 21:54 initrd.gz
drwx------ 2 fedora fedora    4096 2009-06-24 21:54 lost+found
-r--r--r-- 1 fedora fedora 1814224 2009-06-24 21:54 vmlinuz
[fedora@localhost geexbox]$ file initrd.gz
initrd.gz: data
[fedora@localhost geexbox]$ gunzip initrd.gz

gzip: initrd.gz: not in gzip format

[fedora@localhost geexbox]$ mkdir temp
[fedora@localhost geexbox]$ sudo /sbin/losetup /dev/loop9 initrd.gz
[fedora@localhost geexbox]$ sudo mount /dev/loop9 temp
mount: you must specify the filesystem type
[fedora@localhost geexbox]$ sudo mount -t cramfs /dev/loop9 temp
mount: wrong fs type, bad option, bad superblock on /dev/loop9,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so
# -t ext2 ext3 vfat sqaushfs... also doesnt work
[fedora@localhost geexbox]$ sudo mount -t ramfs  /dev/loop9 temp
[fedora@localhost geexbox]$ ll temp
total 0
[fedora@localhost geexbox]$ sudo umount temp
[fedora@localhost geexbox]$ sudo mount   initrd.gz temp -oloop,ro
mount: you must specify the filesystem type
[fedora@localhost geexbox]$ sudo mount -t cramfs  initrd.gz temp -oloop,ro
mount: wrong fs type, bad option, bad superblock on /dev/loop6,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

[fedora@localhost geexbox]$ sudo mount -t ramfs  initrd.gz temp -oloop,ro
[fedora@localhost geexbox]$ ll temp
total 0
[fedora@localhost geexbox]$ sudo umount temp
[fedora@localhost geexbox]$ cd temp
[fedora@localhost temp]$ cpio -id < ../initrd.gz
...
cpio: Malformed number 
cpio: warning: skipped 37026 bytes of junk
cpio: �Z��1@4�(l�1@MS����H�V�1�-l����7K��蔇b	g��_�hAh: unknown file type
cpio: premature end of file
[fedora@localhost temp]$ ll
total 0
[fedora@localhost geexbox]$
any ideas would be appreciated.

Last edited by schneidz; 06-24-2009 at 09:19 PM.
 
Old 06-24-2009, 10:40 PM   #2
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
Quote:
gzip: initrd.gz: not in gzip format
this is one file that has been compressed of raw data. there is nothing to extract. it is an initrd.img yes an image that has been compressed. you could rename it initrd.img and linux will treat it the same. gz format . gz format is built into the kernel so it can read the image.
good luck.
you really need to be much more clear about your goal. when asking a question.
I want to make a custom initrd.img . I want a custom kernel. I want modify my install but that has nothing to do with the kernel and it's initrd.img
good luck on installing a gnu file system to you hard drive so your linux kernel can boot it and then load the modules from the initrd.imag.
hang in there . learning curve time
 
Old 06-24-2009, 11:54 PM   #3
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Original Poster
Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
i did the following and i got further:
Code:
[fedora@localhost temp]$ mv initrd.gz initrd.lzma
[fedora@localhost temp]$ unlzma initrd.lzma
[fedora@localhost temp]$ ll
total 51160
-r--r--r-- 1 fedora fedora 29941760 2009-06-25 00:34 bin.tar
-r--r--r-- 1 fedora fedora  8584192 2009-06-25 00:34 initrd
drwxr-xr-x 5 fedora fedora     4096 2009-06-15 18:04 usr
-r--r--r-- 1 fedora fedora 13783040 2009-06-25 00:34 X.tar
[fedora@localhost temp]$ file initrd
initrd: ASCII cpio archive (SVR4 with no CRC)
[fedora@localhost temp]$ mkdir initrd-extract; cd initrd-extract; cpio -id < ../initrd
thanks,

Last edited by schneidz; 06-28-2009 at 06:15 PM.
 
Old 06-25-2009, 07:53 PM   #4
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Original Poster
Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
it would be nice if i can get sshfs installed on geexbox; anyone got any bright ideas how ?
 
Old 06-26-2009, 06:59 AM   #5
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
open a terminal asume root type
Quote:
yum install fuse-sshfs
if you do not have yum instlled wich I could never think of a fedora with out it.
urpmi yum.
 
Old 06-28-2009, 06:10 PM   #6
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Original Poster
Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
^ thanks, i actually already have it installed on my fedora machine.

i dont know what geexbox is based on (maybe knoppix/ debian); but i would like to have sshfs installed on my geexbox machine. it doesnt seem like the developers included a facility to install new stuff.

i have tried xbmc which is debian based and was able to do
Code:
sudo apt-get install ssh;sudo apt-get install sshfs
.
and all is good in the world for rite now; except that i am wondering if there is a way to automatically mount directories under $HOME rite after boot-up.

edit: put the sshfs command in the last line of .profile

Last edited by schneidz; 06-29-2009 at 02:48 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cannot extract initrd.gz B-Boy Linux - Newbie 6 01-19-2009 07:05 AM
Adding files to the initrd Curtor Ubuntu 1 09-12-2008 10:36 AM
How do I extract files from .daa files under linux? izquierdista Linux - Software 8 04-09-2007 09:37 PM
where are the files: vmlinux, initrd.gz ??? kate boardman Debian 1 09-05-2005 07:47 PM
extract files ust Linux - General 1 08-05-2005 01:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration