Messages in this thread | | | From | Justin Cormack <> | Subject | Re: Initrd or Cdrom as root | Date | Wed, 15 May 2002 15:54:42 +0100 (BST) |
| |
> > 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
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |