Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Mar 2003 17:44:16 -0500 (EST)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Sean Chittenden <seanc@FreeBSD.org>
Cc:        current@FreeBSD.org
Subject:   Re: init not loading?  why?
Message-ID:  <Pine.NEB.3.96L.1030328174335.10348D-100000@fledge.watson.org>
In-Reply-To: <20030328215316.GA8340@perrin.int.nxad.com>

next in thread | previous in thread | raw e-mail | index | archive | help

On Fri, 28 Mar 2003, Sean Chittenden wrote:

> > I recently purchased a new laptop HDD, tossed three partitions onto
> > the drive (/, /usr, and swap), newfs'ed them with UFS2, mounted the
> > new drive as a umass device, copied files over (tar), and now when I
> > boot with my new drive, the kernel is having problems launching
> > /sbin/init.  For the life of me, I can't figure out why it's not
> > loading.  After dropping to DDB, I don't see it in the process list
> > and I'm not getting any output other than notice that the kernel is
> > starting /sbin/init.
> 
> Ah!  Figured it out after reading through init's src: /dev didn't exist
> therefore the machine wouldn't start.  No good.  I may find a place to
> stick this got'cha in the docs or add an mkdir() call to init.  -sc

mkdir(2) on / is not going to work if / is readonly.  The kernel actually
tries to do a vop_mkdir() already, I think.  The eventual solution is
probably a rootfs (blaim mux).

Robert N M Watson             FreeBSD Core Team, TrustedBSD Projects
robert@fledge.watson.org      Network Associates Laboratories




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.NEB.3.96L.1030328174335.10348D-100000>