gparted refuses to resize partition
Solution 1:
You have a broken super-block :Unable to read the contents of this file system!
Check your filesystem:
sudo fsck.ext4 -v /dev/sdaX
If your filesystem is corrupted , you should have an output like this :The superblock could not be read....
Run mke2fs
command to find out the superblock backups:
sudo mke2fs -n /dev/sdaX
Restore the missing superblock through the e2fsck
command:
You should use the first superblock obtained from mke2fs
sudo e2fsck -b put_the_first_block_number_here /dev/sdaX
Reboot your system then run gparted
Solution 2:
similar error:
Unable to read the contents of this file system!
Because of this some operations may be unavailable.
The cause might be a missing software package.
The following list of software packages is required for ext4 file system support: lvm2.
solved:
stop gparted, run sudo pvs
and use the listed mapper of interest, then run
sudo pvresize /dev/mapper/sdX_crypt
restart gparted, error gone