Author Topic: Problem With Inodes At The Boot Time. [solved]  (Read 5373 times)

randy11

  • Newbie
  • *
  • Posts: 11
    • View Profile
Problem With Inodes At The Boot Time. [solved]
« on: September 18, 2006, 10:42:38 am »
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
« Last Edit: September 21, 2006, 03:16:49 am by randy11 »
SL-C1000 / PdaXrom Beta3 - CF 2 GB PRETEC 80X  : 400MB (FAT16) & 1600MB (EXT2); SD KINGMAX Platinium : 512MB (EXT2); Cables USB HOST & PSP; Net card BUFFALO LPC-CF-CLT (10Mbit).

karlto

  • Sr. Member
  • ****
  • Posts: 343
    • View Profile
    • http://
Problem With Inodes At The Boot Time. [solved]
« Reply #1 on: September 18, 2006, 03:44:07 pm »
Quote
/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)?
SL6000-L, RC12

pelrun

  • Sr. Member
  • ****
  • Posts: 366
    • View Profile
    • http://
Problem With Inodes At The Boot Time. [solved]
« Reply #2 on: September 18, 2006, 05:12:21 pm »
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 https://www.oesf.org/forums/index.php?showt...=20773&hl=jffs2
SL-C3100 with usb power mod running debian eabi
pdaXii13 still on the NAND for dualbooting
16GB SDHC! (a new one, after I sat on the old one and it went kaput)
D-Link 660 wifi, Socket Bluetooth rev H
External 9800mAh LiIon battery and slimline dvd drive
Homebrew microphone and remote

karlto

  • Sr. Member
  • ****
  • Posts: 343
    • View Profile
    • http://
Problem With Inodes At The Boot Time. [solved]
« Reply #3 on: September 18, 2006, 07:10:47 pm »
Quote
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 https://www.oesf.org/forums/index.php?showt...=20773&hl=jffs2
[div align=\"right\"][a href=\"index.php?act=findpost&pid=141749\"][{POST_SNAPBACK}][/a][/div]
Heh, of course... (for some reason I decided they were ext2 messages). Good thing someone around here knows what they're talking about!
SL6000-L, RC12

randy11

  • Newbie
  • *
  • Posts: 11
    • View Profile
Problem With Inodes At The Boot Time. [solved]
« Reply #4 on: September 19, 2006, 03:49:34 am »
Quote
Are these correctly unmounted at shutdown (especially the second one)?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=141743\"][{POST_SNAPBACK}][/a][/div]
No   , a HARD RESET was done... But I've the same message without the CF (/dev/hd2) or SD (/dev/mmcda1).
SL-C1000 / PdaXrom Beta3 - CF 2 GB PRETEC 80X  : 400MB (FAT16) & 1600MB (EXT2); SD KINGMAX Platinium : 512MB (EXT2); Cables USB HOST & PSP; Net card BUFFALO LPC-CF-CLT (10Mbit).

karlto

  • Sr. Member
  • ****
  • Posts: 343
    • View Profile
    • http://
Problem With Inodes At The Boot Time. [solved]
« Reply #5 on: September 19, 2006, 03:45:15 pm »
Quote
Quote
Are these correctly unmounted at shutdown (especially the second one)?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=141743\"][{POST_SNAPBACK}][/a][/div]
No   , a HARD RESET was done... But I've the same message without the CF (/dev/hd2) or SD (/dev/mmcda1).
[div align=\"right\"][a href=\"index.php?act=findpost&pid=141773\"][{POST_SNAPBACK}][/a][/div]
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.
SL6000-L, RC12

randy11

  • Newbie
  • *
  • Posts: 11
    • View Profile
Problem With Inodes At The Boot Time. [solved]
« Reply #6 on: September 20, 2006, 03:21:11 am »
Quote
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.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=141814\"][{POST_SNAPBACK}][/a][/div]
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 ?
SL-C1000 / PdaXrom Beta3 - CF 2 GB PRETEC 80X  : 400MB (FAT16) & 1600MB (EXT2); SD KINGMAX Platinium : 512MB (EXT2); Cables USB HOST & PSP; Net card BUFFALO LPC-CF-CLT (10Mbit).

pelrun

  • Sr. Member
  • ****
  • Posts: 366
    • View Profile
    • http://
Problem With Inodes At The Boot Time. [solved]
« Reply #7 on: September 20, 2006, 07:57:33 am »
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.
SL-C3100 with usb power mod running debian eabi
pdaXii13 still on the NAND for dualbooting
16GB SDHC! (a new one, after I sat on the old one and it went kaput)
D-Link 660 wifi, Socket Bluetooth rev H
External 9800mAh LiIon battery and slimline dvd drive
Homebrew microphone and remote

karlto

  • Sr. Member
  • ****
  • Posts: 343
    • View Profile
    • http://
Problem With Inodes At The Boot Time. [solved]
« Reply #8 on: September 20, 2006, 03:57:31 pm »
Quote
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)
SL6000-L, RC12

randy11

  • Newbie
  • *
  • Posts: 11
    • View Profile
Problem With Inodes At The Boot Time. [solved]
« Reply #9 on: September 21, 2006, 03:15:01 am »
Quote
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)
[div align=\"right\"][a href=\"index.php?act=findpost&pid=141897\"][{POST_SNAPBACK}][/a][/div]
Hourra ! Thanks everybody for your help.

Have a good day.

Randy11
SL-C1000 / PdaXrom Beta3 - CF 2 GB PRETEC 80X  : 400MB (FAT16) & 1600MB (EXT2); SD KINGMAX Platinium : 512MB (EXT2); Cables USB HOST & PSP; Net card BUFFALO LPC-CF-CLT (10Mbit).