Date: Tue, 15 May 2001 14:51:20 +0200 From: Siegbert Baude <siegbert.baude@gmx.de> To: Christoph Sold <so@server.i-clue.de> Cc: questions@FreeBSD.ORG Subject: Re: /var/run/dmesg.boot additional question Message-ID: <3B012648.1A963574@gmx.de> References: <15104.3363.384718.498063@guru.mired.org> <004401c0dcb3$cfd6ee40$9aea5fd8@mshome.net> <3B009D11.CC1F7320@gmx.de> <3B00C5A3.2000501@i-clue.de>
next in thread | previous in thread | raw e-mail | index | archive | help
> > 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: > <snip> > #!/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 > </snip> 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: <snip> cd1 at sym0 bus 0 target 4 lun 0 cd1: <TEAC CD-ROM CD-532S 3.0A> 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: <YAMAHA CRW4416S 1.0j> 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<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 <snip> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3B012648.1A963574>