From owner-freebsd-questions Tue Jan 1 10:38:23 2002 Delivered-To: freebsd-questions@freebsd.org Received: from portia.cc.emory.edu (portia.cc.emory.edu [170.140.204.3]) by hub.freebsd.org (Postfix) with ESMTP id D7E4B37B420 for ; Tue, 1 Jan 2002 10:38:19 -0800 (PST) Received: from emory.edu (anx56-52.dialup.emory.edu [170.140.251.52]) by portia.cc.emory.edu (8.10.2/8.10.2) with ESMTP id g01IcEc04044 for ; Tue, 1 Jan 2002 13:38:15 -0500 (EST) Message-ID: <3C320262.7020500@emory.edu> Date: Tue, 01 Jan 2002 13:39:30 -0500 From: Giuseppe Pagnoni User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:0.9.6) Gecko/20011128 X-Accept-Language: en-us MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: how to disable write cache? Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi I have erratic problems with a Seagate SCSI driver and browsing through the lists I came to understand that this might be related to the write caching turned on or a bad firmware. I was unable to find a new firmware from the seagate site and I couldn't find a way to turn off write caching via the SCSI controller setup either(no related options there). I found this alternative suggestion on the list: > Run this: > > EDITOR="/usr/bin/perl -i -pe 's/1/0/g if /^WCE/'" \ > camcontrol modepage da0 -P 3 -m 8 > > do this for all your drives which have bad firmware. but... clearly EDITOR is not a command, so i guess i am missing something here. Could somebody explain me (in simpler terms) how can i disable write caching for my two SCSI disks (da0 and da1) permanently in FreeBSD 4.4R? thanks a lot! giuseppe To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message