Gentoo Archives: gentoo-user

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

Replies

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