User Tools

Site Tools


Sidebar


guides:amazon_ec2:mount_aws_ebs_volume

Mount AWS EBS Volume

Do lsblk first to check volume device

ubuntu@server:~$ lsblk
NAME    MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
xvda    202:0    0     8G  0 disk
└─xvda1 202:1    0     8G  0 part /
xvdb    202:16   0   100G  0 disk

In the above the new volume to mount is xvdb

Create the ext4 file system on the device

sudo mkfs -t ext4 /dev/xvdb

Create the new mount point directory

sudo mkdir /mount-dirname

Edit /etc/fstab to add the new device

/dev/xvdb               /mount-dirname  ext4  defaults,nofail      0 2

Mount all file systems

sudo mount -a
guides/amazon_ec2/mount_aws_ebs_volume.txt · Last modified: 2016/04/16 18:13 by michaelc