1.1. Mount EBS - gjcxyo/AWS GitHub Wiki

1) Create a Volume (ManagementConsoleでVolume作成)

2) Attach the Volume (ManagementConsoleでEC2に作ったVolumeをAttach)

3) Format the attached volume (only first time) (EC2のCLI上でmkfsでフォーマット(最初だけ))

$ sudo mkfs -t ext4 /dev/sdf
mke2fs 1.42.3 (14-May-2012)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
131072 inodes, 524288 blocks
26214 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=536870912
16 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks: 
	32768, 98304, 163840, 229376, 294912

Allocating group tables: done                            
Writing inode tables: done                            
Creating journal (16384 blocks): done
Writing superblocks and filesystem accounting information: done 

4) Create a mount-point (マウントポイント作成)

$ sudo mkdir /ebs

5) Mount the volume (マウント)

$ sudo mount /dev/sdf /ebs