Skip to content

Instantly share code, notes, and snippets.

@shiranGinige
Last active August 29, 2015 14:18
Show Gist options
  • Save shiranGinige/9140270de9700e1d1edc to your computer and use it in GitHub Desktop.
Save shiranGinige/9140270de9700e1d1edc to your computer and use it in GitHub Desktop.
AWS / EBS creating and attaching volumes
1. create the EBS volume /snapshot from the console and attach it with the instance
$ sudo mkfs -t ext3 /dev/sdf
$ sudo mkdir /mnt/data-store
$ sudo mount /dev/sdf /mount/data-store
2. to map a drive from a snapshot
- make the snapshot a volume from the console and attach it with the instance
to view how the new drive is mapped with the instance
$ lsblk
for example the new drive might be mapped as /dev/xvdp. find that out and mount it to a seperate directory
$ sudo mount /dev/xvdp /mount/data-store2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment