From owner-freebsd-questions@FreeBSD.ORG Mon Mar 8 07:31:36 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C5CDC1065670 for ; Mon, 8 Mar 2010 07:31:36 +0000 (UTC) (envelope-from j.mckeown@ru.ac.za) Received: from b.mail.ru.ac.za (b.mail.ru.ac.za [IPv6:2001:4200:1010::25:2]) by mx1.freebsd.org (Postfix) with ESMTP id D58828FC0A for ; Mon, 8 Mar 2010 07:31:35 +0000 (UTC) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=ru-msa; d=ru.ac.za; h=Received:From:Organization:To:Subject:Date:User-Agent:References:In-Reply-To:X-Face:MIME-Version:Content-Type:Content-Transfer-Encoding:Content-Disposition:Message-Id:X-Virus-Scanned:X-Authenticated-User; b=dS9gd7Qkl/uSWRUNTyxsRlNxIPUXmIwNmSr4tGJTJjhsXb1HZ1RuQgbkisBB2rNZxB4UOJTHa78RsjxYgebE6Rk4ap1DYI+wQ2JbEBr3e2RPqZzVDyJrJbUtOan0zBR0; Received: from vorkosigan.ru.ac.za ([2001:4200:1010:1058:219:d1ff:fe9f:a932]:50791) by b.mail.ru.ac.za with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69 (FreeBSD)) (envelope-from ) id 1NoXR6-00086V-TD for freebsd-questions@freebsd.org; Mon, 08 Mar 2010 09:31:32 +0200 From: Jonathan McKeown Organization: Rhodes University To: freebsd-questions@freebsd.org Date: Mon, 8 Mar 2010 09:31:32 +0200 User-Agent: KMail/1.9.10 References: <201003061302.o26D2KBN003070@dc.cis.okstate.edu> In-Reply-To: <201003061302.o26D2KBN003070@dc.cis.okstate.edu> X-Face: $@VrUx^RHy/}yu]jKf/<4T%/d|F+$j-Ol2"2J$q+%OK1]&/G_S9(=?utf-8?q?HkaQ*=60!=3FYOK=3FY!=27M=60C=0A=09aP=5C9nVPF8Q=7DCilHH8l=3B=7E!4?= =?utf-8?q?2HK6=273lg4J=7Daz?=@1Dqqh:J]M^"YPn*2IWrZON$1+G?oX3@ =?utf-8?q?k=230=0A=0954XDRg=3DYn=5FF-etwot4U=24b?=dTS{i X-Virus-Scanned: b.mail.ru.ac.za (2001:4200:1010::25:2) X-Authenticated-User: s0900137 from vorkosigan.ru.ac.za (2001:4200:1010:1058:219:d1ff:fe9f:a932) using auth_plaintext Subject: Re: Booting MFS from Secondary Partition X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Mar 2010 07:31:36 -0000 On Saturday 06 March 2010 15:02:20 Martin McCormick wrote: > Fbsd1 writes: > > just dd the image to what ever drive you want > > That is the goal. The challenge is to launch a script > that detects when the boot device has been unmounted as dd will > not work on an active file system. Martin it may or may not work, but there's a sysctl for the geom subsystem which might do what you want. sysctl kern.geom.debugflags=16 This used to be used (for all i know still can be) to allow writing metadata for (eg) building a gmirror on a mounted disk - it's often referred to as the ``allow-footshooting'' flag. That might allow you to dd your image onto the mounted disk - i'd either try it with a handy spare system or wait for someone more expert than i to comment, though. Jonathan