Gentoo Archives: gentoo-user

From: Mart Raudsepp <leio@g.o>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Can I resize /dev/shm on the fly?
Date: Mon, 29 May 2017 19:05:21
Message-Id: 1496084702.16423.0.camel@gentoo.org
In Reply to: [gentoo-user] Can I resize /dev/shm on the fly? by Walter Dnes
1 Ühel kenal päeval, E, 29.05.2017 kell 14:47, kirjutas Walter Dnes:
2 >   I was using a chroot, and I bind-mounted the chroot's /dev and
3 > /proc
4 > and /sys on top of the host machine's directories.  Bad idea... I now
5 > have a 10 megabyte /dev/shm on the host.  Is it possible to resize
6 > /dev/shm to approx 1 gigabyte without rebooting?
7
8 mount -oremount,size=1G /dev/shm
9
10 Provided it's a tmpfs like it is for me.
11
12 >   And how do I set up a working /dev and /proc and /sys on the chroot
13 > separately to avoid this in future?  I need /proc/cpuinfo because I
14 > have
15 > a build script in the chroot that checks the number of cores, and
16 > sets
17 > makeopts accordingly.  Also I need /dev/null.

Replies

Subject Author
[gentoo-user] [SOLVED] Can I resize /dev/shm on the fly? Walter Dnes <waltdnes@××××××××.org>