mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Justin Cormack <kernel@street-vision.com>
To: tigran@veritas.com (Tigran Aivazian)
Cc: linux-kernel@vger.kernel.org
Subject: Re: Initrd or Cdrom as root
Date: Wed, 15 May 2002 15:54:42 +0100 (BST)	[thread overview]
Message-ID: <200205151454.g4FEsh419684@street-vision.com> (raw)
In-Reply-To: <Pine.LNX.4.33.0205151523500.2461-100000@einstein.homenet> from "Tigran Aivazian" at May 15, 2002 03:28:17 PM

> 
> On Wed, 15 May 2002, Dead2 wrote:
> > So, I now have a new problem I hope someone can help me out with.
> > It now mounts the cdrom as root like it should, but then gives me the error:
> > "Warning: unable to open an initial console."
> >
> > I have checked everything I can think of, but if someone could point me to
> > exactly generates this error, I would be forever grateful.
> 
> Yes, that is well-known.
> 
> Unix root filesystem cannot be readonly in its entirety. Linux is much
> better, but even Linux is not perfect.
> 
> So, what I do is --- I prepare the /var, /home, /etc, /dev in a tar.gz
> file and place it on CD. Then, from rc.sysinit I mount tmpfs on those
> points and unpack the tar.gz from / --- thus ending up with readwrite /var
> /home /etc and /dev. (you could avoid /dev issue by using devfs but then
> you will have other little problems to deal with :)

no this is not true. I use busybox plus devfs and it works perfecly read
only. Or you can run the entire system out of an initrd which you can
of course write to if you want to write (it makes some things a little
easier). You can always mount /tmp with tmpfs if you want some write space.

Unable to open an initial console sounds to me like dev is not populated.
Have you got /dev/console and /dev/tty0? I do recommend devfs for this
type of thing, as it makes scripting your initial installer easier (you
can loop over /dev/hd* and so on).

Justin




  reply	other threads:[~2002-05-15 14:54 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <005d01c1fb6c$e5522450$0d01a8c0@studio2pw0bzm4>
2002-05-14 17:41 ` Tigran Aivazian
2002-05-14 17:47   ` Dead2
2002-05-14 17:57     ` Tigran Aivazian
2002-05-14 18:17       ` Dead2
2002-05-14 18:35         ` Tigran Aivazian
2002-05-14 17:59     ` William Stearns
2002-05-14 18:29       ` Tigran Aivazian
2002-05-14 18:35         ` Dead2
2002-05-14 18:49           ` Tigran Aivazian
2002-05-15 13:43             ` Dead2
2002-05-15 14:28               ` Tigran Aivazian
2002-05-15 14:54                 ` Justin Cormack [this message]
2002-05-15 15:10                   ` Tigran Aivazian
2002-05-15  8:02         ` Dead2
2002-05-15 22:25           ` [syslinux] " H. Peter Anvin
2002-05-14 17:49   ` Tigran Aivazian
2002-05-14 10:41 Hans K. Rosbach
2002-05-14 10:55 ` Tigran Aivazian

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=200205151454.g4FEsh419684@street-vision.com \
    --to=kernel@street-vision.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tigran@veritas.com \
    /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

all inboxes | Powered by JetHome®