I’m having trouble decrypting and mounting an external disk encrypted with LUKS on my raspberry pi 4 to my new Raspberry Pi 5 (both with Ubuntu server 24.04).
The same setup works perfectly on my Raspberry Pi 4, but when I run the decryption command on the Raspberry Pi 5, I encounter filesystem corruption issues.
Disk Setup:
The external disk is encrypted using cryptsetup/LUKS and using USB3.The partition on the disk is of ext4 format.
Working on Raspberry Pi 4: Decryption and mounting work without any issues.
sudo cryptsetup open /dev/sda crypted && sudo mount /dev/mapper/crypted /mnt/external_drive
Issue on Raspberry Pi 5:
When I run the same command, I get a corrupted filesystem error and cannot mount the decrypted partition.
Running fsck on the Raspberry Pi 5 indicates filesystem errors, while the same fsck on the Raspberry Pi 4 shows no issues.
What can be wrong?