Date: Sun, 21 Sep 2008 21:28:41 +0200 From: Mel <fbsd.questions@rachie.is-a-geek.net> To: freebsd-questions@freebsd.org Cc: Chad Perrin <perrin@apotheon.com> Subject: Re: looking for a disk partition ("slice") editor Message-ID: <200809212128.41530.fbsd.questions@rachie.is-a-geek.net> In-Reply-To: <20080921165009.GB3097@kokopelli.hydra> References: <200809211419.m8LEJe3Y026683@mp.cs.niu.edu> <20080921165009.GB3097@kokopelli.hydra>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200809212128.41530.fbsd.questions>