[ubuntu-cloud] size of uec images

Soren Hansen soren at ubuntu.com
Thu Oct 8 09:02:44 BST 2009


On Wed, Oct 07, 2009 at 11:35:58PM -0400, Scott Moser wrote:
> Essentially, something like:
>    truncate "--size=$new_size" "$new_image"
>    mke2fs -j $new_image
>    sudo mount -o loop,ro "${old_image}" /mnt/tmp1
>    sudo mount -o loop "${new_image}" /mnt/tmp2
>    rsync -a /mnt/tmp1/ /mnt/tmp2
>    sudo umount /mnt/tmp1
>    sudo umount /mnt/tmp2

Why not just:
  truncate --size="${new_size}" "${img}"
  resize2fs "${img}"

? 

> I cant think of any negatives of this plan, but wanted to make sure I
> wasn't missing something.  Anyone have thoughts ?

Nor can I. It looks good.

-- 
Soren Hansen                 | 
Lead virtualisation engineer | Ubuntu Server Team
Canonical Ltd.               | http://www.ubuntu.com/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url : https://lists.ubuntu.com/archives/ubuntu-cloud/attachments/20091008/1794c761/attachment.pgp 


More information about the Ubuntu-cloud mailing list