README.rst
1.. zephyr:code-sample:: ext2-fstab
2 :name: EXT2 filesystem fstab
3 :relevant-api: file_system_api
4
5 Define ext2 filesystems in the devicetree.
6
7Overview
8***********
9
10This sample shows how to define an ext2 fstab entry in the devicetree.
11The sample is run on the ``native_sim`` board and RAM disk is used for ext2 storage.
12
13Building and running
14********************
15
16To run this sample, build it for the ``native_sim`` board
17and afterwards run the generated executable file within the build folder.
18
19The RAM disk sample for the ``native_sim`` board can be built as follows:
20
21.. zephyr-app-commands::
22 :zephyr-app: samples/subsys/fs/ext2_fstab
23 :host-os: unix
24 :board: native_sim
25 :gen-args: -DDTC_OVERLAY_FILE=ext2_fstab.overlay
26 :goals: build
27 :compact:
28
29Sample Output
30=============
31
32When the sample runs successfully you should see following message on the screen:
33.. code-block:: console
34
35 I: Filesystem access successful
36