Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 196345 - <=baselayout-2.0.0_rc5 not auto-mounting /dev/shm
Summary: <=baselayout-2.0.0_rc5 not auto-mounting /dev/shm
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-19 01:29 UTC by Ryan Hill (RETIRED)
Modified: 2007-10-29 15:25 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
mount /dev/shm even if not in /etc/fstab (shm.patch,1.44 KB, patch)
2007-10-19 07:33 UTC, Roy Marples (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan Hill (RETIRED) gentoo-dev 2007-10-19 01:29:56 UTC
from what i can tell, bug #186814 indicates that /proc, /sys, /dev, and /dev/shm are handled by baselayout and so were removed from the /etc/fstab section of the handbook.  for the past month or two i've had problems running gmplayer from a user account.  i get about 1 frame/5 seconds and tons of error messages like

FGLTexMgr: open of shared memory object failed (Permission denied)
__FGLTexMgrCreateObject: __FGLTexMgrSHMmalloc failed!!!
fglX11AllocateManagedSurface: __FGLTexMgrCreateObject failed!!
FGLTexMgr: open of shared memory object failed (Permission denied)
__FGLTexMgrCreateObject: __FGLTexMgrSHMmalloc failed!!!
fglX11AllocateManagedSurface: __FGLTexMgrCreateObject failed!!

i came across bug #166378 and realized that my /dev/shm wasn't mounted and was only writable by root.  after adding it back into fstab everything works again.

should baselayout be handling this or is this possibly a configuration error?  i did grep -R for RC_USE_FSTAB in /etc but don't have it set anywhere.


[ebuild   R   ] sys-apps/baselayout-2.0.0_rc5  USE="pam unicode -bootstrap -build -static" 0 kB


dirtyepic@tycho ~ $ cat /etc/fstab
# /etc/fstab: static file system information.

# <fs>          <mount>     <type>  <opts>                      <d/p>
/dev/sda1       /boot       ext3    noauto,noatime              1 2
/dev/sda2       none        swap    sw                          0 0
/dev/sda3       /           ext3    data=writeback,noatime      0 1
/dev/lvm/home   /home       ext3    data=writeback,noatime      0 0
/dev/lvm/opt    /opt        ext3    data=writeback,noatime      0 0
/dev/lvm/usr    /usr        ext3    data=writeback,noatime      0 0
/dev/lvm/var    /var        ext3    data=writeback,noatime      0 0
/dev/sr0        /mnt/cdrom  auto    noauto,ro,user              0 0


dirtyepic@tycho ~ $ cat /proc/mounts
rootfs / rootfs rw 0 0
/dev/root / ext3 rw,noatime,data=writeback 0 0
proc /proc proc rw,nosuid,nodev,noexec 0 0
sysfs /sys sysfs rw,nosuid,nodev,noexec 0 0
udev /dev tmpfs rw,nosuid 0 0
devpts /dev/pts devpts rw,nosuid,noexec 0 0
none /lib/rc/init.d tmpfs rw,nosuid,nodev,noexec 0 0
/dev/mapper/lvm-home /home ext3 rw,noatime,data=writeback 0 0
/dev/mapper/lvm-opt /opt ext3 rw,noatime,data=writeback 0 0
/dev/mapper/lvm-usr /usr ext3 rw,noatime,data=writeback 0 0
/dev/mapper/lvm-var /var ext3 rw,noatime,data=writeback 0 0
usbfs /proc/bus/usb usbfs rw,nosuid,noexec 0 0
securityfs /sys/kernel/security securityfs rw,nosuid,nodev,noexec 0 0


Portage 2.1.3.14 (default-linux/x86/2007.0, gcc-4.2.3-pre20071009, glibc-2.6.1-r0, 2.6.22.9 i686)
=================================================================
System uname: 2.6.22.9 i686 Genuine Intel(R) CPU T2300 @ 1.66GHz
Timestamp of tree: Unknown
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.2-r1
dev-lang/python:     2.5.1-r2
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 2.0.0_rc5
sys-apps/sandbox:    1.2.18.1-r1
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1, 2.18.50.0.2
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -g -march=prescott -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -g -march=prescott -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y"
FEATURES="assume-digests ccache collision-protect cvs digest distlocks fixpackages parallel-fetch sandbox sfperms sign splitdebug strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS=" http://gentoo.chem.wisc.edu/gentoo http://gentoo.osuosl.org http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1,--hash-style=gnu"
LINGUAS="en en_GB en_US"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/home/dirtyepic/overlay /home/dirtyepic/svn/dirtyepic"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acpi alsa audiofile avahi bash-completion berkdb branding bzip2 cairo calendar caps cddb cdr cpudetection crypt cscope curl dbus dri dts dvd dvdr dvdread encode exif expat fam ffmpeg fftw flac gdbm gif gmp gnutls graphviz gstreamer gtk hal imagemagick imap imlib java jikes jpeg kde kdeenablefinal kdehiddenvisibility libnotify libsamplerate logrotate mad maildir mailwrapper mmap mmx mng mp3 mpeg mplayer ncurses nntp nptl nsplugin odbc ogg opengl oss pam pcmcia pcre pdf perl pic png python qt3 qt4 quicktime readline ruby sasl sdl session sndfile spell sqlite sqlite3 sse sse2 ssl startup-notification svg tcl tcpd test theora threads truetype unicode urandom usb vcd vim-syntax vorbis win32codecs wxwindows x264 x86 xine xml xpm xulrunner xv xvid zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="*" ELIBC="glibc" INPUT_DEVICES="joystick mouse keyboard synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB en_US" USERLAND="GNU" VIDEO_CARDS="fglrx"
Unset:  CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Roy Marples (RETIRED) gentoo-dev 2007-10-19 07:33:13 UTC
Created attachment 133867 [details, diff]
mount /dev/shm even if not in /etc/fstab

Try this out for size
Comment 2 Ryan Hill (RETIRED) gentoo-dev 2007-10-20 11:54:24 UTC
looks good.

dirtyepic@tycho ~ $ cat /proc/mounts
rootfs / rootfs rw 0 0
/dev/root / ext3 rw,noatime,data=writeback 0 0
proc /proc proc rw,nosuid,nodev,noexec 0 0
sysfs /sys sysfs rw,nosuid,nodev,noexec 0 0
udev /dev tmpfs rw,nosuid 0 0
none /dev/pts devpts rw,nosuid,noexec 0 0
none /dev/shm tmpfs rw,nosuid,nodev,noexec 0 0
none /lib/rc/init.d tmpfs rw,nosuid,nodev,noexec 0 0
/dev/mapper/lvm-home /home ext3 rw,noatime,data=writeback 0 0
/dev/mapper/lvm-opt /opt ext3 rw,noatime,data=writeback 0 0
/dev/mapper/lvm-usr /usr ext3 rw,noatime,data=writeback 0 0
/dev/mapper/lvm-var /var ext3 rw,noatime,data=writeback 0 0
usbfs /proc/bus/usb usbfs rw,nosuid,noexec 0 0
securityfs /sys/kernel/security securityfs rw,nosuid,nodev,noexec 0 0
Comment 3 Roy Marples (RETIRED) gentoo-dev 2007-10-29 15:25:59 UTC
We added this to our svn repo a while back, so fixed.