I am using a luks file under /dev/mapper/luksfile
When I use the mkfs.xfs /dev/mapper/luksfile command, I get an error about pwrite failed: Input/output error
I found some possible solutions online, but nothing seems to work.
Does anyone know what may be causing this problem?
Please always show the copy/paste of the complete command and output. Do not tell things like: The command xxxxx gives, because that command should be within the CODE tags. you show that it is all complete and unabridged by including the new prompt line at the end.
Example.
Do not
The uname -a command gives
Linux boven 5.3.18-lp152.84-default #1 SMP Tue Jul 20 23:04:11 UTC 2021 (baaeecf) x86_64 x86_64 x86_64 GNU/Linux
=============
but show
henk@boven:~> uname -a
Linux boven 5.3.18-lp152.84-default #1 SMP Tue Jul 20 23:04:11 UTC 2021 (baaeecf) x86_64 x86_64 x86_64 GNU/Linux
henk@boven:~>
=============
Less (miss)typing. Less change for misunderstandings. More information. Much more trustworthy.
Same for: I see the permissions … We want to see by e.g. an ls -l.
I found the issue. I defined the luk images under a partition with not enough space when I was supposed to use a different disk and partition.
I deleted the old ones and started all commands at the correct location.
Everything is working now and the luk partition was formatted correctly!