From owner-freebsd-questions@FreeBSD.ORG Thu Aug 12 14:00:01 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 A6C8116A4CE for ; Thu, 12 Aug 2004 14:00:01 +0000 (GMT) Received: from smtp.hispeed.ch (mxout.hispeed.ch [62.2.95.247]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9A07A43D31 for ; Thu, 12 Aug 2004 14:00:00 +0000 (GMT) (envelope-from hampi@rootshell.be) Received: from gicco.homeip.net (80-218-73-163.dclient.hispeed.ch [80.218.73.163])i7CDxx7W003449 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Thu, 12 Aug 2004 15:59:59 +0200 Received: (from hampi@localhost) by localhost.here (8.11.6p2/8.11.6) id i7CFqCa24354 for freebsd-questions@freebsd.org; Thu, 12 Aug 2004 15:52:12 GMT X-Authentication-Warning: localhost.here: hampi set sender to hampi@rootshell.be using -f Date: Thu, 12 Aug 2004 15:52:12 +0000 From: Hanspeter Roth To: freebsd-questions@freebsd.org Message-ID: <20040812155212.A24338@gicco.homeip.net> Mail-Followup-To: freebsd-questions@freebsd.org References: <20040811151539.GA1658@gicco.homeip.net> <411ABADD.3050702@broadpark.no> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <411ABADD.3050702@broadpark.no>; from henrik.w.lund@broadpark.no on Wed, Aug 11, 2004 at 05:33:33PM -0700 Subject: Re: FreeBSD 5, chroot and /dev X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Aug 2004 14:00:01 -0000 On Aug 11 at 17:33, Henrik W Lund spoke: > I may be wrong here, but I think that in the 5.x system, /dev is > populated at boottime, courtesy of the GEOM layer and the devfs > filesystem. These two operate together, GEOM detecting hardware and > giving it proper device nodes in the special devfs filesystem (which is > mounted under /dev, if you check your fstab). Greetings! ok, I have shown the "short" paths as of the mounted harddisk. They should all be prefixed with /mnt/ufs.1/. So when a filesystem usually containing /dev is mounted the /dev directory becomes /mnt/ufs.1/dev. So this directory had no entries. A had then tried to create a few entries by hand which are then visible after `chroot /mnt/ufs.1'. > So, messing with device nodes in a chrooted 5.x system is not possible > (someone correct me here, if I'm wrong). What happens when you try to > boot it normally? Well, I had specified the wrong cpu type in the kernel konfig. I encountered some page fault and dropped to the debugger. I'm now about to 'upgrade' to 5.2.1-release and shall retry with the proper cpu type. -Hanspeter