EXT2 filesystem fstab

Browse source code on GitHub

Overview

This sample shows how to define an ext2 fstab entry in the devicetree. The sample is run on the native_sim board and RAM disk is used for ext2 storage.

Building and running

To run this sample, build it for the native_sim board and afterwards run the generated executable file within the build folder.

The RAM disk sample for the native_sim board can be built as follows:

west build -b native_sim samples/subsys/fs/ext2_fstab -- -DDTC_OVERLAY_FILE=ext2_fstab.overlay

Sample Output

When the sample runs successfully you should see following message on the screen: .. code-block:: console

I: Filesystem access successful

See also

File System APIs