On 13/06/07, Stevan Tiefert <[EMAIL PROTECTED]> 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.

freebsd-questions@freebsd.org mailing list
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to