Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

mknod

3 views
Skip to first unread message

Peter Hellmann

unread,
Oct 3, 1999, 7:00:00 AM10/3/99
to
hi all,

we want to create a node for a tape-drive, but we don't know what exactly we
must use as the parameters "major-device" and "minor-device". the man pages
say, the command looks like this:

mknod /dev/whatever c major minor

can someone please give us a hint what we should specify as the major and
minor device ?

an help highly appreciated. thank you.

Peter

Juergen Heinzl

unread,
Oct 3, 1999, 7:00:00 AM10/3/99
to
In article <37f78...@news.w-4.de>, Peter Hellmann wrote:
>hi all,
>
>we want to create a node for a tape-drive, but we don't know what exactly we
>must use as the parameters "major-device" and "minor-device". the man pages
>say, the command looks like this:
>
>mknod /dev/whatever c major minor
>
>can someone please give us a hint what we should specify as the major and
>minor device ?

You are stuck as long as you do not know what the systems' major and
minor numbers are for tape devices; man mt might reveal something or
give some pointers.

Ta',
Juergen

--
\ Real name : Jürgen Heinzl \ no flames /
\ EMail Private : jue...@monocerus.demon.co.uk \ send money instead /

Ken Pizzini

unread,
Oct 3, 1999, 7:00:00 AM10/3/99
to
On Sun, 3 Oct 1999 18:15:53 +0200, Peter Hellmann <hell...@w-4.de> wrote:
>we want to create a node for a tape-drive, but we don't know what exactly we
>must use as the parameters "major-device" and "minor-device". the man pages
>say, the command looks like this:
>
>mknod /dev/whatever c major minor
>
>can someone please give us a hint what we should specify as the major and
>minor device ?

No clue --- you didn't specify _which_ version of unix you are
using, and this is a detail that is fairly arbritrary between
different vendor's releases. But before you ask again on the
newsgroups, may I suggest reading the man page for "tape" or
some variation (e.g., "mt", "st"; browse sections 4 and 5 of
your man page directory) --- the man pages for hardware devices
usually will mention what major number is associated with the
device, and if the meaning of the minor number is "nonobvious"
then that is usually documented there also.


--Ken Pizzini

0 new messages