Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What file system to use for an embedded linux with a eMMC NAND Flash

I'm in charge of choosing a file system for an embedded Linux device. The device is a Freescale iMX6 running with a eMMC NAND flash memory and a kernel v3.10.17.

I plan to partition the Flash as decribed below:

Partition #1: kernel - not mounted
Partition #2: rootfs - mounted at "/" in read-only mode
Partition #3: userdata - mounted at "/home" in read-write mode

"/var" and "/tmp" directories will be mounted as tmpfs.

In some previous embedded linux projects, I used to use UBIFS on NAND flashes that were not eMMC NAND flash.

Since eMMC NAND flashes include a wear leveling feature, UBIFS should not be used with them as UBIFS' wear leveling feature may interfere with the one used by the eMMC NAND flashes.

I was planning to use ext2 or ext3 for the Partition #2 (rootfs) and ext3 for the Partition #3. I was wondering if ext3 is robust enough so my data won't get corrupted easily after a power failure of a hardreset reboot.

Does anyone have a strong backgroung with all of this and could help me to figure out what file system would be the best ?

Thanks.

like image 450
A.G. Avatar asked Apr 10 '15 15:04

A.G.


People also ask

Which type of file system is used for Linux systems?

Unix File FormatExt4 is the preferred and most widely used Linux file System. In certain Special case XFS and ReiserFS are used. Btrfs is still used in experimental environment.

What is eMMC NAND flash?

eMMC Flash combines NAND memory with a built-in controller that handles most of the things you have to take care of when dealing with NAND flash. eMMC is also called managed NAND. With NAND and NOR flash on the other side, the OS and device drivers are responsible to handle these issues.

What is eMMC partition?

eMMCs are similar to solid-state drives, or SSDs, but they are not exactly the same. When using eMMC, hosts can set up a maximum of four General Purpose Area Partitions. Each of these partitions can have its own attributes. The partitions can be set as General, Enhanced (with pSLC flash memory), or Extended.


1 Answers

I use ext4 file-system on an eMMC device that contains user data in read/write mode on an embedded-linux system. The system shuts down by hard-reset several times a day for months now. have not witnessed problems with data consistency yet.

like image 118
Michael Alayev Avatar answered Sep 30 '22 03:09

Michael Alayev