Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ devnm(1) — AIX/RT 2.2.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

rc

setmnt

devnm

PURPOSE

     Names a device.

SYNOPSIS
     devnm name

DESCRIPTION

     The devnm command reads path, identifies the special file
     associated  with  the  mounted  file  system  where  path
     resides,  and writes  the special  file name  to standard
     output.  Each path must be a full path name.

     The most common use of the devnm command is by /etc/rc to
     construct a mount table entry for the root device.

     Note:  This command is for local file systems only.

EXAMPLES

     1.  To identify the device on which a file resides:

           devnm  /diskette0/bob/textfile

         This displays the name of  the special device file on
         which   "/diskette0/bob/textfile"   resides.   If   a
         diskette is  mounted as  /diskette0, then  devnm dis-
         plays:

           fd0  /diskette0/bob/textfile
           rfd0  /diskette0/bob/textfile

         This means that  "/diskette0/bob/textfile" resides on
         the diskette drive /dev/fd0.
     2.  To  identify  the  device  on  which  a  file  system
         resides:

           devnm  /

         This displays  the name  of the  device on  which the
         root file  system ("/") resides.  The  following list
         appears on the screen:

           hd0  /

         This means that "/" resides on /dev/hd0.

FILES

     /dev         Directory.
     /etc/mnttab  Table of mounted devices.

RELATED INFORMATION

     The following commands:  "rc" and "setmnt."

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026