#LUKS encrypted system keeps breaking filesystem after reboot

13 messages · Page 1 of 1 (latest)

fringe escarp
#

this is… very puzzling indeed

#

we could try and diagnose some kernel modules, but I’m not convinced they’re the issue

#

have you ever seen any failed messages on shutdown?

fringe escarp
#

I’ve found a weird thing that happened to me on an SD card with a FAT32 filesystem

#

in that with how Linux never wipes a partition when formatting, and how deletes are fairly shallow

#

older files and partition tables and whatnot are read by certain tools

#

and I eventually had to completely wipe the relevant part by piping /dev/zero in

#

maybe… you could try running blkdiscard on the partition, before reformatting

#

wiping with dd on an SSD is unfortunately not usually the best plan

#

I’m not sure how it affects filesystem stuff in the future, but it unnecessarily takes away a write/erase cycle from the SSD

#

and without a discard operation it will leave the SSD performing badly

shrewd flicker
#

@rocky urchin
You might try these aswell
nvme.noacpi=1 nvme_core.default_ps_max_latency_us=0
To your kernel

And these hooks order
HOOKS=(base systemd autodetect microcode modconf kms keyboard sd-vconsole block sd-encrypt filesystems fsck)

#

If still doesnt work try the lts kernel.