I have created a image with journal option
CONFIG_TARGET_EXT4_JOURNAL=y
root@OpenWrt:/# tune2fs -l /dev/vda2
...
Filesystem features: has_journal ext_attr resize_inode filetype needs_recovery extent sparse_super large_file uninit_bg
...
and tried to mount with data=ordered in with /etc/config/fstab:
config global
option anon_swap '0'
option anon_mount '0'
option auto_swap '1'
option auto_mount '1'
option delay_root '5'
option check_fs '1'
config mount
option target '/'
option device '/dev/vda2'
option options 'rw,noatime,data=ordered'
option fstype 'ext4'
option enabled '1'
option enabled_fsck '1'
but result is
root@OpenWrt:/# mount
/dev/root on /rom type ext4 (ro,noatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,noatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,noatime)
cgroup2 on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime)
/dev/vda2 on / type ext4 (ro,noatime)
/dev/vda1 on /boot type ext4 (rw,noatime)
/dev/vda1 on /boot type ext4 (rw,noatime)
tmpfs on /dev type tmpfs (rw,nosuid,relatime,size=512k,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,mode=600,ptmxmode=000)
debugfs on /sys/kernel/debug type debugfs (rw,noatime)
none on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,noatime,mode=700)
and / becomes ro - read only- /dev/vda2 on / type ext4 (ro,noatime)
without fstab file / was rw - read write - /dev/root on / type ext4 (rw,noatime):
before fstab:
/dev/root on / type ext4 (rw,noatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,noatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,noatime)
cgroup2 on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime)
/dev/vda1 on /boot type ext4 (rw,noatime)
/dev/vda1 on /boot type ext4 (rw,noatime)
tmpfs on /dev type tmpfs (rw,nosuid,relatime,size=512k,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,mode=600,ptmxmode=000)
debugfs on /sys/kernel/debug type debugfs (rw,noatime)
none on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,noatime,mode=700)
How to mount / as rw,data=ordered?
From my point of view - I have to have journaled ext4 (to prevent data losses - as logs of vpn) and second check disk to prevent mount in ro mode because of errrors.