From: Helmut Jarausch <jarausch@igpm.rwth-aachen.de>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] InitRAMFS - boot expert sought
Date: Tue, 27 Mar 2012 12:36:44 +0200 [thread overview]
Message-ID: <1332844604.4130.0@numa-i> (raw)
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.
next reply other threads:[~2012-03-27 10:38 UTC|newest]
Thread overview: 89+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-27 10:36 Helmut Jarausch [this message]
2012-03-27 13:19 ` [gentoo-user] InitRAMFS - boot expert sought Mike Edenfield
2012-03-27 13:30 ` Michael Mol
2012-03-27 14:04 ` Neil Bothwick
2012-03-27 15:20 ` covici
2012-03-27 15:54 ` Neil Bothwick
2012-03-27 14:33 ` Mike Edenfield
2012-03-27 15:47 ` Dale
2012-03-27 17:35 ` Mike Edenfield
2012-03-27 18:30 ` Dale
2012-03-27 19:27 ` Sebastian Beßler
2012-03-27 20:04 ` Dale
2012-03-27 20:23 ` Michael Mol
2012-03-27 20:46 ` Dale
2012-03-27 21:08 ` Mark Knecht
2012-03-27 21:43 ` Dale
2012-03-27 21:52 ` Alan McKinnon
2012-03-27 22:28 ` Dale
2012-03-28 0:20 ` David W Noon
2012-03-28 1:36 ` Dale
2012-03-28 21:40 ` Alan McKinnon
2012-03-28 22:01 ` David W Noon
2012-03-28 22:26 ` Alan McKinnon
2012-03-28 23:20 ` David W Noon
2012-03-29 2:24 ` Dale
2012-03-29 8:28 ` Alan McKinnon
2012-03-29 12:01 ` David W Noon
2012-03-29 20:58 ` Alan McKinnon
2012-03-29 21:20 ` pk
2012-05-19 13:33 ` Frank Steinmetzger
2012-03-29 23:26 ` wdk@moriah
2012-03-30 10:36 ` David W Noon
2012-03-29 12:05 ` [gentoo-user] " Nicolas Sebrecht
2012-03-29 13:00 ` Neil Bothwick
2012-03-29 20:55 ` Alan McKinnon
2012-03-29 22:10 ` Mike Edenfield
2012-03-29 23:10 ` Neil Bothwick
2012-03-29 14:08 ` [gentoo-user] " Doug Hunley
2012-03-29 16:47 ` David W Noon
2012-03-27 22:02 ` Mark Knecht
2012-03-27 22:35 ` Dale
2012-03-27 22:49 ` Mark Knecht
2012-03-29 13:59 ` J. Roeleveld
2012-03-29 17:36 ` Dale
2012-03-30 7:23 ` [gentoo-user] " Nicolas Sebrecht
2012-03-30 7:56 ` J. Roeleveld
2012-03-27 23:04 ` [gentoo-user] " Neil Bothwick
2012-03-27 23:47 ` Dale
2012-03-28 7:51 ` Neil Bothwick
2012-03-28 7:55 ` Canek Peláez Valdés
2012-03-28 21:38 ` Alan McKinnon
2012-03-27 20:09 ` Neil Bothwick
2012-03-27 16:18 ` Michael Hampicke
2012-03-27 16:50 ` Michael Mol
2012-03-27 16:57 ` Dale
2012-03-27 17:09 ` Mark Knecht
2012-03-27 20:07 ` Neil Bothwick
2012-03-27 21:20 ` Mike Edenfield
2012-03-27 21:38 ` Neil Bothwick
2012-03-27 20:36 ` Dale
2012-03-27 20:46 ` Mark Knecht
2012-03-27 21:59 ` Dale
2012-03-27 22:14 ` Alan McKinnon
2012-03-27 22:31 ` Dale
2012-03-27 22:46 ` Alan McKinnon
2012-03-27 23:50 ` Dale
2012-03-28 7:58 ` Neil Bothwick
2012-03-28 18:29 ` Mike Edenfield
2012-03-28 21:58 ` pk
2012-03-28 23:20 ` Neil Bothwick
2012-03-29 17:14 ` pk
2012-03-29 18:06 ` Neil Bothwick
2012-03-29 18:54 ` pk
2012-03-29 2:21 ` Michael Mol
[not found] ` <20120329100248.24ecb03c@digimed.co.uk>
2012-03-29 14:21 ` Michael Mol
2012-03-29 14:43 ` Neil Bothwick
2012-03-29 15:58 ` Michael Mol
2012-03-28 15:20 ` Allan Gottlieb
2012-03-28 16:41 ` Alex Schuster
2012-03-28 20:44 ` Simon
2012-03-28 21:35 ` Alan McKinnon
2012-03-29 2:38 ` Allan Gottlieb
2012-03-29 8:43 ` Allan Gottlieb
2012-04-03 12:27 ` Alan McKinnon
2012-04-03 13:15 ` Allan Gottlieb
2012-03-27 21:22 ` Mike Edenfield
2012-03-27 22:01 ` Dale
2012-03-28 2:27 ` William Kenworthy
2012-03-28 5:46 ` du yang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1332844604.4130.0@numa-i \
--to=jarausch@igpm.rwth-aachen.de \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox