You are not logged in.
Ok, so I needed some free space on my hdd for dual-booting. Had a boot partition (sda1) and the main system partition (sda2). sda2 had around 420GB free out of 480GB. I boot from archiso and use parted to shrink sda2 so it ends at 450GB instead of 500GB. After that I can no longer mount the partition. Trying to boot into regular arch linux gives me an "ERROR: Bailing out", complains about the partition's physical size being smaller than the size according to the superblock and asks me to perform fsck manually. If I do, it does the checks, lists files and sizes numbers. If I exit and it automatically reboots, exact same thing happens over again.
I thought resizing unmounted partitions should be safe. Did I lose my data? Thanks for any help with this.
Last edited by ralph_13 (2018-01-12 17:50:59)
Offline
Did you forget to resize the filesystem before shrinking the partition?
I'd try using parted to recreate the partition at its original size, then shrinking the filesystem (to slightly smaller than needed), then shrinking the partition, then resizing the filesystem to use all available space.
Offline
Yes, I did forget that I had to resize the filesystems before shrinking the partitions. I tried what you did and that kind of fixed it. Although my /home folder was unharmed, most of /etc was just gone. So I just backed up my data and did a clean install. Thanks for the help.
Offline