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

Arno Wagner arno at wagner.name
Wed Apr 27 02:44:38 CEST 2016


Just a guess, but maybe the second machine has limited ext4 support?
You could try with ext3 and see what happens.

Regards,
Arno

On Wed, Apr 27, 2016 at 00:38:38 CEST, Serrano Pereira wrote:
> 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
> _______________________________________________
> dm-crypt mailing list
> dm-crypt at saout.de
> http://www.saout.de/mailman/listinfo/dm-crypt

-- 
Arno Wagner,     Dr. sc. techn., Dipl. Inform.,    Email: arno at wagner.name
GnuPG: ID: CB5D9718  FP: 12D6 C03B 1B30 33BB 13CF  B774 E35C 5FA1 CB5D 9718
----
A good decision is based on knowledge and not on numbers. -- Plato

If it's in the news, don't worry about it.  The very definition of 
"news" is "something that hardly ever happens." -- Bruce Schneier


More information about the dm-crypt mailing list