From bent@munat.com Thu Jan 1 12:43:38 2004 Received: with ECARTIS (v1.0.0; list devfs); Thu, 01 Jan 2004 12:43:51 -0800 (PST) Received: from rwcrmhc12.comcast.net (rwcrmhc12.comcast.net [216.148.227.85]) by oss.sgi.com (8.12.10/8.12.9) with SMTP id i01KhcTa002848 for ; Thu, 1 Jan 2004 12:43:38 -0800 Received: from munat.com (12-228-222-143.client.attbi.com[12.228.222.143]) by comcast.net (rwcrmhc12) with SMTP id <20031231173528014006aoide> (Authid: b.munat); Wed, 31 Dec 2003 17:35:28 +0000 Message-ID: <3FF30943.9000302@munat.com> Date: Wed, 31 Dec 2003 09:37:07 -0800 From: Ben Munat User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 To: devfs@oss.sgi.com Subject: problem with devfs Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-archive-position: 171 X-ecartis-version: Ecartis v1.0.0 Sender: devfs-bounce@oss.sgi.com Errors-to: devfs-bounce@oss.sgi.com X-original-sender: bent@munat.com Precedence: bulk X-list: devfs Hello, While installing Gentoo I accidentally compiled my kernel without devfs support. As Gentoo's rc script is kind enough to rub my face in that fact everytime I boot, I decided to recompile with devfs support and devfs mount at boot enabled. Unfortunately, I can't boot the resulting kernel: the rc script starts throwing "/dev/null: Permission denied" errors and then can't mount the filesystems. After debugging the rc script, I've found that /dev/null exists before the mount devfs command, but does not exist afterwards. If I take the mount devfs command out of the script, the kernel will boot, but devfs is not mounted (that seems obvious, but I wanted to make sure that it wasn't getting twice). If I log into the maintenance console after the aborted boot, there is indeed a devfs line in /proc/filesystems and a .devfsd in /dev (in fact, that's *all* there is in /dev other than . .. and initctl). If anyone has any idea why mounting devfs results in an empty /dev directory, I'd really love to hear it. Been struggling with this for ages and I'm running out of ideas! Thanks, Ben From chutz@gg3.net Thu Jan 1 13:09:03 2004 Received: with ECARTIS (v1.0.0; list devfs); Thu, 01 Jan 2004 13:09:25 -0800 (PST) Received: from tiger.gg3.net (142.13.111.219.st.bbexcite.jp [219.111.13.142]) by oss.sgi.com (8.12.10/8.12.9) with SMTP id i01L92Ta003851 for ; Thu, 1 Jan 2004 13:09:03 -0800 Received: (qmail 27083 invoked by uid 1000); 2 Jan 2004 06:09:01 +0900 Received: from lion.gg3.net (10.0.0.2) by tiger.gg3.net (tmda-ofmipd) with ESMTP; Fri, 02 Jan 2004 06:08:59 +0900 (JST) Received: by lion.gg3.net (sSMTP sendmail emulation); Fri, 2 Jan 2004 06:08:59 +0900 Date: Fri, 2 Jan 2004 06:08:59 +0900 To: devfs@oss.sgi.com Subject: Re: problem with devfs Message-ID: <20040101210859.GB11603@lion.gg3.net> References: <3FF30943.9000302@munat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3FF30943.9000302@munat.com> User-Agent: Mutt/1.5.5.1i From: Georgi Georgiev Mail-Followup-To: devfs@oss.sgi.com X-Delivery-Agent: TMDA/1.0 (Cannonade) X-Primary-Address: chutz@gg3.net Reply-To: Georgi Georgiev X-archive-position: 172 X-ecartis-version: Ecartis v1.0.0 Sender: devfs-bounce@oss.sgi.com Errors-to: devfs-bounce@oss.sgi.com X-original-sender: chutz@gg3.net Precedence: bulk X-list: devfs maillog: 31/12/2003-09:37:07(-0800): Ben Munat types > Hello, > > While installing Gentoo I accidentally compiled my kernel without devfs > support. As Gentoo's rc script is kind enough to rub my face in that > fact everytime I boot, I decided to recompile with devfs support and > devfs mount at boot enabled. > > Unfortunately, I can't boot the resulting kernel: the rc script starts > throwing "/dev/null: Permission denied" errors and then can't mount the > filesystems. After debugging the rc script, I've found that /dev/null > exists before the mount devfs command, but does not exist afterwards. If > I take the mount devfs command out of the script, the kernel will boot, > but devfs is not mounted (that seems obvious, but I wanted to make sure > that it wasn't getting twice). > > If I log into the maintenance console after the aborted boot, there is > indeed a devfs line in /proc/filesystems and a .devfsd in /dev (in fact, > that's *all* there is in /dev other than . .. and initctl). > > If anyone has any idea why mounting devfs results in an empty /dev > directory, I'd really love to hear it. Been struggling with this for > ages and I'm running out of ideas! What did /proc/mounts say? Is devfs really mounted on /dev, or did some misplaced command create those files accidentally? If you really have mount at boot enabled for devfs (and you don't override it on the kernel boot line), you shouldn't need to mount it yourself at all (and the script should be trying to, either). Are you using a initrd image by any chance? Are you absolutely positive you're running the version of the kernel that has devfs enabled? Did you "make mrproper" before compiling (just a safety measure)? http://bugs.gentoo.org/ may be more appropriate for your problem unless you've already tried it. -- \ Georgi Georgiev \ FACILITY REJECTED 100044200000; \ / chutz@gg3.net / / \ +81(90)6266-1163 \ \