Is it possible to create a directory under /dev?

Vivek Khera vivek at khera.org
Wed May 21 14:15:04 UTC 2008


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.



More information about the freebsd-stable mailing list