From owner-freebsd-questions@FreeBSD.ORG Wed Apr 16 06:03:03 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7984E37B401 for ; Wed, 16 Apr 2003 06:03:03 -0700 (PDT) Received: from mx1.clickcom.com (mx2.clickcom.com [209.198.22.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id C911E43FE1 for ; Wed, 16 Apr 2003 06:03:02 -0700 (PDT) (envelope-from jsmailing@clickcom.com) Received: from aesop (calefaction.clickcom.com [209.198.22.19]) by mx1.clickcom.com (email) with ESMTP id 43C901473D1; Wed, 16 Apr 2003 09:03:02 -0400 (EDT) From: "John Straiton" To: , Date: Wed, 16 Apr 2003 08:56:44 -0400 Message-ID: <003701c30417$a59acb50$1916c60a@win2k.clickcom.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 In-Reply-To: <20030415141555.GB54835@catflap.home.slightlystrange.org> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal Subject: RE: Bootup Problem 4.8-Stable- SOLVED X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Apr 2003 13:03:03 -0000 > On Tue, Apr 15, 2003 at 02:59:41PM +0100, Daniel Bye wrote: > > On Tue, Apr 15, 2003 at 09:36:55AM -0400, John Straiton wrote: > > > I have a machine that was working fine but then upon > reboot one day > > > it failed to come up on it's own. I tinkered a little bit > and then > > > finally just settled on trying a make world/kernel. Upon > retrying it > > > this morning I see this right after it detected the CDRom drive > > > (same error as before): > > > > > > Apr 15 13:26:28 init: login_getclass: unknown class 'daemon' > > > /etc/rc: Can't open /etc/rc: No such file or directory > > > Apr 15 13:26:28 init: /etc/spwd.db: No such file or > directory Enter > > > full pathname of shell or RETURN for /bin/sh: > > > > > > Then I just > > > #/sbin/mount /dev/da0s1f /etc > > > #/sbin/mount -a > > > #exit > > > > > > And we're back up and running. > > > > > > Ideas? I couldn't find an example of this question actually being > > > answered (tho' it's been brought up before) in the list yet. The > > > only one that seemed answered involved someone who had > put /etc on > > > another drive but as you can see: > > > > > > /dev/da0s1a 291M 105M 162M 39% / > > > /dev/da0s1f 7.1G 26M 6.5G 0% /etc > > > > > > Same drive. > > > > But, significantly, different partition... > > Sorry, sent that without any real thought. > > To get this far, the bootloader has managed to mount the root > file system. In order for the system to come up the rest of > the way, certain things must be located on the root > partition, including /etc - without it, init is not able to > call /etc/rc, which in turn means that /etc/fstab, all your > /etc/rc.* scripts etc are not available. The login_getclass > error above occurs because init cannot find /etc/login.conf. > > So, your root file system should include /etc, /bin, /sbin, > /dev, so that > things like /sbin/mount, and all your devices etc are > available to complete the startup procedure. > > init will quite happily call /etc/rc once you have manually > mounted all your local file systems, because it can now find > everything it needs. > > If you have previously managed to get it running like this in > the past, I am sure I don't know how ;-) > > Dan Thanks Dan. After getting an opportunity to put /etc back into / (as opposed to it's own slice) and then rebooting, that has corrected the problem. Lesson learned: /etc can not exist outside the / slice. At least for those of us who don't know a way around the problems inheirent with it. John Straiton jks@clickcom.com Clickcom, Inc 704-365-9970x101