I've created an EC2 instance from an Ubuntu AMI but the instance storage is split, with 8gig on the root and the rest mounted at /mnt
Why is this? How do I get it all mounted on the root?
I've created an EC2 instance from an Ubuntu AMI but the instance storage is split, with 8gig on the root and the rest mounted at /mnt
Why is this? How do I get it all mounted on the root?
This is just the way AWS provisions ephemeral storage based instances. It is not unique to the Ubuntu AMIs
The default root partition for Ubuntu in AWS is 8Gb.
You can change this to whatever size you need. Currently, AWS support 16 TB (EBS) Volumes
Default AWS documentation: How to run-instances
Using command line directly:
--block-device-mapping "[{\"DeviceName\":\"/dev/sda1\", \"Ebs\":{\"VolumeSize\":100} } ]"
This will create your root volume 100Gb.
You can see more tips and tricks here: How to use –block-device-mappings to manage instance volumes with AWS CLI
Regards.