Subject: install/8473: No dmesg on boot.fs.gz
To: None <gnats-bugs@gnats.netbsd.org>
From: None <ac131313@cygnus.com>
List: netbsd-bugs
Date: 09/22/1999 16:50:53
>Number:         8473
>Category:       install
>Synopsis:       No dmesg on boot.fs.gz
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    install-manager (NetBSD system installation bug manager)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Wed Sep 22 16:50:01 1999
>Last-Modified:
>Originator:     Andrew Cagney
>Organization:
>Release:        NetBSD-1.4.1-release, i386
>Environment:
N.T. 4.0, patch level 5 ???


>Description:
Boot disk failed to find both the SCSI disk and ethernet controller
(understandable - both very new with).

My problem was that I couldn't figure this out as the good old
``dmesg'' command wasn't there.  I suspect that many people are
more familiar with dmesg than ``more /kern/msgbuf'' (I stumbled
across the latter, is that even the corect name).

	Andrew

>How-To-Repeat:
$ dmesg
sh: dmesg: command not found
$ 

>Fix:
Adding another `x_' command like:

int
main ()
{
  int fd = open ("/kern/msgbuf", ....);
  char ch;
  while (read (fd, &ch, 1) == 1)
    if (isprint (ch))
      write (1, &ch, 1);
}

To the crunchgen utils :-)


>Audit-Trail:
>Unformatted: