0 votes
1 view
in AWS by (8.9k points)

I have installed Amazon EC2 fedora instance and copying the files from one location to another. But I am greeted with " No space left on the disk".

I did df -f.

with output:

Filesystem            Size  Used Avail Use% Mounted on

/dev/sda1              15G   15G   0    100% /

none                  312M   0    312M  0%   /dev/shm

I want to increase the space for ec2 instance on amazon. Can someone help me with it? Thanks for the help.

1 Answer

0 votes
by (18.5k points)

Here's how you can do it:

1. Go to AWS console and stop the instance

2. Detach the Volume and take a snapshot of the volume

3. Create a new volume using the snapshot

4. Attach the volume to your instance on the original mount point where the previous volume was mounted.

5. Restart the instance and SSH into it

6. Run the following command:

resize2fs /dev/xvde1

Related questions

Welcome to Intellipaat Community. Get your technical queries answered by top developers !