File System size discrepancies
I'm new to the world of LVM (and Fedora for that matter) and I'm used to doing everything via simple partitions... At any rate here's my story, my hard drive had a primary partition with windows on it, and an extended partition with some Linux distro (call it sda5) and swap space. I told the Fedora installer to resize sda5, and it made a PV in there. It split it into the new system and some more swap space, so I had it delete the old swap partition, make a new PV in that space, hook it up to the volume group and grow the Fedora root. Once the system got installed, I wanted to mount sda5 to get out some data, and it refused to mount with "wrong fs type, bad option, bad superblock on /dev/sda5, missing codepage or helper program, or other error". Upon inspecting dmesg, I got:
bad geometry: block count 27498496 exceeds size of device (27498280 blocks)
So I tried resize2fs -f and I got:
Attempt to read block from filesystem resulted in short read while trying to resize /dev/sda5
Please run 'e2fsck -fy /dev/sda5' to fix the filesystem
after the aborted resize operation.
e2fsck gave me:
The filesystem size (according to the superblock) is 27498496 blocks
The physical size of the device is 27498280 blocks
Either the superblock or the partition table is likely to be corrupt!
and implied that I should give up the ghost, basically. So I tried e2fsck -b, using a superblock from mke2fs -n, but it gave me the exact same output. I'm running out of tricks, does anyone know what could be going on and how to fix it? Supposing the filesystem is lost (which doesn't seem obvious to me) how should I go about recovering it? edit: the FS was perfectly fine before I did the install, I actually mounted it and checked it out from the live USB right before I installed.