From owner-freebsd-current@FreeBSD.ORG Fri Mar 28 14:44:25 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 06B1237B401; Fri, 28 Mar 2003 14:44:25 -0800 (PST) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4615A43F85; Fri, 28 Mar 2003 14:44:24 -0800 (PST) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (fledge.pr.watson.org [192.0.2.3]) by fledge.watson.org (8.12.8/8.12.8) with SMTP id h2SMiGjK012101; Fri, 28 Mar 2003 17:44:17 -0500 (EST) (envelope-from robert@fledge.watson.org) Date: Fri, 28 Mar 2003 17:44:16 -0500 (EST) From: Robert Watson X-Sender: robert@fledge.watson.org To: Sean Chittenden In-Reply-To: <20030328215316.GA8340@perrin.int.nxad.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Status: No, hits=-24.0 required=5.0 tests=AWL,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, QUOTE_TWICE_1,REPLY_WITH_QUOTES,USER_AGENT_PINE autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) cc: current@FreeBSD.org Subject: Re: init not loading? why? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Mar 2003 22:44:26 -0000 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