Skip to content

Instantly share code, notes, and snippets.

@sholloway
Last active December 11, 2015 00:59
Show Gist options
  • Save sholloway/4520281 to your computer and use it in GitHub Desktop.
Save sholloway/4520281 to your computer and use it in GitHub Desktop.
Basic directions to attach an EBS volume to an EC2 instance.
Attached the EBS volume to the EC2 Instance
http://www.webmastersessions.com/how-to-attach-ebs-volume-to-amazon-ec2-instance
Logged in to the EC2 instance,
The volume should show up as /dev/sdf or something.
#Format the volume
sudo mkfs.ext3 /dev/sdf
#create the directory to link the volume to.
mkdir /spatial-db
#link the directory to the EDS Volume by modifying the fstab file
echo “/dev/sdf /spatial-db ext3 noatime 0 0″ >> /etc/fstab
#mount the directory
mount /spatial-db
#check the disk size
df -h /spatial-db
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment