From owner-freebsd-multimedia@FreeBSD.ORG Sat Jan 31 15:27:14 2004 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 22EC716A4CF for ; Sat, 31 Jan 2004 15:27:14 -0800 (PST) Received: from rwcrmhc11.comcast.net (rwcrmhc11.comcast.net [204.127.198.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5FC4043D64 for ; Sat, 31 Jan 2004 15:26:59 -0800 (PST) (envelope-from julian@elischer.org) Received: from interjet.elischer.org ([24.7.73.28]) by comcast.net (rwcrmhc11) with ESMTP id <2004013123265801300ctk4ee>; Sat, 31 Jan 2004 23:26:58 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id PAA47391; Sat, 31 Jan 2004 15:26:56 -0800 (PST) Date: Sat, 31 Jan 2004 15:26:54 -0800 (PST) From: Julian Elischer To: "Cordula's Web" In-Reply-To: <20040131193525.9EA1740823@fw.farid-hajji.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-multimedia@freebsd.org Subject: Re: Transferring the root filesystem to a ramdisk? X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 31 Jan 2004 23:27:14 -0000 you could mount the replacement root device on '/' alternatively you could make init do the chroot (you have source no? :-) On Sat, 31 Jan 2004, Cordula's Web wrote: > > > > in an attempt to save power on FreeBSD servers, I'm > > > > trying to replace the hdd with a ramdisk. The idea is to: > > > > > > As for powering down the hdd I did find a page for this, > > > but havent had time to play with it yet: > > > http://www.cran.org.uk/bruce/software.php > > > > there is a port "ataidle" that sets teh IDE drive's internal idle > > timeout timer so it will spin down if you dont use it.. > > Yes, thank you. ataidle works like a charm. > > > as for scsi, you can sent it a spin-down command with camcontrol but I > > forget the actual command.. > > (it should be in the scsi .h files) > > # camcontrol stop da0 > # camcontrol start da0 > works for me. > > Now, all I need would be a syscall to switch the kernel's notion > of the root device. > > Or is there a way to umount root, and remount it on the md drive? > > -- > Cordula's Web. http://www.cordula.ws/ > >