From owner-freebsd-questions@FreeBSD.ORG Sun Sep 21 19:29:00 2008 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 773451065674 for ; Sun, 21 Sep 2008 19:29:00 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from mail.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id 47C608FC17 for ; Sun, 21 Sep 2008 19:29:00 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from localhost (mail.rachie.is-a-geek.net [192.168.2.101]) by mail.rachie.is-a-geek.net (Postfix) with ESMTP id E61BDAFBC01; Sun, 21 Sep 2008 11:28:58 -0800 (AKDT) From: Mel To: freebsd-questions@freebsd.org Date: Sun, 21 Sep 2008 21:28:41 +0200 User-Agent: KMail/1.9.7 References: <200809211419.m8LEJe3Y026683@mp.cs.niu.edu> <20080921165009.GB3097@kokopelli.hydra> In-Reply-To: <20080921165009.GB3097@kokopelli.hydra> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200809212128.41530.fbsd.questions@rachie.is-a-geek.net> Cc: Chad Perrin Subject: Re: looking for a disk partition ("slice") editor 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: Sun, 21 Sep 2008 19:29:00 -0000 On Sunday 21 September 2008 18:50:09 Chad Perrin wrote: > Perhaps, if there's some *good* reason why we *shouldn't* want to "mess > with slices" while the system is running, someone can explain why. =46rom geom(4): Several flags are provided for tracing GEOM operations and unlocking p= ro- tection mechanisms via the kern.geom.debugflags sysctl. All of these flags are off by default, and great care should be taken in turning th= em on. 0x10 (allow foot shooting) Allow writing to Rank 1 providers. This would, for example, all= ow the super-user to overwrite the MBR on the root disk or write ra= n- dom sectors elsewhere to a mounted disk. The implications are obvious. There should be several partition editors in sysutils/*, so the only thing = you=20 really need is to set kern.geom.debugflags to 16. A quick scan of gpart(8) man page might have support for logical paritions,= =20 but I'm not an expert: add Add a new partition to the partitioning scheme given by geom. The partition begins on the logical block address given by the -b start option. Its size is expressed in logical block numb= ers and given by the -s size option. The type of the partition is given by the -t type option. Partition types are discussed in the section entitled "Partition Types". =2D-=20 Mel Problem with today's modular software: they start with the modules and never get to the software part.