Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Mar 2010 09:31:32 +0200
From:      Jonathan McKeown <j.mckeown@ru.ac.za>
To:        freebsd-questions@freebsd.org
Subject:   Re: Booting MFS from Secondary Partition
Message-ID:  <201003080931.32157.j.mckeown@ru.ac.za>
In-Reply-To: <201003061302.o26D2KBN003070@dc.cis.okstate.edu>
References:  <201003061302.o26D2KBN003070@dc.cis.okstate.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201003080931.32157.j.mckeown>