On Wed, Dec 24, 2014 at 01:32:42AM +0300, Maxim Malkov wrote: > # mkfs.ext4 /dev/loop0 100M # adjust if necessary, should be less than > partition size > > Superblock backups stored on blocks: > 8193, 24577, 40961, 57345, 73729 > (pick one) > > # mount -t ext4 -o sb=40961 /dev/loop0 /media/ > # resize2fs /dev/loop0 > resize2fs 1.42.12 (29-Aug-2014) > Filesystem at /dev/loop0 is mounted on /media; on-line resizing required > old_desc_blocks = 1, new_desc_blocks = 4 > > Now, depending on your luck, various things may happen. resize2fs may hang. > You might see BUG() in your dmesg. Either way, system will become > severely corrupted (as indicated by fsck). You won't be able to mount > it, either. Thanks for the bug report; I've can reproduce this using a 3.18 based kernel. It may be that simplest bug fix is to simply disallow resizing if we are using a backup superblock. - Ted -- To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html