LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 06-24-2005, 07:15 AM   #1
gargamel
Senior Member
 
Registered: May 2003
Distribution: Slackware, OpenSuSE
Posts: 1,839

Rep: Reputation: 242Reputation: 242Reputation: 242
JFFS2 mount on SuSE 9.3 fails


Hi there,

I would like to extract some files from a JFFS2 image taken from an embedded device on SuSE 9.3. Unfortunately I am unable to mount the image.

I tried:

# mount -t jffs2 myimage.jffs2 /mnt -o loop

Result was an error message:

mount: wrong fs type, bad option, bad superblock on /dev/loop0,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so

I checked with

# make oldconfig

if the SuSE stock kernel 2.6.11 has support for JFFS2 and it seemingly does have modules for it. So I made sure that the moduls jffs2 was loaded:

# lsmod
Module Size Used by
jffs 39792 0
jffs2 89648 0
mtdcore 7112 2 jffs,jffs2
[...]

Unfortunately I had no success, so far.

Output of dmesg | tail:

JFFS: Trying to mount a non-mtd device.
Attempt to mount non-MTD device "/dev/loop0" as JFFS2
Attempt to mount non-MTD device "/dev/loop0" as JFFS2

Does anyone have a clue what I am doing wrong?

Any hint is much appreciated, thanks in advance!

gargamel
 
Old 07-03-2005, 06:13 PM   #2
gargamel
Senior Member
 
Registered: May 2003
Distribution: Slackware, OpenSuSE
Posts: 1,839

Original Poster
Rep: Reputation: 242Reputation: 242Reputation: 242
Has really nobody else tried it?
Or is it utterly unclear, what I am asking?

gargamel
 
Old 07-15-2005, 06:12 PM   #3
gargamel
Senior Member
 
Registered: May 2003
Distribution: Slackware, OpenSuSE
Posts: 1,839

Original Poster
Rep: Reputation: 242Reputation: 242Reputation: 242
No embedded Linux users in the SuSE community...? Can't believe that!!!

Where are you?

gargamel
 
Old 08-14-2005, 03:15 PM   #4
milestoneiii
LQ Newbie
 
Registered: Aug 2005
Location: Winston-Salem, NC
Distribution: Slackware 11.0
Posts: 8

Rep: Reputation: 0
Um, I'm not really experienced to give anyone advice, but I read in the release notes that JFS is no longer supported. Maybe it's something completely different, and I hope so, but there's my 2 cents. Try reading the release notes to check me on that before you believe it. Good luck!
 
Old 08-14-2005, 03:31 PM   #5
borromini
Member
 
Registered: Jul 2005
Location: Belgium
Distribution: Zenwalk 2.8
Posts: 35

Rep: Reputation: 15
JFS is only supported up to 9.2, yes.
 
Old 08-14-2005, 03:57 PM   #6
gargamel
Senior Member
 
Registered: May 2003
Distribution: Slackware, OpenSuSE
Posts: 1,839

Original Poster
Rep: Reputation: 242Reputation: 242Reputation: 242
Ahhh, thanks for your replies, but my question was about JFFS2, not about JFS.

JFFS2 is a file system for flash memory storage. It's used in embedded devices like PDAs, and in Linux distributions like Familiar and ELinOS.

JFS on the other hand is a 'normal' file system for ordinary hard disc drives. It competes with ReiserFS, XFS and all the others. It's from IBM and has a good reputation as a general purpose file system with good overall read and write performance on large and small files alike.

So thanks, but that wasn't it, yet.

gargamel
 
Old 09-08-2005, 03:09 PM   #7
AverageJoe
LQ Newbie
 
Registered: Sep 2005
Distribution: Slackware
Posts: 5

Rep: Reputation: 0
JFFS2 images need to be mounted through the MTD block device for it to work properly.
This site contains an easy step-by-step to get it done.

http://www.yargybot.com/Familiar/BackupHowto.html


I'll include the super brief summary for posterity.


# modprobe loop
# modprobe mtdblock
# losetup /dev/loop0 /path/to/imagefile.jffs2
# insmod blkmtd erasesz=256 device=/dev/loop0
# mount -t jffs2 /dev/mtdblock0 /mnt
 
  


Reply


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
smb mount folders disappear on mount & konqueror smb fails: network unreachable tisource Linux - Networking 1 10-17-2007 12:30 AM
JFFS2 on USB Card Reader Flash Denes Linux - Hardware 1 07-14-2005 01:41 PM
JFFS2 (Flash ROM) Eileen Programming 0 01-12-2005 02:51 AM
Encrypted Reiserfs Fails to Mount -- Reiserfsck Fails as Well antic Linux - Hardware 0 07-30-2004 04:32 PM
mount cdrom fails j-ray Linux - Software 10 01-30-2002 12:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 08:31 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration