[SOLVED] geexbox: cant extract files from initrd.gz
Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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]$
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
^ 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
.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.