Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The attached volume does not appear

Tags:

amazon-ec2

I have an instance that I need to attach and mount a volume to it. I have some unsuccessful attempts, then finally, I unmounted the volume.

Then I performed the following command sudo df -h to know the volumes before I attach the volume from a public snapshot. I got:

Filesystem      Size  Used Avail Use% Mounted on
/dev/xvda1      8.0G  989M  6.7G  13% /
udev             17G  8.0K   17G   1% /dev
tmpfs           6.7G  164K  6.7G   1% /run
none            5.0M     0  5.0M   0% /run/lock
none             17G     0   17G   0% /run/shm
/dev/xvdb       827G  201M  785G   1% /mnt

Then, I attached a volume (that I created from a publicly available snapshot) to my instance. See: enter image description here

Then, I made sure that the status for the volume is attached to my instance. I performed the command again. I got the same previous output before I attach the volume.

Filesystem      Size  Used Avail Use% Mounted on
/dev/xvda1      8.0G  989M  6.7G  13% /
udev             17G  8.0K   17G   1% /dev
tmpfs           6.7G  172K  6.7G   1% /run
none            5.0M     0  5.0M   0% /run/lock
none             17G     0   17G   0% /run/shm
/dev/xvdb       827G  201M  785G   1% /mnt

The reason that I am doing this is that I need to mount the newly attached volume. There were several unsuccessful attempts in this post if you need more information about my problem: How to search for a file or directory in Linux Ubuntu machine

Please, help me to solve this issue.

like image 918
Jury A Avatar asked Nov 17 '25 17:11

Jury A


1 Answers

After attaching the volume, you still have to mount it:

mount -t <fs_type> /dev/xvdf /path/to/your/directory
like image 73
j0nes Avatar answered Nov 19 '25 08:11

j0nes