Ubuntu EC2 AMI with XFS root EBS Volume (10.04 LTS, Lucid Lynx)

Are you also in need of a current Ubuntu LTS (10.04, Lucid Lynx) AMI for Amazon Web Services, with EBS Boot and XFS as file system? Maybe because you would like to make consistent snapshots via xfs_freeze and ec2_consistent_snapshot? Then this article by Scott Moser helps you out. But hey. It will not work, because latest 10.04 Ubuntu EC2 AMIs have their boot partition labeled cloudimg-rootfs, which is too long for an XFS file system label, XFS supports only 12 characters. Ubuntu´s Maverick and Natty AMIs for EC2 have already been fixed, the label there is uec-rootfs. If you follow Scott´s instructions from the link above, your system will not boot, the error looks like this:

ALERT! /dev/disk/by-label/cloudimg-rootfs does not exist. Dropping to a shell!

All you have to do is change the label of the XFS partition from cloudimg-rootfs to uec-rootfs, also replace the old label in

  • /boot/grub/menu.lst
  • /boot/grub/grub.cfg
  • /etc/fstab (missed that, thanks @scott)

I have built an AMI, complete with above steps. So you can launch Ubuntu 10.04 LTS Lucid Lynx, with EBS root and XFS: