OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Problem With Inodes At The Boot Time. [solved], Detection of pb. with the filesystem
randy11
post Sep 18 2006, 06:42 AM
Post #1





Group: Members
Posts: 11
Joined: 27-April 06
Member No.: 9,717



Hello,

I'm running a Beta3 on a SL-C1000. At the boot time I have
QUOTE
Cramfs: wrong magic
FAT: bogus logical sector size 381
Inode #1666 was a directory with children - removong those too...
Inode #2442 was a directory with children - removong those too...
Inode #2464 was a directory with children - removong those too...
Inode #2468 was a directory with children - removong those too...
Inode #11343 was a directory with children - removong those too...

If there is no CF or SD, it's the same thing.
The NAND is good : Menu Service (D+M).
I've tried
QUOTE
# tune2fs -c 2 -C 3 /dev/mtdblock3
tune2fs 1.34 (25-Jul-2003)
tune2fs: Bad magic number in super-block while trying to open /dev/mtdblock3
Couldn't find valid filesystem superblock.
#

When I make a "mount" :
QUOTE
rootfs on / type rootfs (rw)
/dev/root on / type jffs2 (rw)
/proc on /proc type proc (rw)
none on /dev type tmpfs (rw)
/dev/mtdblock3 on /home type jffs2 (rw,noatime)
none on /dev/pts type devpts (rw)
/dev/mtdblock3 on /mnt/user type jffs2 (rw,noatime)
/dev/mmcda1 on /mnt/card type ext2 (rw)
/dev/hda1 on /mnt/cf type vfat (rw,noatime)
/dev/hda2 on /mnt/cf2 type ext2 (rw,nosuid,nodev)


I've also tried a Backup/Restore (D+M) : no modification. The backup reproduce the problem (the filesystem keep the bug) : it's a normal situation because de NAND has no default, only the filesystem.

How to obtain a normal filesystem ?

Thanks for your help.

Randy11
Go to the top of the page
 
+Quote Post
karlto
post Sep 18 2006, 11:44 AM
Post #2





Group: Members
Posts: 343
Joined: 3-October 05
From: NZ
Member No.: 8,243



QUOTE(randy11 @ Sep 19 2006, 03:42 AM)
/dev/mmcda1 on /mnt/card type ext2 (rw)
/dev/hda2 on /mnt/cf2 type ext2 (rw,nosuid,nodev)

Are these correctly unmounted at shutdown (especially the second one)?
Go to the top of the page
 
+Quote Post
pelrun
post Sep 18 2006, 01:12 PM
Post #3





Group: Members
Posts: 369
Joined: 6-September 04
From: Brisbane, Australia
Member No.: 4,488



Don't worry about it - it's normal behaviour and there is nothing wrong with your filesystem. It's just an artifact of how jffs2 works.

There's a detailed explanation at http://www.oesf.org/forums/index.php?showt...=20773&hl=jffs2
Go to the top of the page
 
+Quote Post
karlto
post Sep 18 2006, 03:10 PM
Post #4





Group: Members
Posts: 343
Joined: 3-October 05
From: NZ
Member No.: 8,243



QUOTE(pelrun @ Sep 19 2006, 10:12 AM)
Don't worry about it - it's normal behaviour and there is nothing wrong with your filesystem. It's just an artifact of how jffs2 works.

There's a detailed explanation at http://www.oesf.org/forums/index.php?showt...=20773&hl=jffs2
*

Heh, of course... (for some reason I decided they were ext2 messages). Good thing someone around here knows what they're talking about!
Go to the top of the page
 
+Quote Post
randy11
post Sep 18 2006, 11:49 PM
Post #5





Group: Members
Posts: 11
Joined: 27-April 06
Member No.: 9,717



QUOTE(karlto @ Sep 18 2006, 08:44 PM)
Are these correctly unmounted at shutdown (especially the second one)?
*

No sad.gif , a HARD RESET was done... But I've the same message without the CF (/dev/hd2) or SD (/dev/mmcda1).
Go to the top of the page
 
