For debugging purposes, I want to open the file on a specific predefined block. For example, if I suspect that a particular block is damaged, I want to write and read it, and I would rather do it in user mode while the section is installed.
Is there a way to say Linux: "Hey, open this new file on block 4579 if it is free."
Yes, I can edit the block device directly, but this can cause the file system to crash if a disk is installed.
General answers are welcome, but even the answer for ext filesystems families is good enough.
source share