Size in superblock is different from the physical size of the partition

  • 7006911
  • 24-Sep-2010
  • 27-Apr-2012


Novell Open Enterprise Server 2 (OES 2) Linux Support Pack 1


After having resized the filesystem (FS) and/or the underlying partition of the FS, a similar message can be seen:

The filesystem size (according  to the superblock) is 12343462 blocks
The physical size of the device is 10093123
Either the superblock or the partition table is likely to be corrupt!


Obviously, only the filesystem superblock is corrupted.
To fix this issue, execute the following commands, in case if it is an ext2/3 filesystem:

mke2fs -S /dev/XXX && fsck /dev/XXX

/dev/XXX has to be replaced with the corresponding device.
For other FS, it is expected to use the corresponding mkfs commands.
With the "-S" option, only the superblock and the group descriptors will be reinitialized.
The "fsck" command right after the first one is run in order to fix/adjust the group descriptors.