2025-02-28
- shrank a partition while it was mounted in a system.
- How did I achieve this glorious task? Hibernate the os and shrank the partition from a live boot
- resumed working in the os and noticed that I wasn’t able to
mkdir
in the shrank partition - thought nothing of it, rebooted
- filesystem checks failed on boot
- live boot
- gparted would crash before it could fix the error since the the drive is 4tb. gparted would just fail after some time
- ran simple
sudo e2fsck -y -f -v /dev/mapper/nvme...crypt.
- 20 minutes in → echo $0 return 1 which ⇒ File system errors corrected
references
e2fsck(8): check ext2/ext3/ext4 file system - Linux man page