Date: Wed, 13 Jun 2007 23:53:51 -0400 From: "illoai@gmail.com" <illoai@gmail.com> To: "Stevan Tiefert" <stevan_tiefert@yahoo.de> Cc: freebsd-questions@freebsd.org Subject: Re: can not add a partition Message-ID: <d7195cff0706132053s37367529g275957b04906f83a@mail.gmail.com> In-Reply-To: <1181769588.38379.4.camel@vagabund.w33> References: <1181769588.38379.4.camel@vagabund.w33>
next in thread | previous in thread | raw e-mail | index | archive | help
On 13/06/07, Stevan Tiefert <stevan_tiefert@yahoo.de> wrote: > Hello list, > > I left a little bit space left in my slice during the installation. Now > I wanted to use this left space to create a gbde-partition. > > When I use sysinstall and create in menu "Label" a new partition and I > hit "W" to write my changes to disk an error appears, that label didn't > created the partition I wanted. > > My question is why can I not add a partition in my existing slice? On > what should I take care maybe? > sysinstall, while functional, is quite slow and clumsy. Assuming your disk is /dev/ad0, try: % bsdlabel ad0s1 (this won't modify anything) The out put should resemble: # /dev/ad0s1: 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 2097152 0 4.2BSD 2048 16384 28552 b: 995328 2097152 swap c: 20044080 0 unused 0 0 # "raw" part, don't edit d: 2594816 3092480 4.2BSD 2048 16384 28552 e: 2097152 5687296 4.2BSD 2048 16384 28552 f: 12259632 7784448 4.2BSD 2048 16384 28552 If I had any room left here (I don't) I could # bsdlabel -e ad0s1 and add the line: g: * * unused 0 0 at the bottom, which would cause bsdlabel to dedicate any remaining space to partition "g" and do all the offset calculations for me. (If you are unfamiliar with vi, you can type setenv EDITOR ee (or export EDITOR=ee if you use bash (ksh should take bash syntax, I think. You're on your own with zsh)) first.) And then # newfs -U ad0s1g Note well that you can only have a-h, as I believe the eight partition limit still holds under bsdlabel. -- --
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d7195cff0706132053s37367529g275957b04906f83a>
