Disk image: Change allocated space possible ?

Hi,

I've got a Linode 1024 and I've installed Ubuntu 12.04 LTS allocating all the disk space for my image. After installing all my needed software, etc, I realized that probably I don't need that much disk space for this project I've worked on. I did df -h and I got:

Filesystem Size Used Avail Use% Mounted on

/dev/xvda 48G 1.3G 44G 3% /

devtmpfs 493M 4.0K 493M 1% /dev

none 99M 192K 99M 1% /run

none 5.0M 0 5.0M 0% /run/lock

none 494M 0 494M 0% /run/shm

I think that, 20G are more then enough for this server. I'd like to know if there's a safe way to change the allocated disk space for this image ? I've done a manual snapshot, because I guess it's a good idea before trying to do something like this.

Any suggestion or advice is extremely appreciated,

Thanks a lot for your time!

–--------------- edit ----------------------

I found the following blog post:

http://ulyssesonline.com/2013/02/21/res … -at-linode">http://ulyssesonline.com/2013/02/21/resize-disk-images-at-linode

Apparently this is something I can do, now the question is, is it safe ?

1 Reply

Linode Staff

Yup. I think this is what you want:

https://library.linode.com/disk-images- … disk-image">https://library.linode.com/disk-images-config-profiles#sph_resizing-a-disk-image

-Chris

Reply

Please enter an answer
Tips:

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] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct