From owner-freebsd-questions@FreeBSD.ORG Fri Oct 25 19:26:39 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 5D235E8 for ; Fri, 25 Oct 2013 19:26:39 +0000 (UTC) (envelope-from dnewman@networktest.com) Received: from mail5.networktest.com (mail5.networktest.com [204.109.60.142]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 37F462C24 for ; Fri, 25 Oct 2013 19:26:38 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail5.networktest.com (Postfix) with ESMTP id 529472FCCA0 for ; Fri, 25 Oct 2013 12:26:32 -0700 (PDT) Received: from mail5.networktest.com ([127.0.0.1]) by localhost (mail5.networktest.com [127.0.0.1]) (maiad, port 10024) with ESMTP id 16082-02 for ; Fri, 25 Oct 2013 12:26:32 -0700 (PDT) Received: from dhcp130.eng.networktest.com (ns.networktest.com [205.147.16.129]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: dnewman@networktest.com) by mail5.networktest.com (Postfix) with ESMTPSA id 121112FCC96 for ; Fri, 25 Oct 2013 12:26:32 -0700 (PDT) Message-ID: <526AC5E7.3080900@networktest.com> Date: Fri, 25 Oct 2013 12:26:31 -0700 From: David Newman Organization: Network Test Inc. User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.0.1 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: viewing major and minor device numbers X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Oct 2013 19:26:39 -0000 FreeBSD 9.2-RELEASE, amd64 To create some character special devices in a chroot environment, I've previously used mknod, but now can't find the major and minor device numbers. The ls manpage says these numbers should be displayed in the size field. However, I'm seeing only one hex value, e.g.: $ ls -l /dev/null crw-rw-rw- 1 root wheel 0x13 Oct 25 12:22 /dev/null So I don't know what major and minor values to feed mknod. Or is there another way to do this? thanks dn