+Quote Post
karlto
post Sep 19 2006, 11:45 AM
Post #6





Group: Members
Posts: 343
Joined: 3-October 05
From: NZ
Member No.: 8,243



QUOTE(randy11 @ Sep 19 2006, 08:49 PM)
QUOTE(karlto @ Sep 18 2006, 08:44 PM)

Are these correctly unmounted at shutdown (especially the second one)?
*

No sad.gif , a HARD RESET was done... But I've the same message without the CF (/dev/hd2) or SD (/dev/mmcda1).
*


Sorry, disregard that comment - as pelrun said above, there is nothing wrong. The filesystem leaves all that stuff to clean up later to save too many writes to memory.
Go to the top of the page
 
+Quote Post
randy11
post Sep 19 2006, 11:21 PM
Post #7





Group: Members
Posts: 11
Joined: 27-April 06
Member No.: 9,717



QUOTE(karlto @ Sep 19 2006, 08:45 PM)
Sorry, disregard that comment - as pelrun said above, there is nothing wrong. The filesystem leaves all that stuff to clean up later to save too many writes to memory.
*

Thanks, for the replies. Well, if my understanding is good:
- no problem with the hardware;
- nothing will be done by the system, except if there is too many errors.

I'm right or not ?

For the fun, I will suppose that the corrections could be done :
- make a backup of the faulting partition on a true ext2 partition;
- make the corrections : "wrong magic", ...
- build an image for the jffs2 filesystem;
- replace the faulting file (jffs2 image) with the new.

(At this time it's not necessary in my particular case.)

What do you think about this idea ?
Go to the top of the page
 
+Quote Post
pelrun
post Sep 20 2006, 03:57 AM
Post #8





Group: Members
Posts: 369
Joined: 6-September 04
From: Brisbane, Australia
Member No.: 4,488



Ignore the "wrong magic" - that message is only there because the system is autodetecting the partition format. It tries to mount using cramfs, then FAT, then jffs2 - the first two fail (understandably) and the jffs2 attempt succeeds. You will *always* see these messages.

In the event something does corrupt the data on your partition, you don't want to restore the whole filesystem anyway - you don't know how many files are affected. Backup your important files, do a fresh reinstall of the OS, then restore them. But this is very unlikely. jffs2 is very robust; it'd have to be a program illegally writing directly to the partition or a hardware fault and not just a crash.

But this is a last resort - you *don't* want to flush the journal or rewrite the partition unnecessarily, as it just wastes more of the limited writes your flash can do before it dies! And as soon as any of the journal is written out the warnings will return.
Go to the top of the page
 
+Quote Post
karlto
post Sep 20 2006, 11:57 AM
Post #9





Group: Members
Posts: 343
Joined: 3-October 05
From: NZ
Member No.: 8,243



QUOTE(randy11 @ Sep 20 2006, 08:21 PM)
Thanks, for the replies. Well, if my understanding is good:
- no problem with the hardware;
- nothing will be done by the system, except if there is too many errors.

I'm right or not ?

1) Yes, there is no problem with the hardware
2) Just to clarify, what you posted above didn't show any errors at all - it was just letting you know that everything it planned to do is now done

(although tune2fs gave an error because it's built for ext2 and you tried to use it on jffs2)
Go to the top of the page
 
+Quote Post
randy11
post Sep 20 2006, 11:15 PM
Post #10





Group: Members
Posts: 11
Joined: 27-April 06
Member No.: 9,717



QUOTE(karlto @ Sep 20 2006, 08:57 PM)
1) Yes, there is no problem with the hardware
2) Just to clarify, what you posted above didn't show any errors at all - it was just letting you know that everything it planned to do is now done

(although tune2fs gave an error because it's built for ext2 and you tried to use it on jffs2)
*
Hourra ! Thanks everybody for your help.

Have a good day.

Randy11
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 21st December 2014 - 01:57 AM