# Fresh install on ubuntu. Missing space on disk

**URL:** https://meta.discourse.org/t/fresh-install-on-ubuntu-missing-space-on-disk/79320
**Category:** Self-hosting
**Tags:** server-resources
**Created:** [January 29, 2018, 11:21pm UTC](https://meta.discourse.org/t/fresh-install-on-ubuntu-missing-space-on-disk/79320 "2018-01-29T23:21:36Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![fredkgb](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fredkgb/32/122407_2.png) [@fredkgb](https://meta.discourse.org/u/fredkgb)
#### Post date: [January 29, 2018, 11:21pm UTC](https://meta.discourse.org/t/fresh-install-on-ubuntu-missing-space-on-disk/79320/1 "2018-01-29T23:21:36Z")

</div>

My VPS have 10gb. It’s a fresh 16.04 Ubuntu install. I followed this tutorial : [discourse/docs/INSTALL-cloud.md at main · discourse/discourse · GitHub](https://github.com/discourse/discourse/blob/master/docs/INSTALL-cloud.md)

I got this message after doing the ./discourse-setup command.

> You have less than 5GB of free space on the disk where /var/lib/docker is located. You will need more space to continue  
> Filesystem Size Used Avail Use% Mounted on  
> /dev/sda1 9.7G 5.1G 4.6G 54% /

I tried the command for cleaning docker images. But I still goot this message. I assume I could upgrade my VPS space. But wow. 10gb is not enough really? .. Is there any other way to solve this?

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [January 29, 2018, 11:34pm UTC](https://meta.discourse.org/t/fresh-install-on-ubuntu-missing-space-on-disk/79320/2 "2018-01-29T23:34:56Z")

</div>

You also need swap, unless your machine has 4GB or more RAM, and that is typically 2GB of space. You will have a bad time if all you have is 10GB of drive to work with. Even [the $5/month Digital Ocean plans](https://www.digitalocean.com/pricing/) offer 25GB of disk space.

---

<div class="post-metadata">

### Author: ![fredkgb](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fredkgb/32/122407_2.png) [@fredkgb](https://meta.discourse.org/u/fredkgb)
#### Post date: [January 30, 2018, 12:01am UTC](https://meta.discourse.org/t/fresh-install-on-ubuntu-missing-space-on-disk/79320/3 "2018-01-30T00:01:21Z")

</div>

Ok then i’ll upgrade!

---

<div class="post-metadata">

### Author: ![Irwin\_Binamungu](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/irwin_binamungu/32/88422_2.png) [@Irwin\_Binamungu](https://meta.discourse.org/u/Irwin_Binamungu)
#### Post date: [March 2, 2018, 6:48pm UTC](https://meta.discourse.org/t/fresh-install-on-ubuntu-missing-space-on-disk/79320/4 "2018-03-02T18:48:02Z")

</div>

I am having a similar issue…i am installing Discourse in my local computer with CentOS7 and this is what i am seeing…  
Status: Downloaded newer image for discourse/base:2.0.20171231  
You have less than 5GB of free space on the disk where /var/lib/docker is located. You will need more space to continue  
Filesystem Size Used Avail Use% Mounted on  
/dev/sda8 9.1G 6.3G 2.4G 73% /

I do have SWAP partition which was 6GB when i was installing the OS just a few days ago.  
Can someone help me with a solution to this. I have not installed anything in this OS and have dedicated 80 GB of my hard disk partition to this OS.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [March 2, 2018, 7:31pm UTC](https://meta.discourse.org/t/fresh-install-on-ubuntu-missing-space-on-disk/79320/5 "2018-03-02T19:31:35Z")

</div>

> [@Irwin\_Binamungu](#):
>
> have dedicated 80 GB of my hard disk partition to this OS.

> [@Irwin\_Binamungu](#):
>
> /dev/sda8 9.1G 6.3G 2.4G 73% /

Docker, by default, will store images at `/var/lib/docker`. Your `/` partition only have 9GB with only 2.4GB available. This can lead to problems, so we warn you before they happen.

You can:

- Add more space to the `/` partition, or

- Move docker image folder to another partition with more free space.

---

<div class="post-metadata">

### Author: ![Irwin\_Binamungu](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/irwin_binamungu/32/88422_2.png) [@Irwin\_Binamungu](https://meta.discourse.org/u/Irwin_Binamungu)
#### Post date: [March 2, 2018, 7:37pm UTC](https://meta.discourse.org/t/fresh-install-on-ubuntu-missing-space-on-disk/79320/6 "2018-03-02T19:37:23Z")

</div>

I am reading online about increasing the size of the partition but it seems risky especially with CentOS. Something to do with the need to comment a partition else the OS will go to emergency mode. I am not that good with commands to know what commenting a partition is so i don’t want to risk damaging the OS…

> <https://serverfault.com/questions/765302/how-to-move-disk-space-from-centos-home-to-centos-root>

---

<div class="post-metadata">

### Author: ![Vaping\_Community](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vaping_community/32/89248_2.png) [@Vaping\_Community](https://meta.discourse.org/u/Vaping_Community)
#### Post date: [March 2, 2018, 8:51pm UTC](https://meta.discourse.org/t/fresh-install-on-ubuntu-missing-space-on-disk/79320/7 "2018-03-02T20:51:55Z")

</div>

I ran into this problem with my localhost when setting up a DEV environment in Ubuntu 16.04.

I had to use a fixed drive instead of dynamic, ended up using a 50GB VDI

---

<div class="post-metadata">

### Author: ![Irwin\_Binamungu](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/irwin_binamungu/32/88422_2.png) [@Irwin\_Binamungu](https://meta.discourse.org/u/Irwin_Binamungu)
#### Post date: [March 3, 2018, 3:14am UTC](https://meta.discourse.org/t/fresh-install-on-ubuntu-missing-space-on-disk/79320/8 "2018-03-03T03:14:56Z")

</div>

Update on Missing Space on Disk: Since my hard drive partitions were not LVM, I opted to use GpartedLive on a USB Stick, resized my hard drive after making the stick bootable and rebooted my computer. I only landed on a simple error which needed me to add a colon : in my app.yml file…line 89 which i did and resumed the battle to install this amazing software. All went well for me as it successfully installed. 🙂
