Issues with luks/cryptsetup on OpenWrt-23 snapshot

openWRT-23 snapshot still doesn't work properly with luks/cryptsetup ...
still rw errors on luks devices ...

Have you reported it already on GitHub?

2 Likes

Yes, I did.

root@OpenWrt:~# mkfs.ext4 /dev/mapper/home 
mke2fs 1.47.0 (5-Feb-2023)
warning: Unable to get device geometry for /dev/mapper/home
/dev/mapper/home contains a ext4 file system
	last mounted on Thu Jun  1 18:15:02 2023
Proceed anyway? (y,N) y
Creating filesystem with 3839232 4k blocks and 960992 inodes
Filesystem UUID: 76c272f2-f123-481c-9512-4eac174fee8b
Superblock backups stored on blocks: 
	32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208

Allocating group tables: done                            
Writing inode tables: done                            
Creating journal (16384 blocks): done
Writing superblocks and filesystem accounting information: done   

root@OpenWrt:~# 
root@OpenWrt:~# 
root@OpenWrt:~# 
root@OpenWrt:~# mount /dev/mapper/home /home
mount: mounting /dev/mapper/home on /home failed: I/O error
root@OpenWrt:~# dmesg 
[ 1158.440387] usb 2-1: new high-speed USB device number 2 using dwc2
[ 1158.699002] usb-storage 2-1:1.0: USB Mass Storage device detected
[ 1158.708794] scsi host0: usb-storage 2-1:1.0
[ 1159.773636] scsi 0:0:0:0: Direct-Access     Generic  Flash Disk       8.07 PQ: 0 ANSI: 4
[ 1159.788876] sd 0:0:0:0: [sda] 30720000 512-byte logical blocks: (15.7 GB/14.6 GiB)
[ 1159.796476] sd 0:0:0:0: [sda] Write Protect is off
[ 1159.799864] sd 0:0:0:0: [sda] Mode Sense: 23 00 00 00
[ 1159.801392] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[ 1159.818131]  sda: sda1
[ 1159.826196] sd 0:0:0:0: [sda] Attached SCSI removable disk
[ 1185.902815] EXT4-fs (dm-0): warning: mounting fs with errors, running e2fsck is recommended
[ 1185.970165] EXT4-fs error (device dm-0): ext4_init_orphan_info:617: comm mount: orphan file block 33: bad checksum
[ 1185.980127] EXT4-fs (dm-0): mount failed
[ 1256.358470] EXT4-fs error (device dm-0): ext4_init_orphan_info:611: comm mount: orphan file block 46: bad magic
[ 1256.368169] EXT4-fs (dm-0): mount failed
root@OpenWrt:~# uname -a
Linux OpenWrt 5.15.114 #0 SMP Wed May 31 20:00:48 2023 mips GNU/Linux