From owner-freebsd-questions@FreeBSD.ORG Wed Aug 11 15:25:14 2004 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 8384C16A4CF for ; Wed, 11 Aug 2004 15:25:14 +0000 (GMT) Received: from internet.potentialtech.com (h-66-167-251-6.phlapafg.covad.net [66.167.251.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5A67F43D46 for ; Wed, 11 Aug 2004 15:25:14 +0000 (GMT) (envelope-from wmoran@potentialtech.com) Received: from working.potentialtech.com (pa-plum-cmts1e-68-68-113-64.pittpa.adelphia.net [68.68.113.64]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by internet.potentialtech.com (Postfix) with ESMTP id 881CC69A71; Wed, 11 Aug 2004 11:25:13 -0400 (EDT) Date: Wed, 11 Aug 2004 11:25:12 -0400 From: Bill Moran To: freebsd-questions@freebsd.org Message-Id: <20040811112512.57403402.wmoran@potentialtech.com> In-Reply-To: <20040811151539.GA1658@gicco.homeip.net> References: <20040811151539.GA1658@gicco.homeip.net> Organization: Potential Technologies X-Mailer: Sylpheed version 0.9.12 (GTK+ 1.2.10; i386-portbld-freebsd4.9) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: hampi@rootshell.be Subject: Re: FreeBSD 5, chroot and /dev 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, 11 Aug 2004 15:25:14 -0000 Hanspeter Roth wrote: > Hello, > > I have built a new kernel on a FreeBSD 5.2 system which doesn't boot > anymore. So I took a Freesbee and mounted the filesystems from the > harddisk and changed root to the harddisk's one. But there were no > devices in /dev. I tried some of /etc/rc.d/dev*. This only created a > /dev/null. > Trying to build the kernel (with a different configuration) fails. > A regular file /dev/stdout has been created. > > What is the recommended way to create the device nodes in /dev in a > chroot environment? This isn't a direct answer to your question, but it should help you work around your problem. After booting the CD, look in the /boot directory on the HDD. If you move the contents of /boot/kernel.old to /boot/kernel, you'll have restored your previous kernel, and can then reboot off the HDD to attempt to build a working kernel again. -- Bill Moran Potential Technologies http://www.potentialtech.com