OESF Portables Forum
Everything Else => Desktop Operating Systems Issues => Zaurus General Forums => Archived Forums => Linux Issues => Topic started by: Anonymous 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
mount -t cramfs ~/zaurus.rom/initrd.bin /mnt/zaurus.rom/kcompany/ -o loop
I got the following error:
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:
-
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
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
-
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
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 ...