From owner-freebsd-questions Fri Sep 17 11:27:12 1999 Delivered-To: freebsd-questions@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id 4BFF61596E for ; Fri, 17 Sep 1999 11:26:57 -0700 (PDT) (envelope-from bright@wintelcom.net) Received: from localhost (bright@localhost) by fw.wintelcom.net (8.8.8/8.8.8) with ESMTP id EAA03366; Fri, 17 Sep 1999 04:46:46 -0700 (PDT) (envelope-from bright@wintelcom.net) Date: Fri, 17 Sep 1999 11:46:46 +0000 (GMT) From: Alfred Perlstein To: Pavel Roskin Cc: freebsd-questions@FreeBSD.ORG Subject: Re: How to invalidate cache? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, 17 Sep 1999, Pavel Roskin wrote: > Hello! > > GRUB (GRand Unifiead Bootloader, > http://www.gnu.org/software/grub/grub.en.html) is a bootloader that can > boot Linux, *BSD and *Mach directly and other systems using their > bootsectors. > > The development version of GRUB has an installer that can install the > bootloader without having to reboot. > > The installer writes directly to the disk. > The questions is: what precautions should be done before and after writing > to /dev/rwd0 ? (or should that be /dev/wd0 ?) If possible do so in an order that if anything should happen the system will still boot. :) > More specifically, is it possible to invalidate the cache for the whole > disk? Is it necessary? Access to raw devices is not buffered, for a non buffered operation use the raw version of the device (/dev/r) > It there anything similar BLKFLSBUF in Linux? Not needed when accessing raw devices, in fact there is talk of buffered block devices "going away" so using raw devices is probably a wiser move. good luck, -Alfred To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message