# Move discourse to another partition

**URL:** https://meta.discourse.org/t/move-discourse-to-another-partition/70212
**Category:** Self-hosting
**Created:** [17 september 2017 om 08:41 UTC](https://meta.discourse.org/t/move-discourse-to-another-partition/70212 "2017-09-17T08:41:15Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![hnaseri](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hnaseri/32/120660_2.png) [@hnaseri](https://meta.discourse.org/u/hnaseri)
#### Post date: [17 september 2017 om 08:41 UTC](https://meta.discourse.org/t/move-discourse-to-another-partition/70212/1 "2017-09-17T08:41:15Z")

</div>

How can I move my discourse to home partition? Right now all discourse data is in root partition and its growing fast. I am getting close to no space in my root partition.

```plaintext
df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/cl-root 50G 30G 21G 59% /
devtmpfs 7.7G 0 7.7G 0% /dev
tmpfs 7.7G 0 7.7G 0% /dev/shm
tmpfs 7.7G 731M 7.0G 10% /run
tmpfs 7.7G 0 7.7G 0% /sys/fs/cgroup
/dev/sda2 1016M 176M 840M 18% /boot
/dev/sda1 200M 9.5M 191M 5% /boot/efi
/dev/mapper/cl-home 221G 86G 136G 39% /home
tmpfs 1.6G 0 1.6G 0% /run/user/0
overlay 50G 30G 21G 59% /var/lib/docker/overlay/569939c5551cf2b821429584916dcaec83a644384abcd4c35b6423d58471fa92/merged
shm 64M 4.0K 64M 1% /var/lib/docker/containers/97dbcf0e733dde1cf80748fbde49bb770587c23e675c4610f9ceca12c6aecd56/shm

```

---

<div class="post-metadata">

### Author: ![fefrei](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fefrei/32/119538_2.png) [@fefrei](https://meta.discourse.org/u/fefrei)
#### Post date: [17 september 2017 om 08:50 UTC](https://meta.discourse.org/t/move-discourse-to-another-partition/70212/2 "2017-09-17T08:50:00Z")

</div>

The easiest way is to make sure Docker is stopped, move the offending folder(s) and create symlinks so they still appear in the original locations.

Make sure that whatever you do to `/var/lib/docker/` and `/var/discourse`, they stay on a volume with good performance characteristics, or you’ll be in for a bad time 🙂

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [18 september 2017 om 16:43 UTC](https://meta.discourse.org/t/move-discourse-to-another-partition/70212/3 "2017-09-18T16:43:02Z")

</div>

Could even just move /var/discourse/shared. The image itself doesn’t grow too much, while the uploads & database will.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [4 oktober 2019 om 08:40 UTC](https://meta.discourse.org/t/move-discourse-to-another-partition/70212/4 "2019-10-04T08:40:00Z")

</div>



---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [3 juni 2023 om 11:27 UTC](https://meta.discourse.org/t/move-discourse-to-another-partition/70212/5 "2023-06-03T11:27:53Z")

</div>



---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [3 juni 2023 om 12:14 UTC](https://meta.discourse.org/t/move-discourse-to-another-partition/70212/6 "2023-06-03T12:14:18Z")

</div>


