From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1SCTnQ-0006Zb-Bl for garchives@archives.gentoo.org; Tue, 27 Mar 2012 10:38:37 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 626ABE07F6; Tue, 27 Mar 2012 10:38:22 +0000 (UTC) Received: from mta-1.ms.rz.rwth-aachen.de (mta-1.ms.rz.rwth-aachen.de [134.130.7.72]) by pigeon.gentoo.org (Postfix) with ESMTP id AC2EDE07A1 for ; Tue, 27 Mar 2012 10:36:45 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-disposition: inline Content-type: text/plain; charset=us-ascii; DelSp=Yes; Format=Flowed Received: from mx-out-1.rwth-aachen.de ([134.130.5.186]) by mta-1.ms.rz.RWTH-Aachen.de (Sun Java(tm) System Messaging Server 6.3-7.04 (built Sep 26 2008)) with ESMTP id <0M1J00LK9HH8YXE0@mta-1.ms.rz.RWTH-Aachen.de> for gentoo-user@lists.gentoo.org; Tue, 27 Mar 2012 12:36:44 +0200 (CEST) X-IronPort-AV: E=Sophos;i="4.73,656,1325458800"; d="scan'208";a="171064910" Received: from relay-2.ms.rz.rwth-aachen.de (HELO relay.rwth-aachen.de) ([134.130.7.75]) by mx-1.rz.rwth-aachen.de with ESMTP; Tue, 27 Mar 2012 12:36:45 +0200 Received: from numa-i.igpm.rwth-aachen.de (numa-i.igpm.rwth-aachen.de [134.130.161.252]) by relay.rwth-aachen.de (8.14.4+Sun/8.13.8/1) with ESMTP id q2RAaijA008449 for ; Tue, 27 Mar 2012 12:36:44 +0200 (CEST) Received: from numa-i (localhost [127.0.0.1]) by numa-i.igpm.rwth-aachen.de (Postfix) with ESMTP id F0E6C174F for ; Tue, 27 Mar 2012 12:36:44 +0200 (CEST) Date: Tue, 27 Mar 2012 12:36:44 +0200 From: Helmut Jarausch Subject: [gentoo-user] InitRAMFS - boot expert sought To: gentoo-user@lists.gentoo.org X-Mailer: Balsa 2.4.90-14-g130706e Message-id: <1332844604.4130.0@numa-i> X-Archives-Salt: 4e28ab57-7473-401d-a3ef-33db0448000a X-Archives-Hash: 80fb985c3d945e556c98247ed8fe63fa Hi, I've been looking for simple method to create a simple initramfs to just mount the /usr partition. I've found http://wiki.gentoo.org/wiki/Basic_initramfs_used_to_check_and_mount_/usr which didn't work for me. So, I've modified it, see http://www.igpm.rwth-aachen.de/jarausch/Temp/InitRAMFS/ The last lines of the file 'script_init.sh' are # ====================== end doing stuff mount -o remount,rw /mnt/root ### WHY are cp /proc/mounts /mnt/root/mtab ### these two lines necessary # clean up. The init process will remount proc sys and dev later umount /proc umount /sys # umount /dev # fails, since it's automounted by the kernel # switch to the real root and execute init exec switch_root /mnt/root /sbin/init "$@" I first tried this with the lines marked by '###' removed. This worked on one machine but not on another one. There I got 'Remounting root filesystem read/write failed' 'mount: / not mounted or bad option' If I replace line 26 of /etc/init.d/root (openrc-0.9.9.3) mount -n -o remount,rw / by mount /dev/root -n -o remount,rw / it works, as well, i.e. without the two marked lines above. The first mount command finds the mount options in /etc/mtab . Why are the marked lines above necessary on only one of two machines (both of which run the same version of openrc)? Many thanks for a hint, Helmut.