Author Topic: Initrd.bin File  (Read 3167 times)

bam

  • Hero Member
  • *****
  • Posts: 1213
    • View Profile
    • http://thegrinder.ws
Initrd.bin File
« on: July 26, 2006, 03:51:51 am »
How can one extract the files from this? Tried mounting it as a cramfs or sqaushfs, no-joy. Any other ideas?
SL-C3100 current: Stock/Tetsu 18h
Socket BT CF Card
Linksys WCF-12 802.11b/Cheapie USB Ethernet

The Grinder

adf

  • Hero Member
  • *****
  • Posts: 2807
    • View Profile
    • http://
Initrd.bin File
« Reply #1 on: July 26, 2006, 03:54:57 am »
aybe anm
Quote
How can one extract the files from this? Tried mounting it as a cramfs or sqaushfs, no-joy. Any other ideas?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=136439\"][{POST_SNAPBACK}][/a][/div]
maybe something along the lines of an iso buster? is it maybe .bin as in cd image stuff?
**3100 Zubuntu Jaunty,(working on Cacko dualboot), 16G A-Data internal CF, 4G SD, Ambicom WL-1100C Cf, linksys usb ethernet,  BelkinF8T020 BT card, Belkin F8U1500-E Ir kbd, mini targus usb mouse, rechargeble AC/DC powered USB hub, psp cables and battery extenders.

**6000l  Tetsuized Sharprom, installed on internal flash only 1G sd, 2G cf

bam

  • Hero Member
  • *****
  • Posts: 1213
    • View Profile
    • http://thegrinder.ws
Initrd.bin File
« Reply #2 on: July 26, 2006, 05:41:51 am »
hmmm dunno, its the cacko initrd.bin file.
SL-C3100 current: Stock/Tetsu 18h
Socket BT CF Card
Linksys WCF-12 802.11b/Cheapie USB Ethernet

The Grinder

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Initrd.bin File
« Reply #3 on: July 26, 2006, 06:24:42 am »
Try jffs2 then - search the forum for "mount AND jffs2"

Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

bam

  • Hero Member
  • *****
  • Posts: 1213
    • View Profile
    • http://thegrinder.ws
Initrd.bin File
« Reply #4 on: July 26, 2006, 02:31:23 pm »
oh yea that makes sense
SL-C3100 current: Stock/Tetsu 18h
Socket BT CF Card
Linksys WCF-12 802.11b/Cheapie USB Ethernet

The Grinder

iczer3

  • Jr. Member
  • **
  • Posts: 59
    • View Profile
Initrd.bin File
« Reply #5 on: July 26, 2006, 09:26:44 pm »
Dear bam,

(using koen's way of saying it) lardman and adf is bullshit.
initrd.bin is similar to initrd.img used in normal linux boot.
It is a gzipped image. To mount it, first gunzip, plus
kernel have to have initrd support, then use this command

mount -t ext2 -o loop initrd /mnt

to mount it.

br,

felix.

bam

  • Hero Member
  • *****
  • Posts: 1213
    • View Profile
    • http://thegrinder.ws
Initrd.bin File
« Reply #6 on: July 26, 2006, 11:44:25 pm »
tried to 'gunzip -d initrd.bin' = no-joy, any other ideas?
SL-C3100 current: Stock/Tetsu 18h
Socket BT CF Card
Linksys WCF-12 802.11b/Cheapie USB Ethernet

The Grinder

adf

  • Hero Member
  • *****
  • Posts: 2807
    • View Profile
    • http://
Initrd.bin File
« Reply #7 on: July 26, 2006, 11:59:05 pm »
Quote
tried to 'gunzip -d initrd.bin' = no-joy, any other ideas?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=136563\"][{POST_SNAPBACK}][/a][/div]
mount it as a disk image? change the suffux to .img?
**3100 Zubuntu Jaunty,(working on Cacko dualboot), 16G A-Data internal CF, 4G SD, Ambicom WL-1100C Cf, linksys usb ethernet,  BelkinF8T020 BT card, Belkin F8U1500-E Ir kbd, mini targus usb mouse, rechargeble AC/DC powered USB hub, psp cables and battery extenders.

**6000l  Tetsuized Sharprom, installed on internal flash only 1G sd, 2G cf

bam

  • Hero Member
  • *****
  • Posts: 1213
    • View Profile
    • http://thegrinder.ws
Initrd.bin File
« Reply #8 on: July 27, 2006, 02:53:19 am »
hmmm, didnt think of that....duh!
SL-C3100 current: Stock/Tetsu 18h
Socket BT CF Card
Linksys WCF-12 802.11b/Cheapie USB Ethernet

The Grinder

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Initrd.bin File
« Reply #9 on: July 27, 2006, 05:53:25 am »
Quote
(using koen's way of saying it) lardman and adf is bullshit.

I wouldn't, you just appear to be rude (even more so as you're not actually right).

Quote
initrd.bin is similar to initrd.img used in normal linux boot.
It is a gzipped image. To mount it, first gunzip, plus
kernel have to have initrd support, then use this command

mount -t ext2 -o loop initrd /mnt

to mount it.

No initrd.bin I've ever seen for a Zaurus uses ext2, they are always compressed, which means a choice of ro cramfs or rw jffs2.

Assuming it's not cramfs, best to try jffs2.


Si
« Last Edit: July 27, 2006, 05:53:53 am by lardman »
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

koen

  • Hero Member
  • *****
  • Posts: 1008
    • View Profile
    • http://dominion.thruhere.net/koen/cms/
Initrd.bin File
« Reply #10 on: July 27, 2006, 06:27:49 am »
Quote
Assuming it's not cramfs, best to try jffs2.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=136583\"][{POST_SNAPBACK}][/a][/div]

The best way to check it is to use 'file', however:

Code: [Select]
angstrom@serenity:~/website/unstable/images/20060725/c7x0$ file *
Angstrom-bootstrap-image-test-20060725-c7x0.rootfs.ext2:    Linux rev 0.0 ext2 filesystem data
Angstrom-bootstrap-image-test-20060725-c7x0.rootfs.img:     data
Angstrom-bootstrap-image-test-20060725-c7x0.rootfs.tar.bz2: bzip2 compressed data, block size = 900k
modules-2.6.16-c7x0.tgz:                                    gzip compressed data, from Unix, last modified: Tue Jul 25 14:29:58 2006
updater.sh.c7x0:                                            data
zImage-2.6.16-c7x0-20060725122119.bin:                      data

note how it differs from:

Code: [Select]
angstrom@serenity:~/website/unstable/images/20060725/a780$ file *
Angstrom-bootstrap-image-test-20060725-a780.rootfs.jffs2:  Linux jffs2 filesystem data little endian
Angstrom-bootstrap-image-test-20060725-a780.rootfs.tar.gz: gzip compressed data, from Unix, last modified: Tue Jul 25 13:51:54 2006

the zImage and roofts.img both have the sharp-sl header prepended, so file doesn't recognize them. That header could also explain why it won't mount/uncompress/etc
Forums are not bugtrackers!!! Smart questions
Ångström release team
iPAQ h2210, iPAQ h5550, iPAQ hx4700, Zaurus SL-C700, Nokia 770, all running some form of GPE
My blog

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Initrd.bin File
« Reply #11 on: July 27, 2006, 08:09:02 am »
I have been able to mount jffs2 filesystems from pdaX certainly, and also the Sharp cramfs offerings.


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva