Is it possible to create a directory under /dev?

Carlos A. M. dos Santos unixmania at gmail.com
Thu May 22 03:18:09 UTC 2008


On Wed, May 21, 2008 at 11:15 AM, Vivek Khera <vivek at khera.org> wrote:
>
> On May 21, 2008, at 8:44 AM, Carlos A. M. dos Santos wrote:
>
>> I attempted this:
>>
>>    # mkdir /dev/foo
>>    mkdir: /dev/foo: Operation not supported
>>
>> Any suggestions (besides creating it elsewhere, of course)?
>
> Assuming you're using a modern FreeBSD (version number would be useful),
> /dev does not live on a file system.  It exists as its own file system,
> controlled by devfs.  Check the man page for devfs for details.

I'm using 7.0-STABLE. I've read devfs(8), devfs(5) and did not find an
answer there.

-- 
Carlos A. M. dos Santos


More information about the freebsd-stable mailing list