Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
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.


  Search this Thread
Old 05-18-2011, 06:50 AM   #1
Registered: Aug 2008
Posts: 528

Rep: Reputation: 32
Question Which filesystem for NAND?


As YAFFS2 is no longer available in the uClinux distribution I'm using, I need to move on to another filesystem.

In this list, which filesystem would you recommend to hold the root filesystem in the NAND?

  • ADFSfilesystemsupport(EXPERIMENTAL)
  • AmigaFFSfilesystemsupport(EXPERIMENTAL)
  • AppleMacintoshfilesystemsupport(EXPERIMENTAL)
  • AppleExtendedHFSfilesystemsupport
  • BeOSfilesystem(BeFS)support(readonly)(EXPERIMENTAL)
  • BFSfilesystemsupport(EXPERIMENTAL)
  • EFSfilesystemsupport(readonly)(EXPERIMENTAL)
  • JournallingFlashFileSystemv2(JFFS2)support
  • LogFSfilesystem(EXPERIMENTAL)
  • CompressedROMfilesystemsupport(cramfs)
  • SquashFS4.0-Squashedfilesystemsupport
  • FreeVxFSfilesystemsupport(VERITASVxFS(TM)compatible)
  • Minixfilesystemsupport
  • SonicBlueOptimizedMPEGFileSystemsupport
  • OS/2HPFSfilesystemsupport
  • QNX4filesystemsupport(readonly)
  • ROMfilesystemsupport
  • SystemV/Xenix/V7/Coherentfilesystemsupport
  • UFSfilesystemsupport(readonly)

Also, what is the recommend way to copy the ext2 root filesystem from RAM onto the NAND?
Is it OK to simply boot in RAM, and then simply mount the NAND and copy the whole root tree onto the NAND?

Thank you.
Old 05-18-2011, 07:49 AM   #2
Registered: Aug 2008
Posts: 528

Original Poster
Rep: Reputation: 32
I gave JFFS2 a try, and noticed that...

1. "flash_eraseall -j /dev/mtd2" is pretty slow (15mn to format a 256MB NAND)
2. After running "mount -t jffs2 /dev/mtdblock2 /mnt", uClinux is stuck for a couple of minutes with the following message:

Erasing 128 Kibyte @ f800000 -- 100 % complete.MTD_close

> mount -t jffs2 /dev/mtdblock2 /mnt
MTDSB: lookup_bdev() returned 0
MTDSB: New superblock for device 2 ("file system(nand)")
Any idea?

Thank you.
Old 06-08-2011, 07:38 AM   #3
Senior Member
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36

If you use a kernel >= 2.6.28 (not sure about the version), you should give a try to ubifs. It is supposed to be JFFS2 successor: it should be faster, more reliable...
About your JFFS2 problem, is it just stuck but the command succeed ? or is it stuck and finally got a failure ? If you are in the first case, it is maybe because of the size of your partition: be aware that JFFS2 partition are very very long to mount

Kind regards,

Old 06-09-2011, 02:40 AM   #4
Registered: Aug 2008
Posts: 528

Original Poster
Rep: Reputation: 32
Thanks for the tip. I did move on to Ubi(fs)... with which I'm currently struggling to get to work because I don't fully understand which commands and settings to use, but I should have this figured out in a little while.

For those interested, the main source of information is here:

Thank you.


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
[SOLVED] why do I see NAND usage instead of RAM ? nomoney29 Linux - Embedded & Single-board computer 2 05-03-2011 03:43 AM
Problem on Linux NAND root filesystem cfnielse Linux - Embedded & Single-board computer 5 04-10-2011 12:30 PM
Nand flash boot Roger03 Programming 1 04-03-2010 05:19 AM
R/W from nand flash linux_newbie79 Linux - Newbie 3 08-19-2009 08:35 AM
nand flash: need help jier Programming 0 05-03-2006 11:05 PM > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 10:33 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration