Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

My mounted EBS volume is not showing up

Trying to mount a 384G volume from old instance to a newly configure instance (8G). Attached 384G volume shows up on lsblk but on df -h it doesn't come up at all. What am I doing wrong?

[ec2-user@ip-10-111-111-111 ~]$ lsblk
NAME  MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
xvdf  202:80   0  384G  0 disk 
xvda1 202:1    0    8G  0 disk /

[ec2-user@ip-10-111-111-111 ~]$ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/xvda1      7.9G  1.5G  6.4G  19% /
tmpfs           1.9G     0  1.9G   0% /dev/shm

Note: On EC2 instance dashboard it displays

Root device: /dev/sda1 Block devices: /dev/sda1 /dev/sdf

like image 408
Maca Avatar asked Apr 02 '14 15:04

Maca


People also ask

How do I know if my EBS is attached to EC2?

Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/ . In the navigation pane, choose Instances. Select the instance. In the Description tab, for Block devices, select the block device mapping and then choose the EBS ID to view additional details for the volume.

How do I add EBS volume to existing EC2 instance?

To attach an EBS volume to an instance using the console Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/ . In the navigation pane, choose Elastic Block Store, Volumes. Select an available volume and choose Actions, Attach Volume. For Instance, start typing the name or ID of the instance.

Where can I find unattached EBS volumes?

01 Login to the AWS Management Console. 02 Navigate to EC2 dashboard at https://console.aws.amazon.com/ec2/. 03 In the navigation panel, under Elastic Block Store, click Volumes. 04 Select your unattached volume.


1 Answers

The df -k will only show mounted volumes. You will need to mount your volume first, like this mount /dev/xvdf /mnt then you will be able to access it's content from /mnt and see it when typing df -k

like image 80
Sébastien Stormacq Avatar answered Sep 22 '22 09:09

Sébastien Stormacq