Author Topic: cannot mount initrd.bin on Linux pc  (Read 2687 times)

Anonymous

  • Guest
cannot mount initrd.bin on Linux pc
« on: June 17, 2004, 09:51:39 am »
Hi everyone,

I try to mount thekcompany rom and take a look before flash it to my c860,but on my Linux box when I did
Code: [Select]
mount -t cramfs ~/zaurus.rom/initrd.bin /mnt/zaurus.rom/kcompany/ -o loop
I got the following error:
Code: [Select]
mount: wrong fs type, bad option, bad superblock on /dev/loop0,

       or too many mounted file systems

       (could this be the IDE device where you in fact use

       ide-scsi so that sr0 or sda or so is needed?)

I have aleardy got loop device and cramfs installed.

anyone can help me? thanks in advance :cry:

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
cannot mount initrd.bin on Linux pc
« Reply #1 on: June 17, 2004, 10:03:27 am »
That\'s cause the Cxx0 roms are jffs2 and not cramfs.

Jffs2 images can not be mounted directly via loop devices you have to use mtdblock and mtdram to mount jffs2 images

Code: [Select]
modprobe mtdram total_size=

modprobe mtdblock

dd if= of=/dev/mtdblock/0

mount -t jffs2 /dev/mtdblock/0 /mnt/flash


Where <rom_size> = size of the rom or greater in K (32MB = 32768, 64MB = 65536) and <jffs2.image> is the name of your rom (initrd.bin in your example)

Stu
SL-C1000, Hand converted to English with Japanese Input
Running X apps via X/Qt
iRiver USB host cable; Diatec P-Cord usb power cable (extendable); Acro's Reel Cable USB (A to A, B, Mini-B,  & Mini-B 8pin); GreenHouse 1Gb PicoDrive+; 2x256Mb Hagiwara SD cards; 128Mb Transcend CF card; 512Mb PQI CF card; AmbiCom WL1100C-CF 11B WLAN card

Anonymous

  • Guest
cannot mount initrd.bin on Linux pc
« Reply #2 on: June 17, 2004, 10:21:26 am »
Quote
That\'s cause the Cxx0 roms are jffs2 and not cramfs.

Jffs2 images can not be mounted directly via loop devices you have to use mtdblock and mtdram to mount jffs2 images

Code: [Select]
modprobe mtdram total_size=

modprobe mtdblock

dd if= of=/dev/mtdblock/0

mount -t jffs2 /dev/mtdblock/0 /mnt/flash


Where <rom_size> = size of the rom or greater in K (32MB = 32768, 64MB = 65536) and <jffs2.image> is the name of your rom (initrd.bin in your example)

Stu


Stubear,thank you very much,I am going to  have a try ...