Subject: Increasing size of / in diskless mode?

From: Mogens Jensen <[email-masked]>
Date: Thu, 17 Sep 2020 17:34:52 +0000

Hi,

In diskless mode total amount of RAM is equally split between / and
/dev/shm. How do I increase size of / and reduce size of /dev/shm?

Regards,
Mogens Jensen

---

From: Ivan Tham <[email-masked]>
Date: Fri, 18 Sep 2020 10:36:06 +0800

Hi,

Maybe `mount -o remount,size=2G /`?

Regards,
Ivan Tham

---

From: Natanael Copa <[email-masked]>
Date: Fri, 18 Sep 2020 07:50:34 +0200

On Thu, 17 Sep 2020 17:34:52 +0000

> /dev/shm. How do I increase size of / and reduce size of /dev/shm?

You increase the size of / with the boot option `rootflags=size=...`

For /dev/shm, I'm not sure.

---

From: Mogens Jensen <[email-masked]>
Date: Sun, 20 Sep 2020 19:33:53 +0000

Thanks. Both methods works. To achieve what I want, one can add this to
fstab:

tmpfs    /           tmpfs    size=90%                        0 0
tmpfs    /dev/shm    tmpfs    size=10%,nosuid,nodev,noexec    0 0

Regards,
Mogens Jensen