brite, a MVC Framework for jQuery

Amazon EC2: Start Instance with ebs root and instance storage

November 20th, 2013 by jeremychone
  1. Launch instance in AWS UI
  2. Do not do quick start, they are EBS only Linux AMIs
  3. Go AMI Market Place, search for “Amazon Linux AMI 64″ and pick “Amazon Linux AMI x86_64 PV EBS” (it’s the one with “free eligible.” Probably not use the free tier, but this is the right AMI to be able to add EBS and Instance storage)
  4. On instance type, make sure to pick a type that has local storage (some are EBS only)
  5. At the storage settings, add a storage and select “instance” (let’s assume you picked “/dev/sdb” as Device)
  6. Finish to create the instance and login

[ec2-user@ip-10-191-177-125 ~]$ df -kh
/dev/xvda1            7.9G  983M  6.9G  13% /
tmpfs                 1.9G     0  1.9G   0% /dev/shm
/dev/xvdb             394G  199M  374G   1% /media/ephemeral0

To get a better name, can do another mount on /dev/xvdb

[ec2-user@ip-10-191-177-125 ~]$ sudo vi /ect/fstab

In the /etc/fstab replace the /dev/sdb to your liking.

#
LABEL=/     /           ext4    defaults,noatime  1   1
tmpfs       /dev/shm    tmpfs   defaults        0   0
devpts      /dev/pts    devpts  gid=5,mode=620  0   0
sysfs       /sys        sysfs   defaults        0   0
proc        /proc       proc    defaults        0   0
/dev/sdb    /local      auto    defaults        0   0

remount all

[ec2-user@ip-10-191-177-125 ~]$ sudo mount -a

One Response to “Amazon EC2: Start Instance with ebs root and instance storage”

  1. Bits And Pix » Amazon EC2: Installing Postgres 9.3 on Amazon Linux & Instance Local Storage Says:

    [...] Bits And Pix No Buzz, just Code, Design, and Sys-Admin stuff. brite, a MVC Framework for jQuery « Amazon EC2: Start Instance with ebs root and instance storage [...]