carstent n00b
Joined: 09 Jan 2014 Posts: 1
|
Posted: Fri Jan 10, 2014 12:06 pm Post subject: [solved] Problem with mounting after update |
|
|
Hi,
I have some problems after updating the system.
Openrc (upgrade from 0.11.8 to 0.12.4 prints the following error messages even before the sysinit runlevel:
Code: |
* Mounting /proc ...
[OK]
* Mounting /run ...
mount: /run filesystem mounted, but mount(x) failed: No space left on device
* Unable to mount tmpfs on /run
* Can't continue
|
The boot process continues with some other errors which are probably caused by the same underlying problem.
I think i has something to do with the initrd, but I can't figure it out.
3.10.25-gentoo Kernel Configuration
http://pastebin.com/27Dsr0v9
grub.conf
Code: |
title=Gentoo
root (hd0,0)
kernel /boot/vmlinuz root=/dev/ram0 console=ttyS1,9600 rw init=/linuxrc cdroot acpi_enforce_resources=lax
initrd /boot/initrd
|
linuxrc
Code: |
#!/bin/sh
export PATH=/bin
#
/bin/echo "Mounting /proc"
mount -t proc none /proc
CMDLINE=`cat /proc/cmdline`
TEST=""
# Test for new (sda) or old (hda)
#
cat /proc/partitions | grep sda
if [ $? -eq 0 ] ; then
hdType="sda";
else
cat /proc/partitions | grep sdb
if [ $? -eq 0 ] ; then
hdType="sdb";
else
cat /proc/partitions | grep hdb
if [ $? -eq 0 ] ; then
hdType="hdb";
else
hdType="hda";
fi
fi
fi
echo " hdType is $hdType " ;
if [ $hdType == "sda" ] ; then
#begin SDA
#
/sbin/reiserfsck -n -y --check -q /dev/sda2 2>/dev/null
if [ $? -ne 0 ] ; then
/bin/echo "Harddisk error found, repairing started..."
/sbin/reiserfsck -a -y -q /dev/sda2
fi
mount -t reiserfs /dev/sda2 /test > /dev/null 2>&1
if [ $? -eq 0 ] ; then
TEST="/dev/sda2"
fi
mount -t ext2 /dev/sda1 /test/boot > /dev/null 2>&1
# end SDA
elif [ $hdType == "sdb" ] ; then
#begin SDB
#
/sbin/reiserfsck -n -y --check -q /dev/sdb2 2>/dev/null
if [ $? -ne 0 ] ; then
/bin/echo "Harddisk error found, repairing started..."
/sbin/reiserfsck -a -y -q /dev/sdb2
fi
mount -t reiserfs /dev/sdb2 /test > /dev/null 2>&1
if [ $? -eq 0 ] ; then
TEST="/dev/sdb2"
fi
mount -t ext2 /dev/sdb1 /test/boot > /dev/null 2>&1
# end SDA
elif [ $hdType == "hda" ] ; then
# begin hda
#
/sbin/reiserfsck -n -y --check -q /dev/hda2 2>/dev/null
if [ $? -ne 0 ] ; then
/bin/echo "Harddisk error found, repairing started..."
/sbin/reiserfsck -a -y -q /dev/hda2
fi
mount -t reiserfs /dev/hda2 /test > /dev/null 2>&1
if [ $? -eq 0 ] ; then
TEST="/dev/hda2"
fi
mount -t ext2 /dev/hda1 /test/boot > /dev/null 2>&1
#end hda
elif [ $hdType == "hdb" ] ; then
# begin hdb
#
/sbin/reiserfsck -n -y --check -q /dev/hdb2 2>/dev/null
if [ $? -ne 0 ] ; then
/bin/echo "Harddisk error found, repairing started..."
/sbin/reiserfsck -a -y -q /dev/hdb2
fi
mount -t reiserfs /dev/hdb2 /test > /dev/null 2>&1
if [ $? -eq 0 ] ; then
TEST="/dev/hdb2"
fi
mount -t ext2 /dev/hdb1 /test/boot > /dev/null 2>&1
#end hdb
fi
if [ "${TEST}" == "" ]
then
exec /bin/sh
exit
fi
umount /proc
mount -t squashfs -o loop /test/files/source.img /new > /dev/null 2>&1
mount -t tmpfs -o size=4m none /new/etc > /dev/null 2>&1
cd /new/etc && tar xpf /new/etc.tar > /dev/null 2>&1
cd /new
pivot_root . newroot
exec chroot . /bin/sh <<- EOF >dev/console 2>&1
exec /sbin/init ${CMDLINE}
EOF
|
"cat /proc/mounts" before the upgrade (working, 3.5.7 kernel, udev 197, openrc 0.11.8)
Code: |
rootfs / rootfs rw 0 0
/dev/ram0 /newroot ext2 rw,relatime,errors=continue 0 0
devtmpfs /newroot/dev devtmpfs rw,relatime,size=10240k,nr_inodes=218381,mode=755 0 0
/dev/sda2 /newroot/test reiserfs rw,relatime 0 0
/dev/sda1 /newroot/test/boot ext2 rw,relatime,errors=continue 0 0
/dev/loop0 / squashfs ro,relatime 0 0
none /etc tmpfs rw,relatime,size=4096k 0 0
none /proc proc rw,relatime 0 0
tmpfs /run tmpfs rw,nosuid,nodev,relatime,mode=755 0 0
udev /dev devtmpfs rw,nosuid,relatime,size=10240k,nr_inodes=218381,mode=755 0 0
devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620 0 0
none /dev/shm tmpfs rw,nosuid,nodev,noexec,relatime 0 0
sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
debugfs /sys/kernel/debug debugfs rw,nosuid,nodev,noexec,relatime 0 0
cgroup_root /sys/fs/cgroup tmpfs rw,nosuid,nodev,noexec,relatime,size=10240k,mode=755 0 0
openrc /sys/fs/cgroup/openrc cgroup rw,nosuid,nodev,noexec,relatime,release_agent=/lib/rc/sh/cgroup-release-agent.sh,name=openrc 0 0
cpuset /sys/fs/cgroup/cpuset cgroup rw,nosuid,nodev,noexec,relatime,cpuset 0 0
cpu /sys/fs/cgroup/cpu cgroup rw,nosuid,nodev,noexec,relatime,cpu 0 0
cpuacct /sys/fs/cgroup/cpuacct cgroup rw,nosuid,nodev,noexec,relatime,cpuacct 0 0
freezer /sys/fs/cgroup/freezer cgroup rw,nosuid,nodev,noexec,relatime,freezer 0 0
binfmt_misc /proc/sys/fs/binfmt_misc binfmt_misc rw,nosuid,nodev,noexec,relatime 0 0
none /dev/shm tmpfs rw,nosuid,nodev,noexec,relatime 0 0
none /dev/shm tmpfs rw,nosuid,nodev,noexec,relatime 0 0
|
"cat /proc/mounts" after the upgrade (errors, 3.10.25 kernel, udev 208, openrc 0.12.4)
Code: |
rootfs / rootfs rw 0 0
/dev/ram0 /newroot ext2 rw,relatime,errors=continue 0 0
devtmpfs /newroot/dev devtmpfs rw,relatime,size=10240k,nr_inodes=126473,mode=755 0 0
/dev/sda2 /newroot/test reiserfs rw,relatime 0 0
/dev/sda1 /newroot/test/boot ext2 rw,relatime,errors=continue 0 0
/dev/loop0 / squashfs ro,relatime 0 0
none /etc tmpfs rw,relatime,size=4096k 0 0
proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
tmpfs /run tmpfs rw,nosuid,nodev,relatime,size=102056k,mode=755 0 0
udev /dev devtmpfs rw,nosuid,relatime,size=10240k,nr_inodes=126473,mode=755 0 0
mqueue /dev/mqueue mqueue rw,nosuid,nodev,noexec,relatime 0 0
devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620 0 0
shm /dev/shm tmpfs rw,nosuid,nodev,noexec,relatime 0 0
sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
debugfs /sys/kernel/debug debugfs rw,nosuid,nodev,noexec,relatime 0 0
cgroup_root /sys/fs/cgroup tmpfs rw,nosuid,nodev,noexec,relatime,size=10240k,mode=755 0 0
openrc /sys/fs/cgroup/openrc cgroup rw,nosuid,nodev,noexec,relatime,release_agent=/lib/rc/sh/cgroup-release-agent.sh,name=openrc 0 0
cpuset /sys/fs/cgroup/cpuset cgroup rw,nosuid,nodev,noexec,relatime,cpuset 0 0
cpu /sys/fs/cgroup/cpu cgroup rw,nosuid,nodev,noexec,relatime,cpu 0 0
cpuacct /sys/fs/cgroup/cpuacct cgroup rw,nosuid,nodev,noexec,relatime,cpuacct 0 0
freezer /sys/fs/cgroup/freezer cgroup rw,nosuid,nodev,noexec,relatime,freezer 0 0
binfmt_misc /proc/sys/fs/binfmt_misc binfmt_misc rw,nosuid,nodev,noexec,relatime 0 0
|
Edit: solved, the 4mb tmpfs was too small for the /etc after update |
|