LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices

Reply
 
LinkBack Search this Thread
Old 12-05-2012, 04:43 PM   #1
mbee
LQ Newbie
 
Registered: Nov 2012
Posts: 3

Rep: Reputation: Disabled
Mounting jffs2 header gives superblock error


Hi, I have used firmware mod kit to unpack an img file which splits the file up. I end up with a header file which gives the following:
Quote:
# binwalk rootfs.jffs2

DECIMAL HEX DESCRIPTION
-------------------------------------------------------------------------------------------------------
12464 0x30B0 gzip compressed data, from Unix, last modified: Wed Nov 9 04:24:07 2011, max compression
497472 0x79740 JFFS2 filesystem data little endian, JFFS node length: 50794
I used dd to split out the jffs2 section:

Quote:
# binwalk header.jffs2

DECIMAL HEX DESCRIPTION
-------------------------------------------------------------------------------------------------------
485007 0x7668F JFFS2 filesystem data little endian, JFFS node length: 50794
I have tried mounting both files following as many instructions as I can find on google but always get the same error. This is what I get when using a script:
Quote:
./mnt_jffs2.sh header.jffs2
mount: /tmp/mtdblock0: can't read superblock
This has been a learning curve for me, I have no idea what a superblock is so would really appreciate help or ideas.
Thanks in advance
 
Old 12-17-2012, 09:15 AM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,390
Blog Entries: 2

Rep: Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900
I don't know what mnt_jffs2.sh is supposed to do or how it works. If it tries to mount the filesystem image on a loop device, then I can only suggest that the image is either corrupted or is not really what it is alleged to be. The jffs2 filesystem type is not always fully supported in many Linux distributions and may require an add-on package. To mount a jffs2 filesystem, your kernel will need to have built-in support, or (I think) can use a loadable module to support the jffs2 filesystem type. Not sure if the error message you cited implies anything about that; it might indicate that the kernel knows jffs2.

--- rod.
 
Old 12-19-2012, 06:21 PM   #3
mbee
LQ Newbie
 
Registered: Nov 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
Many thanks for your thoughts. The script uses a loop device. I have tried several methods now and get the same error so you must be right that it is not jffs2 or corrupted.
It is from Teac who supply a linux source and build script so I am now trying that but get linux-gcc not found even after installing it.
Mervyn
 
  


Reply

Tags
firmware, header, mount


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mounting Drive Bad Superblock Error Wraith86 Linux - Server 1 06-16-2010 06:27 AM
error mounting ext3 filesystem... mount: /dev/hdd1: can't read superblock versaulis Linux - Software 5 11-26-2006 08:34 PM
Error mounting HFS+ volume: unable to find HFS+ superblock applewax Linux - General 3 05-31-2006 08:45 AM
"...bad superblock" error when mounting cdrom Trinity22 Linux - Hardware 4 09-19-2004 07:59 PM
trouble mounting drive, bad superblock error mattuc Linux - Hardware 3 05-27-2004 10:05 AM


All times are GMT -5. The time now is 06:52 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration