Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Oct 2013 12:26:31 -0700
From:      David Newman <dnewman@networktest.com>
To:        freebsd-questions@freebsd.org
Subject:   viewing major and minor device numbers
Message-ID:  <526AC5E7.3080900@networktest.com>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?526AC5E7.3080900>