Gentoo Archives: gentoo-user

From: Walter Dnes <waltdnes@××××××××.org>
To: gentoo-user@l.g.o
Subject: [gentoo-user] [SOLVED] Setting size of /dev/shm or cleaning up ancient /etc/fstab
Date: Thu, 09 May 2013 20:50:16
Message-Id: 20130509204951.GA1826@waltdnes.org
In Reply to: Re: [gentoo-user] Setting size of /dev/shm or cleaning up ancient /etc/fstab by Alan McKinnon
1 On Wed, May 08, 2013 at 08:43:53AM +0200, Alan McKinnon wrote
2 >
3 > a tmpfs defaults to half ram size. If yours is 10M, then quite obviously
4 > you run some code somewhere that does it different :-)
5 >
6 > You could go through the effort of tracking down why. Unless this is a
7 > default behaviour of mdev which needs debugging, pathcing and fixing, I
8 > don't think you should spend any brain cycles on this, just add this to
9 > the mount options
10 >
11 > size=50%
12
13 I think I found the root of the problem, in /etc/init.d/mdev
14
15 mount_it()
16 {
17 if fstabinfo --quiet /dev ; then
18 mount -n /dev
19 else
20 # Some devices require exec, Bug #92921
21 mount -n -t tmpfs -o "exec,nosuid,mode=0755,size=10M" mdev /dev
22 fi
23 }
24
25 I replaced "size=10M" with "size=50%" and rebooted. It now works
26 properly. Bug https://bugs.gentoo.org/show_bug.cgi?id=469226 filed.
27
28 --
29 Walter Dnes <waltdnes@××××××××.org>
30 I don't run "desktop environments"; I run useful applications