I create a Linux Amazon Instance with default 8G EBS volume. After that, I create a new 20G EBS volume and mount it to /mnt/my-data.
When I run $ df -h. It's show:
/dev/xvda1 7.9G Mounted on /
/dev/xvdf  20G  Mounted on /mnt/my-data
I am very new with Linux, so I just want to know:
- The folder 
/mnt/my-datacan hold the file with maximize volume is20G or 28G? - The folder 
/varcan hold the file with maximize volume is 8G or 28G ? - Now I want to mount 
/dev/xvdfto/var, what should I do? 
Thanks so much!
                        
20GB. what you see is what you get. (in fact a little less than 20GB as some space will be eaten up by filesystem metadata
8GB. again same reasoning as above
umountfrom /mnt/my-data and the mount it on /var. By doing this , you will lose all the stuff you have in /var.