I have a LUKS encrypted partition on a second hard drive that I use on my computer. When I turn on my computer, it is encrypted unless I go to it and try to open it, an operation that the system then does on its own because when I did it for the first time I left the password recorded. That is, I click on it, and the system mounts it unencrypted for me.
It has come to our attention that this operation has, for some time now, been mounting the relevant partition on the hard drive in issue in read-only mode. It was never like that; instead, it was always mounted together with the appropriate write privileges. And I did not alter anything at all! What can I do to find a solution to this issue?
I am in possession of the password for the partition. OS version is 22.04
I used dmesg
and found this information:
[ 97.995228] EXT4-fs warning (device dm-3): ext4_clear_journal_err:6017: Filesystem error recorded from previous mount: IO failure
[ 97.995233] EXT4-fs warning (device dm-3): ext4_clear_journal_err:6019: Marking fs in need of filesystem check.
[ 98.027267] EXT4-fs (dm-3): warning: mounting fs with errors, running e2fsck is recommended
[ 98.061947] EXT4-fs (dm-3): recovery complete
[ 98.061957] EXT4-fs (dm-3): mounted filesystem with ordered data mode. Quota mode: none.
[ 104.026099] EXT4-fs error (device dm-3): ext4_validate_block_bitmap:390: comm ext4lazyinit: bg 3999: bad block bitmap checksum
[ 104.026106] Aborting journal on device dm-3-8.
[ 104.065619] EXT4-fs (dm-3): Remounting filesystem read-only
[ 398.089528] EXT4-fs (dm-3): error count since last fsck: 1804
[ 398.089540] EXT4-fs (dm-3): initial error at time 1671056071: ext4_lookup:1836: inode 32640029
[ 398.089552] EXT4-fs (dm-3): last error at time 1673554480: ext4_validate_block_bitmap:390
[ 552.946132] EXT4-fs (dm-3): unmounting filesystem.
[ 781.480164] EXT4-fs warning (device dm-3): ext4_clear_journal_err:6017: Filesystem error recorded from previous mount: IO failure
[ 781.480171] EXT4-fs warning (device dm-3): ext4_clear_journal_err:6019: Marking fs in need of filesystem check.
[ 781.521341] EXT4-fs (dm-3): warning: mounting fs with errors, running e2fsck is recommended
[ 781.547854] EXT4-fs (dm-3): recovery complete
[ 781.568344] EXT4-fs (dm-3): mounted filesystem with ordered data mode. Quota mode: none.
[ 787.456453] EXT4-fs error (device dm-3): ext4_validate_block_bitmap:390: comm ext4lazyinit: bg 3999: bad block bitmap checksum
[ 787.456460] Aborting journal on device dm-3-8.
[ 787.488395] EXT4-fs (dm-3): Remounting filesystem read-only