Log in

No account? Create an account
Tech Tip: Saving hard disk space on Amazon AWS Linux Instances - Shlomif's Technical Posts Community [entries|archive|friends|userinfo]
Shlomif's Technical Posts Community

[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

[Links:| Shlomi Fish's Homepage Main Journal Homesite Blog Planet Linux-IL Amir Aharoni in Unicode open dot dot dot ]

Tech Tip: Saving hard disk space on Amazon AWS Linux Instances [Feb. 22nd, 2017|10:44 pm]
Shlomif's Technical Posts Community


[Tags|, , , , , ]
[Current Location |Home]
[Current Mood |productive]
[Current Music |One Thing cover by Cimorelli]

By default, AWS' 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:

  1. 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 junk preinstalled.

  2. Remove packages that you installed and no longer need (e.g: gcc).

  3. 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.

  4. Consider using S3 or similar instead of the local hard disk, which should be much cheaper.

Good luck!


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 it. See the instructions on how to comply with it.