[dm-crypt] LUKS partition write-protected, mounting read-only

Serrano Pereira serrano.pereira at gmail.com
Wed Apr 27 00:38:38 CEST 2016


Hello,

When I create a LUKS partition like so:

$ cryptsetup luksFormat /root/test
$ cryptsetup open /root/test test
$ mkfs.ext4 -j /dev/mapper/test
$ mount /dev/mapper/test /mnt/files

Then I can create files in /mnt/files just fine. But when I copy
/root/test to a different computer, and then do:

$ cryptsetup open /root/test test
Enter passphrase for /root/test:
mount: /dev/mapper/test is write-protected, mounting read-only
$ mount /dev/mapper/test /mnt/files

As you can see, the device is mounted read-only. I cannot write any
files to the LUKS partition. Why is this so? How can I write to the
partition on another computer?

Regards,
Serrano


More information about the dm-crypt mailing list