The workaround is to create a 128M journal via

mkfs.ext4 -J size=128

which is the size of journal generally created on a 20G disk anyway.

This costs 24k blocks (96M) on a 1G partition - which is about 10% of
the free blocks available.

When you do this Oneiric's resize2fs now appears to complete correctly
(with a 1310720M partition).

ubuntu@srv-xqubo:~$ resize2fs xxl
resize2fs 1.41.14 (22-Dec-2010)
Resizing the filesystem on xxl to 335544320 (4k) blocks.
The filesystem on xxl is now 335544320 blocks long.

But if you run e2fsck across that filesystem it is heavily corrupted.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/955272

Title:
  resize2fs fail with very large disks from small source image

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-initramfs-tools/+bug/955272/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to