Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!samsung!usc!sdd.hp.com!hp-pcd!hpfcso!hpfcmdd!hpbbrd!hpbbn!hpbbi4!ralfw From: ralfw@hpbbi4.BBN.HP.COM (#Ralf Wiegert) Newsgroups: comp.sys.hp Subject: Re: HP 9000/835, HP-UX 7.0 - unable to use cartridge tape drive Message-ID: <1720014@hpbbi4.BBN.HP.COM> Date: 16 Jan 91 08:34:09 GMT References: Organization: Hewlett-Packard GmbH, Germany Lines: 60 > /dev/rct/c0d0s2 > tcio(1004): cannot access tape /dev/rct/c0d0s2%; errno 2 > > /dev/rct/c6d0s2 > tcio(1004): cannot access tape /dev/rct/c6d0s2; errno 6 > > /dev/rct/c1000d0s2 > tcio(1004): cannot access tape /dev/rct/c1000d0s2; errno 19 > >I don't have a clue as to what these error numbers mean. The error numbers can be found in /usr/include/sys/errno.h, I have included a script that gives you the error name for a given errno. #define ENOENT 2 /* No such file or directory */ #define ENXIO 6 /* No such device or address */ #define ENODEV 19 /* No such device */ For the given error names (e.g. ENOENT) you can than have a look in the errno(2) man page (man 2 errno): ENOENT No such file or directory. This error occurs when a file name is specified and the file should exist but doesn't, or when one of the directories in a path name does not exist. It also occurs with msgget, semget, shmget when key does not refer to any object and the IPC_CREAT flag is not set. ENXIO No such device or address. I/O on a special file refers to a subdevice which does not exist, or beyond the limits of the device. It may also occur when, for example, a tape drive is not online or no disk pack is loaded on a drive. ENODEV No such device. An attempt was made to apply an inappropriate system call to a device; e.g., read a write-only device. This is no official HP answer. Hope this help, Ralf Wiegert, HP Boeblingen, Germany #echo "errno @(#)revision 1.0" # ====================================================================== # ==================== script documentation ============================ # desc Full pathname : /usr/gmbh/bin/errno # desc This script returns the error description for a given errno # desc # # ---------------------------------------------------------------------- # hist 1.0 900220 Ralf Wiegert # hist # ====================== end of documentation ========================== if [ $# -ne 1 ] then echo "Usage: $0 number" >&2 exit 1 fi awk '/^#define/ { if ($3 == '"$1"') print }' /usr/include/sys/errno.h