June 2017
Intermediate to advanced
478 pages
13h 14m
English
The extended filesystem, ext, has been the main filesystem for Linux desktops since 1992. The current version, ext4, is very stable and well tested and has a journal that makes recovery from an unscheduled shutdown fast and mostly painless. It is a good choice for managed flash devices and you will find that it is the preferred filesystem for Android devices that have eMMC storage. If the device supports discard, you can mount with the option -o discard.
To format and create an ext4 filesystem at runtime, you would type the following:
# mkfs.ext4 /dev/mmcblk0p2# mount -t ext4 -o discard /dev/mmcblk0p1 /mnt
To create a filesystem image at build time, you can use the genext2fs utility, available from http://genext2fs.sourceforge.net ...
Read now
Unlock full access