23

I know that Android uses FAT32 for SD cards and mounts them via FUSE. But which FS is attached at /? Some kind of ext? ZFS?

romascom
  • 15
  • 1
  • 1
  • 6
yanpas
  • 345
  • 1
  • 2
  • 5

3 Answers3

30

There is no singularly defined "Android" filesystem, so this can vary between devices. Any FS that the kernel can load drivers for is basically fair game.

By and large, you'll almost certainly find that ext4 is the most common filesystem on modern devices. Older devices may use older ext* versions as well, or other filesystems entirely. Since everything is built on Linux, ext4 a pretty sensible choice, with solid kernel support and a good track record. You can read a bit about why this decision was made in Ars Technica's article about the switch to ext4.

Some devices have also used Samsung's Flash-Friendly File System (f2fs). Notably, several of Motorola's devices, as well as the Nexus 9, use f2fs. The goal of f2fs was to create a file system that was designed specifically with the needs of flash-based storage mediums in mind, in an attempt to maximize performance on devices using NAND chips for their primary storage medium.

This does not mean that these are the only filesystems that Android is capable of running on, however, as I noted above. Given the kernel source and the know-how, it would certainly be possible to include drivers for other filesystems in a kernel image. Android x86 supports installation on NTFS and FAT32 filesystems, for example.

eldarerathis
  • 36,868
  • 16
  • 145
  • 176
4

YAFFS (Yet Another Flash File System) was generally used as the default file system for Android versions up to 2.3: http://www.yaffs.net/google-android

ext4 has been used ever since because of multithreading support: https://ext4.wiki.kernel.org/index.php/Main_Page

admirabilis
  • 177
  • 1
  • 1
  • 8
Charles Boyd
  • 141
  • 2
0

I tried with formatting all partitions with f2fs then when I flashed a custom ROM, I could find, the / is formatted with ext4fs, when I checked the batch file which comes with ROM file is the culprit, it actually reformats the f2fs partition with ext4fs.

xavier_fakerat
  • 10,325
  • 6
  • 43
  • 103