Skip to content

Amazon AWS Help

Gleb Kuznetsov edited this page Apr 3, 2014 · 1 revision

This page contains a growing number of helpful hints for working with AWS.

Mounting a new drive.

Based on instructions here: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-using-volumes.html

  1. Create a new EBS volume.

  2. Attach it to the EC2 instance you want to access it from.

  3. Check that the drive is there by running

     [ec2-user ~]$ lsblk
    
  4. Format the clean EBS volume to be a filesystem. WARNING: Don't do this for a drive with data on it as you'll wipe it! For example, if your volume is attached as device /dev/xvdf:

     [ec2-user ~]$ sudo file -s /dev/xvdf
    
  5. Once the filesystem is built, make a target for mounting:

     [ec2-user ~]$ sudo mkdir /mydata
    
  6. Mount the device:

     [ec2-user ~]$ sudo mount /dev/xvdf /mydata
    

Clone this wiki locally