Date: Mon, 28 Aug 2017 15:51:20 -0700 From: "James E. Pace" <james@pacehouse.com> To: Adam Vande More <amvandemore@gmail.com> Cc: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Re: mknod to create /dev/null equivalent not working Message-ID: <CAN1es4LSy3rgy087yD355LTD4r5cc-HB-4efwO2nQc%2BCniQD_w@mail.gmail.com> In-Reply-To: <CA%2BtpaK2kLf5stxJivvnkYQaGS8APUd7yu5VMGgLY6urqx9yyyw@mail.gmail.com> References: <CAN1es4LnDdSWwRBZLcDxKvXSPX6wNQPGHYt3pP_22%2B0F5QsNRw@mail.gmail.com> <CA%2BtpaK2kLf5stxJivvnkYQaGS8APUd7yu5VMGgLY6urqx9yyyw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Aug 28, 2017 at 3:49 PM, Adam Vande More <amvandemore@gmail.com> wrote: > On Mon, Aug 28, 2017 at 5:44 PM, James E. Pace <james@pacehouse.com> > wrote: > >> After "mknod /foo/dev/null c 0 0x1b": >> >> $ \ls -l /dev/null /foo/dev/null >> crw-rw-rw- 1 root wheel 0x1b Aug 28 15:34 /foo/dev/null >> crw-rw-rw- 1 root wheel 0x1b Aug 28 15:36 /dev/null >> $ cat /etc/hosts > /dev/null >> $ cat /etc/hosts > /foo/dev/null >> /foo/dev/null: Operation not supported. >> >> What am I doing wrong? Why isn't the device I created acting like >> /dev/null? >> >> Tried on FreeBSD 11.1. >> > > You must have missed the big header in the mknod man page. I think you > may want devfs(5) instead. > > Hey, look at that... "The mknod utility is deprecated on modern FreeBSD systems." Thanks, James
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAN1es4LSy3rgy087yD355LTD4r5cc-HB-4efwO2nQc%2BCniQD_w>