> User choses Resize, and resizes a partition from 300 GB to 60 GB. > > But then when he tries to mount it, > > # mount /dev/sda5 /mnt/usb/thumb/ > mount: /mnt/usb/thumb: wrong fs type, bad option, bad superblock on > /dev/sda5, missing codepage or helper program, or other error. > # journalctl -f > Dec 09 03:27:41 jidanni5 kernel: EXT4-fs (sda5): bad geometry: block count > 103356160 exceeds size of device (15805440 blocks)
> So remove Resize or make it warn that any filesystems present will no > longer be mountable if used. Please educate me how resize would be different from any other command of fdisk that actually manipulates partitions (as opposed to merely displaying stuff)? This is a tool that lays out new partitions, of course the contents may be lost! But, resize actually is different: it doesn't destroy contents, merely the part past the new size. So do resize the contents first! This is a low-level tool, it doesn't know how many storage layers you have atop the partition block device so it can't do that for you. Use a clicky-clicky tool if that's hard, but be prepared with those being confused by anything but one-simple-filesystem-per-partition. Meow. -- ⢀⣴⠾⠻⢶⣦⠀ ⣾⠁⢠⠒⠀⣿⡁ Ivan was a worldly man: born in St. Petersburg, raised in ⢿⡄⠘⠷⠚⠋⠀ Petrograd, lived most of his life in Leningrad, then returned ⠈⠳⣄⠀⠀⠀⠀ to the city of his birth to die.