From owner-freebsd-questions@FreeBSD.ORG Fri Oct 25 19:35:07 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 2D4BC276 for ; Fri, 25 Oct 2013 19:35:07 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id E54B22C98 for ; Fri, 25 Oct 2013 19:35:06 +0000 (UTC) Received: from r56.edvax.de (port-92-195-117-74.dynamic.qsc.de [92.195.117.74]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id 278503CC83; Fri, 25 Oct 2013 21:35:04 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id r9PJYue2002268; Fri, 25 Oct 2013 21:34:56 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Fri, 25 Oct 2013 21:34:56 +0200 From: Polytropon To: David Newman Subject: Re: viewing major and minor device numbers Message-Id: <20131025213456.13153587.freebsd@edvax.de> In-Reply-To: <526AC5E7.3080900@networktest.com> References: <526AC5E7.3080900@networktest.com> Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Oct 2013 19:35:07 -0000 On Fri, 25 Oct 2013 12:26:31 -0700, David Newman wrote: > 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? Do you have any "suspicious" ls alias or options preconfigured? That output looks a bit strange, it should be something like this (example from a host system, not from inside a jail): % /bin/ls -laFG /dev/null crw-rw-rw- 1 root wheel 0, 17 Oct 25 21:33 /dev/null ^ ^^ This is the binary /bin/ls, no "shell builtin" or the like, called from the C shell; OS is FreeBSD 8, x86. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...