From owner-freebsd-scsi@FreeBSD.ORG Tue Sep 16 13:50:35 2014 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C2590B72 for ; Tue, 16 Sep 2014 13:50:35 +0000 (UTC) Received: from smtp.infotech.no (smtp.infotech.no [82.134.31.41]) by mx1.freebsd.org (Postfix) with ESMTP id 7F6C2F9F for ; Tue, 16 Sep 2014 13:50:34 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.infotech.no (Postfix) with ESMTP id 3C5252041D4; Tue, 16 Sep 2014 15:50:27 +0200 (CEST) X-Virus-Scanned: by amavisd-new-2.6.6 (20110518) (Debian) at infotech.no Received: from smtp.infotech.no ([127.0.0.1]) by localhost (smtp.infotech.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9ljjEVeyjE+U; Tue, 16 Sep 2014 15:50:25 +0200 (CEST) Received: from [192.168.48.86] (unknown [206.126.91.104]) by smtp.infotech.no (Postfix) with ESMTPA id A4C1C2041CE; Tue, 16 Sep 2014 15:50:24 +0200 (CEST) Message-ID: <54184016.7060208@interlog.com> Date: Tue, 16 Sep 2014 09:50:14 -0400 From: Douglas Gilbert Reply-To: dgilbert@interlog.com User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.1 MIME-Version: 1.0 To: Bram Vandoren , freebsd-scsi@freebsd.org Subject: Re: How to disable hard disk write cache? References: <541804B0.7070407@gmail.com> <5418311A.3080007@ster.kuleuven.be> In-Reply-To: <5418311A.3080007@ster.kuleuven.be> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Sep 2014 13:50:35 -0000 On 14-09-16 08:46 AM, Bram Vandoren wrote: > On 09/16/2014 11:36 AM, Xu Zhe wrote: > >> Does anyone knows how to disable write cache of hard disk? > > Have a look at camcontrol modepage and the WCE bit. You could also use the sdparm utility: sdparm -c WCE