devfs
[Top] [All Lists]

Re: problem with devfs

To: devfs@xxxxxxxxxxx
Subject: Re: problem with devfs
From: Georgi Georgiev <chutz@xxxxxxx>
Date: Fri, 2 Jan 2004 06:08:59 +0900
In-reply-to: <3FF30943.9000302@xxxxxxxxx>
Mail-followup-to: devfs@xxxxxxxxxxx
References: <3FF30943.9000302@xxxxxxxxx>
Reply-to: Georgi Georgiev <chutz-dated-1074200941.9581bbc8e5a3@xxxxxxx>
Sender: devfs-bounce@xxxxxxxxxxx
User-agent: Mutt/1.5.5.1i
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@xxxxxxx    /                                               /
\   +81(90)6266-1163   \                                               \

<Prev in Thread] Current Thread [Next in Thread>