How do I restore a CentOS 7 image with full hard drive space?

I asked this yesterday, but for some reason can't find the question. Forgive me if this is a duplicate.

I have made an image of a Linode 16GB, which had a 320GB disk and CentOS 7 installed. However, when I try to create a new Linode with that image, I only have 4GB available to me on the disk. Needless to say, this fills up quite fast. How can I create a new Linode 16GB with the image to include the full 320GB disk?

1 Reply

Linode Staff

The thing to keep in mind about creating an image is that it creates an exact copy of the original disk. The most likely reason why you're ending up with only 4GB available on the disk is that is how much space was left on the original image.

I would recommend running df -h on both the original and the new image to verify that they are listing the same amount of available space. If this is the case, then this post might help you find and remove any unnecessary files.

You might also want to take a look at this guide to deploying a saved image.

As always, if you have any other details that might help in troubleshooting don't hesitate to include them. Error messages and other specifics will help to find the best solution to your problem.


Please enter an answer

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct