Mount filesystem with DAX enabled on RAM

I am trying to mount a filesystem with DAX feature on RAM.

I used this answer to load brd module and get /dev/ram0. Then I tried all 3 filesystems that support DAX: ext2, ext4 and xfs.

However, when I use -o dax flag with mount, I get this error: wrong fs type, bad option, bad superblock on /dev/ram0, missing codepage or helper program, or other error

With dmesg | tail I see the following issue: (ram0): DAX unsupported by block device.

Is this an incorrect way to achieve my initial goal, mounting a filesystem with DAX on RAM, or what could I be doing wrong?

I saw this question but I do not think -t ramfs does what I want, it won’t appear in df -h list.

I use 5.10.0-14-amd64 linux kernel version.

Asked By: Ana Khorguani

||

It seems that DAX support was removed from brd module. There is a patch from 2017.

Answered By: Ana Khorguani
Categories: Answers Tags: , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.