From owner-freebsd-current Sat Jan 23 15:02:43 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA29110 for freebsd-current-outgoing; Sat, 23 Jan 1999 15:02:43 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from uni-sb.de (uni-sb.de [134.96.252.33]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA29104 for ; Sat, 23 Jan 1999 15:02:41 -0800 (PST) (envelope-from rock@wurzelausix.CS.Uni-SB.DE) Received: from cs.uni-sb.de (cs.uni-sb.de [134.96.252.31]) by uni-sb.de (8.9.2/1999010400) with ESMTP id AAA17228; Sun, 24 Jan 1999 00:02:23 +0100 (CET) Received: from wurzelausix (wurzelausix.cs.uni-sb.de [134.96.247.1]) by cs.uni-sb.de (8.9.2/1999010400) with ESMTP id AAA20590; Sun, 24 Jan 1999 00:02:23 +0100 (CET) Received: from vodix.aremorika (vodix [134.96.247.43]) by wurzelausix (8.9.1/wjp/19980821) with ESMTP id AAA12296; Sun, 24 Jan 1999 00:02:22 +0100 (CET) From: "D. Rock" Received: by vodix.aremorika; Sun, 24 Jan 1999 00:02:21 +0100 (MET) Date: Sun, 24 Jan 1999 00:02:21 +0100 (MET) Message-Id: <199901232302.AAA06978@vodix.aremorika> To: julian@whistle.com Cc: current@FreeBSD.ORG Subject: Re: dirty fs after apm power off Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This is what I also thought. But how do I turn off write caching on IDE disks. I know how to do on SCSI bit (mode page 8 byte 2 bit 2 clear), but I have absolutely no clue how this can be achieved on IDE disks. I normally turn off write caching on all drives I install. The drive shouldn't shuffle the carefully sorted file system blocks. Daniel > probably the drive needs write-caching turned off... > > > On Sat, 23 Jan 1999, D. Rock wrote: > > > I have noticed this behaviour on at least one machine. > > If I shutdown the machine with apm power off, the filesystem is dirty and > > has to been checked on the next reboot. It seems, the power is cut too fast. > > I don't have any problems with reboots. > > It seems the drive doesn't have the time to write the superblock back to disk. > > > > I simply put a DELAY(4000000) in the apm_power_off() routine and the problem > > fades away. > > Any thoughts on doing this a configurable option? It doesn't break anything, > > it only takes a few seconds longer for the machine to power off. > > > > The drive is a Maxtor Diamond Max (90432D2) 4GB IDE drive in an Asus SP98 > > board. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message