Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Failed to mount /dev/shm [Solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
natrix
Guru
Guru


Joined: 23 Aug 2013
Posts: 556

PostPosted: Thu May 15, 2014 1:11 am    Post subject: Failed to mount /dev/shm [Solved] Reply with quote

Hello!!!

The boot of my PC show this message (in systemd-208-r3)

Code:
mounting tmpfs on /dev/shm failed: invalid argument
!!Failed to mount /dev/shm

How I fix it?

Some date:

fstab:
Code:
/dev/sda1               /boot           ext2            noauto,noatime  1 0
/dev/sda2               /mnt/Win8       auto           noauto,noatime  1 0
/dev/sda6               /mnt/Datos      auto           noatime         1 0
/dev/sda7               /               ext4            noatime         0 1
/dev/sda8               none            swap            sw              0 0
/dev/cdrom              /mnt/cdrom      auto            noauto,ro       0 0

Code:
# mount | grep shm
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)

Code:
# systemctl --failed
0 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.


Last edited by natrix on Mon May 26, 2014 4:24 pm; edited 1 time in total
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Thu May 15, 2014 5:22 am    Post subject: Reply with quote

looks like you are not running systemd?
does
Code:
grep -i systemd /usr/src/linux/.config
yield
Quote:
CONFIG_GENTOO_LINUX_INIT_SYSTEMD=y

what does
Code:
emerge -s systemd
yield?
what kernel options are being used? (in grub.cfg grub.conf elilo syslinux efi-stub kernel -- whatever boot loader you use) should include
Quote:
init=/usr/lib/systemd/systemd

what does
Code:
systemctl list-unit-files
yield

reference: https://wiki.gentoo.org/wiki/Systemd
_________________
Defund the FCC.
Back to top
View user's profile Send private message
natrix
Guru
Guru


Joined: 23 Aug 2013
Posts: 556

PostPosted: Thu May 15, 2014 11:20 pm    Post subject: Reply with quote

Hi DONAHUE!!!

It are my outputs:

Code:
# grep -i systemd /usr/src/linux/.config
CONFIG_GENTOO_LINUX_INIT_SYSTEMD=y


Code:
# emerge -s systemd
Searching...   
[ Results for search key : systemd ]
[ Applications found : 6 ]

*  kde-misc/kcmsystemd [ Masked ]
      Latest version available: 0.6.1
      Latest version installed: [ Not Installed ]
      Size of files: 49 kB
      Homepage:      https://github.com/rthomsen/kcmsystemd
      Description:   KDE control module for systemd
      License:       GPL-3

*  sys-apps/gentoo-systemd-integration
      Latest version available: 2
      Latest version installed: 2
      Size of files: 50 kB
      Homepage:      https://bitbucket.org/mgorny/gentoo-systemd-integration
      Description:   systemd integration files for Gentoo
      License:       BSD

*  sys-apps/systemd
      Latest version available: 208-r3
      Latest version installed: 208-r3
      Size of files: 2,334 kB
      Homepage:      http://www.freedesktop.org/wiki/Software/systemd
      Description:   System and service manager for Linux
      License:       GPL-2 LGPL-2.1 MIT public-domain

*  sys-apps/systemd-sysv-utils [ Masked ]
      Latest version available: 212
      Latest version installed: [ Not Installed ]
      Size of files: 2,658 kB
      Homepage:      http://www.freedesktop.org/wiki/Software/systemd
      Description:   sysvinit compatibility symlinks and manpages
      License:       GPL-2

*  sys-apps/systemd-ui
      Latest version available: 2
      Latest version installed: 2
      Size of files: 146 kB
      Homepage:      http://www.freedesktop.org/wiki/Software/systemd
      Description:   System and service manager for Linux
      License:       GPL-2

*  sys-devel/systemd-m4 [ Masked ]
      Latest version available: 9999
      Latest version installed: [ Not Installed ]
      Size of files: 0 kB
      Homepage:      https://bitbucket.org/mgorny/systemd-m4/
      Description:   autoconf macros for packages using systemd
      License:       BSD


I use grub2 and genkernel-next.

Code:
GRUB_CMDLINE_LINUX="real_init=/usr/lib/systemd/systemd"


Code:
# systemctl list-unit-files


http://pastebin.com/BeZ7ZWfs

Some idea???
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Fri May 16, 2014 12:30 am    Post subject: Reply with quote

i'm systemd-212; 'systemctl --failed' produces no output, just drops to a new command prompt.

