From owner-freebsd-questions@freebsd.org Mon Aug 28 22:51:43 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1C623E158E3 for ; Mon, 28 Aug 2017 22:51:43 +0000 (UTC) (envelope-from james@pacehouse.com) Received: from mail-wr0-x229.google.com (mail-wr0-x229.google.com [IPv6:2a00:1450:400c:c0c::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A4F3167CA2 for ; Mon, 28 Aug 2017 22:51:42 +0000 (UTC) (envelope-from james@pacehouse.com) Received: by mail-wr0-x229.google.com with SMTP id k94so5478901wrc.0 for ; Mon, 28 Aug 2017 15:51:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pacehouse.com; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=jjXQ1Kvr56TzDiybZa36VskyjtkVIk1RV3H9QUPZ/ZM=; b=Jz/+T+L/xkyWF1WVpq/EjsepAdZ8lbGsgpFHCQ3OC6OajPZddn/t1U3LE6oTUK+TIA ISBQ0M7+og9DlMDBLHBESEE3np7l8fLvJ59WHa+jX/eeSq27wesYMTbyUaTu2MUoI9Eh jhbtSuKkR+7pg+/K5/1z2E83M2fzk3O3Z94F0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=jjXQ1Kvr56TzDiybZa36VskyjtkVIk1RV3H9QUPZ/ZM=; b=kyoSeTDdsFtUR2dXMOx21HnJwDRWmxfr3xzXTTuTPhZD0gQDGm1gbSrBk4a5adQurC bJ+b7dm4DHaaMIUV03z8HsPWF0S3amguUZp+2fZWUPmgVmXUmz/N1WFKdJjV0ETCzB9b FDt1hfQtCQda7r7+Gc73rYxR0ESpBgaQZWVF5aZohqpe6sRcUvfHeMIjC1li7j5FlDFP FTiD73581jdfhoF0AiaZFKZtMzt6nhfqksgt0oB8IW5eGbkSP3Q+uFoT4i8OYwXFmdrg gs5jDPUqZGG+VsKX+v7A2ZIamOBVftO4sj2Pki2HXJ7F7AJ5+mCUcDD3hFyBqRoTGpGe UG+g== X-Gm-Message-State: AHYfb5ig+nKH3oxizdtz6KkMNzwo7i4iVIRrNqCa2iUpTPHWuYJhXp0R yTe3p3y8YBZQR8cmJsy8dumYBXI85Yda X-Received: by 10.223.187.141 with SMTP id q13mr193848wrg.24.1503960701079; Mon, 28 Aug 2017 15:51:41 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.135.2 with HTTP; Mon, 28 Aug 2017 15:51:20 -0700 (PDT) In-Reply-To: References: From: "James E. Pace" Date: Mon, 28 Aug 2017 15:51:20 -0700 Message-ID: Subject: Re: mknod to create /dev/null equivalent not working To: Adam Vande More Cc: FreeBSD Questions Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Aug 2017 22:51:43 -0000 On Mon, Aug 28, 2017 at 3:49 PM, Adam Vande More wrote: > On Mon, Aug 28, 2017 at 5:44 PM, James E. Pace > 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