Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in AWS by (12.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.2k 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

0 votes
1 answer
Want to get 50% Hike on your Salary?

Learn how we helped 50,000+ professionals like you !

0 votes
1 answer
0 votes
1 answer
asked Jul 5, 2019 in AWS by yuvraj (19.1k points)

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...