Running Ubuntu 11.04(natty) on an EC2 micro instance. Setup 1gb swap file at /mnt/swap. Works fine until I reboot and then the swap is not active. I can activate it manually using swapon -a, but my line in /etc/fstab is ignored.
/mnt/swap none swap defaults 0 0
(I also tried "sw" instead of defaults)
I'm using an EBS backed AMI.
This does work if I put the swap file in other places, but not at /mnt/. I'm curious as to why?