Disk image: Change allocated space possible ?
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:
Apparently this is something I can do, now the question is, is it safe ?