Can you tell if "mounting tmpfs on /dev/shm failed: invalid argument
!!Failed to mount /dev/shm" occurs while an initrd is running, kernel is running, or systemd init is running? The message seems irrelevant as mount finds tmpfs on /dev/shm

Here running
Code:
dmesg | grep -i shm
journalctl | grep -i shm
yields no entries.
searching for tmpfs yields only "devtmpfs: initialized" and "devtmpfs: mounted"
_________________
Defund the FCC.
Back to top
View user's profile Send private message
natrix
Guru
Guru


Joined: 23 Aug 2013
Posts: 556

PostPosted: Fri May 16, 2014 2:55 am    Post subject: Reply with quote

Hi!!
My systemd is 208-r3. a new output??

The error "mounting tmpfs on /dev/shm failed" occurs after of grub2 and before to start the init.
I started the PC with openRC and the error is the same.

The next lines produces no output, just drops to a new command prompt.
Code:
dmesg | grep -i shm
journalctl | grep -i shm


but:

Code:
# journalctl -b | grep tmp
may 15 23:38:33 natrix kernel: tmpfs: No value for mount option 'strictatime'
may 15 23:38:33 natrix systemd[1]: tmp.mount: Directory /tmp to mount over is not empty, mounting anyway.


What is 'strictatime'??

Thank DONAHUE!!
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Fri May 16, 2014 4:22 am    Post subject: Reply with quote

man mount which is hard to read gracefully
http://manpages.courier-mta.org/htmlman8/mount.8.html easier to read
find/search atime and read through the variations
Take a look at /proc/mounts ?

Code:
journalctl -b | grep -a5 strictatime
anything interesting 5 lines above and below?

gentoo-sources or an exotic kernel?
_________________
Defund the FCC.
Back to top
View user's profile Send private message
natrix
Guru
Guru


Joined: 23 Aug 2013
Posts: 556

PostPosted: Fri May 16, 2014 4:33 am    Post subject: Reply with quote

Very interesting!! thank a lot for the information :) :)

#nano -w /proc/mounts

Code:
rootfs / rootfs rw 0 0
proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
none /run tmpfs rw,nosuid,nodev,relatime,mode=755 0 0
udev /dev devtmpfs rw,nosuid,relatime,size=10240k,nr_inodes=505717,mode=755 0 0
devpts /dev/pts devpts rw,relatime,gid=5,mode=620 0 0
sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
/dev/sda7 / ext4 rw,noatime,data=ordered 0 0
tmpfs /dev/shm tmpfs rw,nosuid,nodev 0 0
tmpfs /sys/fs/cgroup tmpfs rw,nosuid,nodev,noexec,mode=755 0 0
cgroup /sys/fs/cgroup/systemd cgroup rw,nosuid,nodev,noexec,relatime,release_agent=/usr/lib/systemd/s$
cgroup /sys/fs/cgroup/cpuset cgroup rw,nosuid,nodev,noexec,relatime,cpuset 0 0
cgroup /sys/fs/cgroup/cpuacct cgroup rw,nosuid,nodev,noexec,relatime,cpuacct 0 0
systemd-1 /proc/sys/fs/binfmt_misc autofs rw,relatime,fd=25,pgrp=1,timeout=300,minproto=5,maxproto=5,$
mqueue /dev/mqueue mqueue rw,relatime 0 0
tmpfs /tmp tmpfs rw 0 0
fusectl /sys/fs/fuse/connections fusectl rw,relatime 0 0
configfs /sys/kernel/config configfs rw,relatime 0 0
/dev/sda1 /boot ext2 rw,relatime,errors=continue,user_xattr,acl 0 0
/dev/sda6 /mnt/Datos fuseblk rw,nosuid,nodev,noatime,user_id=0,group_id=0,allow_other,blksize=4096 0 0
gvfsd-fuse /run/user/1000/gvfs fuse.gvfsd-fuse rw,nosuid,nodev,relatime,user_id=1000,group_id=1000 0 0


What is wrong?
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Fri May 16, 2014 5:59 am    Post subject: Reply with quote

Code:
journalctl -b | grep -a5 strictatime
anything interesting 5 lines above and below?

Are you using gentoo-sources or an exotic kernel?

our /proc/mounts are essentially the same for tmp file systems, no strictatimes
_________________
Defund the FCC.
Back to top
View user's profile Send private message
natrix
Guru
Guru


Joined: 23 Aug 2013
Posts: 556

PostPosted: Fri May 16, 2014 6:02 am    Post subject: Reply with quote

