From owner-freebsd-questions Thu Sep 11 02:19:11 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id CAA09295 for questions-outgoing; Thu, 11 Sep 1997 02:19:11 -0700 (PDT) Received: from main.univers.chernovtsy.ua (sl1-28.8K-univers-litech.univers.chernovtsy.ua [194.44.100.253]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id CAA09096 for ; Thu, 11 Sep 1997 02:14:27 -0700 (PDT) Received: (from ok@localhost) by main.univers.chernovtsy.ua ( /) id MAA01625 for questions@FreeBSD.ORG; Thu, 11 Sep 1997 12:19:29 +0300 Date: Thu, 11 Sep 1997 12:19:29 +0300 From: Oleg Kolesnikov Message-Id: <199709110919.MAA01625@main.univers.chernovtsy.ua> To: questions@FreeBSD.ORG Subject: [Q] cp error messages when disk is write protected, how to disable (see letter) Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk When I mount dos diskette: mount_msdos /dev/fd0.1440 /dos_disk and diskette is write protected, command: cp /dos_disk outputs lots of errors to the console. The question is how to redirect ALL the error messages to some file. I tried to kill syslogd, redirect stderr of cp to /dev/null, etc. etc. but it seems to me that kernel generates all those message, so the only solution is to patch kernel's fd driver. Are there any other variants ? (My system is FreeBSD2.2.2-RELEASE) Best wishes, Oleg Kolesnikov