|Tech Tip: Saving hard disk space on Amazon AWS Linux Instances
||[Feb. 22nd, 2017|10:44 pm]
Shlomif's Technical Posts Community
EC2 machines are given a hard disk of only 8 GB of space, and each extra
gigabyte costs extra, even if you rent a machine with much more RAM than that.
Some options you can try if you don't want to enlarge the hard disk are:
Remove unnecessary system packages (using the
“apt remove” command on Ubuntu/Debian VMs or
equivalents. From my experience, the default Ubuntu VMs ship with a lot of
Remove packages that you installed and no longer need (e.g: gcc).
One can also try to do “rm -fr /usr/share/man /usr/share/doc” and other
unnecessary directories that are cheaper to use on local VMs or host systems.
Consider using S3 or
similar instead of the local hard disk, which should be much cheaper.
Copyright by Shlomi Fish, 2017.
You can reuse this entry under
the Creative Commons
Attribution 3.0 Unported licence, or at your option any later version of
on how to comply with it.