Code:
 # journalctl -b | grep -a5 strictatime
may 16 02:41:24 natrix kernel: rtc_cmos 00:09: setting system clock to 2014-05-16 02:41:17 UTC (1400208077)
may 16 02:41:24 natrix kernel: ALSA device list:
may 16 02:41:24 natrix kernel:   #0: HDA Intel at 0xd3200000 irq 44
may 16 02:41:24 natrix kernel:   #1: HDA NVidia at 0xd3080000 irq 17
may 16 02:41:24 natrix kernel: Freeing unused kernel memory: 792K (ffffffff815bb000 - ffffffff81681000)
may 16 02:41:24 natrix kernel: tmpfs: No value for mount option 'strictatime'
may 16 02:41:24 natrix systemd-udevd[1532]: starting version 208
may 16 02:41:24 natrix kernel: ACPI: bus type USB registered
may 16 02:41:24 natrix kernel: usbcore: registered new interface driver usbfs
may 16 02:41:24 natrix kernel: usbcore: registered new interface driver hub
may 16 02:41:24 natrix kernel: usbcore: registered new device driver usb


My kernel:

Code:
# emerge -s gentoo-source
Searching...   
[ Results for search key : gentoo-source ]
[ Applications found : 1 ]

*  sys-kernel/gentoo-sources
      Latest version available: 3.12.13
      Latest version installed: 3.12.13
      Size of files: 74,962 kB
      Homepage:      http://dev.gentoo.org/~mpagano/genpatches
      Description:   Full sources including the Gentoo patchset for the 3.12 kernel tree
      License:       GPL-2 !deblob? ( freedist )


some idea???
Back to top
View user's profile Send private message
kornel661
n00b
n00b


Joined: 20 May 2014
Posts: 1

PostPosted: Tue May 20, 2014 9:29 am    Post subject: Reply with quote

The same issue with systemd 208-r3 and 3.14.4-gentoo kernel.
Back to top
View user's profile Send private message
natrix
Guru
Guru


Joined: 23 Aug 2013
Posts: 556

PostPosted: Mon May 26, 2014 4:23 pm    Post subject: Reply with quote

Solution

Code:
genkernel --udev all
Back to top
View user's profile Send private message
thorsten164
n00b
n00b


Joined: 01 Jun 2014
Posts: 2

PostPosted: Sun Jun 01, 2014 6:41 pm    Post subject: Reply with quote

This was not the solution for me. The problem is that genkernel-next 55 contains a new patch for busybox that allows for the stricktatime option during mount. However, the compiled busybox is cached (from previous versions of genkernel-next) and not rebuilt.

So for me it helped to run
Code:
sudo rm /var/cache/genkernel/busybox-1.20.2-x86_64.tar.bz2


after that run as usual
Code:
sudo genkernel all


(udev should be activated in genkernel.conf as the previous author suggested)

Then busybox will be rebuilt and the error goes away.
Back to top
View user's profile Send private message
natrix
Guru
Guru


Joined: 23 Aug 2013
Posts: 556

PostPosted: Mon Jun 02, 2014 8:09 pm    Post subject: Reply with quote

Interesting.

thanks for the info :)
Back to top
View user's profile Send private message
truongan
n00b
n00b


Joined: 08 Mar 2006
Posts: 38
Location: Việt Nam

PostPosted: Fri Jun 20, 2014 8:43 pm    Post subject: Reply with quote

thorsten164 wrote:
This was not the solution for me. The problem is that genkernel-next 55 contains a new patch for busybox that allows for the stricktatime option during mount. However, the compiled busybox is cached (from previous versions of genkernel-next) and not rebuilt.

So for me it helped to run
Code:
sudo rm /var/cache/genkernel/busybox-1.20.2-x86_64.tar.bz2


after that run as usual
Code:
sudo genkernel all


(udev should be activated in genkernel.conf as the previous author suggested)

Then busybox will be rebuilt and the error goes away.


You are a lifesaver.

I have been struggling with numerous boot problem for months because genkernel using an old cached busybox built from last year. Now after a rebuilt everything seem to be in order again.

Thank you so much. I hate to dig up solved thread but I have to say thank you.
Back to top
View user's profile Send private message
boospy
Guru
Guru


Joined: 07 Feb 2010
Posts: 308
Location: Austria

PostPosted: Thu Nov 27, 2014 4:06 pm    Post subject: Reply with quote

Thanks a lot, it helped me too! :)

Best Regards
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum