From owner-freebsd-questions Tue May 15 5:51:38 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mail.rz.uni-ulm.de (sirius-giga.rz.uni-ulm.de [134.60.246.36]) by hub.freebsd.org (Postfix) with ESMTP id 0889B37B422 for ; Tue, 15 May 2001 05:51:26 -0700 (PDT) (envelope-from siegbert.baude@gmx.de) Received: from gmx.de (lilith.wohnheim.uni-ulm.de [134.60.106.64]) by mail.rz.uni-ulm.de (8.9.3/8.9.3) with ESMTP id OAA11162; Tue, 15 May 2001 14:51:20 +0200 (MEST) Message-ID: <3B012648.1A963574@gmx.de> Date: Tue, 15 May 2001 14:51:20 +0200 From: Siegbert Baude X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: de, en MIME-Version: 1.0 To: Christoph Sold Cc: questions@FreeBSD.ORG Subject: Re: /var/run/dmesg.boot additional question References: <15104.3363.384718.498063@guru.mired.org> <004401c0dcb3$cfd6ee40$9aea5fd8@mshome.net> <3B009D11.CC1F7320@gmx.de> <3B00C5A3.2000501@i-clue.de> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > My question is the other way round. I would like to have the output > > of the rc scripts (mounting disks, network initialization, Linux ABI, > > ...) also in dmesg. Is there an easy way to achieve this, without > > editing all rc scripts manually? > > Are those messages in any other log by default? > > For exactly this reason, I added a small script to /etc/rc.local: > > #!/bin/sh > # > # bootlog: log the boot messages into a separate file in case the dmesg > # buffer overflows > > $f = "boot."`date '+%y%m%d%H%M'`".log" > dmesg > $f > That saves dmesg (BTW, in which directory? /root ?), but doesn't add the messages of the rc scripts. After a boot my dmesg for example ends with: cd1 at sym0 bus 0 target 4 lun 0 cd1: Removable CD-ROM SCSI-2 device cd1: 10.000MB/s transfers (10.000MHz, offset 8) cd1: Attempt to query device size failed: NOT READY, Medium not present cd0 at sym0 bus 0 target 3 lun 0 cd0: Removable CD-ROM SCSI-2 device cd0: 8.333MB/s transfers (8.333MHz, offset 8) cd0: Attempt to query device size failed: NOT READY, Medium not present - tray closed But on the screen I see in addition the output of the rc scripts, like: swapon: adding /dev/ad0s3b as swap device Automatic boot in progress... /dev/ad0s3a: FILESYSTEM CLEAN; SKIPPING CHECKS /dev/ad0s3a: clean, 10711 free (399 frags, 1289 blocks, 0.8% fragmentation) /dev/ad0s3f: FILESYSTEM CLEAN; SKIPPING CHECKS /dev/ad0s3f: clean, 76161 free (1761 frags, 9300 blocks, 0.9% fragmentation) /dev/ad2s1d: FILESYSTEM CLEAN; SKIPPING CHECKS /dev/ad2s1d: clean, 460027 free (39907 frags, 52515 blocks, 2.0% fragmentation) /dev/ad0s3e: FILESYSTEM CLEAN; SKIPPING CHECKS /dev/ad0s3e: clean, 11260 free (444 frags, 1352 blocks, 2.2% fragmentation) /dev/ad0s9h: FILESYSTEM CLEAN; SKIPPING CHECKS /dev/ad0s9h: clean, 219958 free (4294 frags, 26958 blocks, 0.8% fragmentation) Doing initial network setup: hostname. rl0: flags=8843 mtu 1500 Additional routing options: tcp extensions=NO TCP keepalive=YES. Routing daemons:. Additional daemons: syslogd. Doing additional network setup: ntpdate portmap. Starting final network daemons:. ELF ldconfig path: /usr/lib /usr/lib/compat /usr/X11R6/lib /usr/local/lib a.out ldconfig path: /usr/lib/aout /usr/lib/compat/aout /usr/X11R6/lib/aout Starting standard daemons: inetd cron printer sshd usbd. Initial rc.i386 initialization: apm apmd. Configuring syscons: keymap font8x16 font8x14 font8x8 blank_time screensaver mou sed. Additional ABI support: linux. Local package initialization: /usr/local/etc/rc.d/rc.local: healthd mixer settin g. Additional TCP options:. How can I save them to a file, preferred to dmsg? Ciao Siegbert To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message