Gentoo Archives: gentoo-user

From: Nikos Chantziaras <realnc@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: [SOLVED] Can I resize /dev/shm on the fly?
Date: Mon, 29 May 2017 23:21:05
Message-Id: ogiac6$f67$1@blaine.gmane.org
In Reply to: [gentoo-user] [SOLVED] Can I resize /dev/shm on the fly? by Walter Dnes
1 On 05/29/2017 10:13 PM, Walter Dnes wrote:
2 > On Mon, May 29, 2017 at 10:05:02PM +0300, Mart Raudsepp wrote
3 >> Ühel kenal päeval, E, 29.05.2017 kell 14:47, kirjutas Walter Dnes:
4 >>> I was using a chroot, and I bind-mounted the chroot's /dev and
5 >>> /proc
6 >>> and /sys on top of the host machine's directories. Bad idea... I now
7 >>> have a 10 megabyte /dev/shm on the host. Is it possible to resize
8 >>> /dev/shm to approx 1 gigabyte without rebooting?
9 >>
10 >> mount -oremount,size=1G /dev/shm
11 >>
12 >> Provided it's a tmpfs like it is for me.
13 >
14 > Thanks; that pointed me in the right direction. The command gave me a
15 > response "mount: /dev/shm not mounted or bad option". After some trial
16 > and error, I found I had to...
17 >
18 > mount -o remount,size=1G /dev
19
20 That does not look correct. /dev/shm should be a separate mount point,
21 independent of /dev.

Replies

Subject Author
Re: [gentoo-user] Re: [SOLVED] Can I resize /dev/shm on the fly? Mick <michaelkintzios@×××××.com>