Mounting an EBS Volume to an EC2 Instance
Mounting an EBS Volume to an EC2 Instance
This document provides a reference for attaching and mounting an Amazon EBS (Elastic Block Store) volume to an EC2 instance.
Tutorial
For a detailed, step-by-step guide on how to mount an EBS volume, please refer to the following tutorial:
How To Mount an EBS Volume on an EC2 Instance
The process generally involves:
- Creating an EBS volume in the AWS console.
- Attaching the volume to your target EC2 instance.
- Connecting to your EC2 instance via SSH.
- Finding the device name for the attached volume (e.g.,
/dev/sdf). - Checking if the volume has a file system.
- Formatting the volume with a file system (e.g.,
ext4) if it doesn’t have one. - Creating a mount point (a directory) on your instance.
- Mounting the volume to the created mount point.
- Configuring auto-mounting on system reboot by editing the
/etc/fstabfile.