Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Mar 2006 20:00:19 -0500 (EST)
From:      Jerry McAllister <jerrymc@clunix.cl.msu.edu>
To:        glenn@antimatter.net (Glenn Dawson)
Cc:        Markus Oestreicher <m.oe@x-trader.de>, freebsd-questions@freebsd.org
Subject:   Re: Adding partition
Message-ID:  <200603140100.k2E10Jlr021193@clunix.cl.msu.edu>
In-Reply-To: <7.0.1.0.2.20060313124113.068a2d00@antimatter.net>

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> At 12:27 PM 3/13/2006, Jerry McAllister wrote:
> > >
> > > Good Day,
> > >
> > > There is free space at the end of my disk and I want to move
> > > /usr/ports do a dedicated partition.
> > >
> > > # disklabel /dev/ad10s1
> > > # /dev/ad10s1:
> > > 8 partitions:
> > > #        size   offset    fstype   [fsize bsize bps/cpg]
> > >    a:  1024000        0    4.2BSD     2048 16384 64008
> > >    b:  2252800 44032000      swap
> > >    c: 368627427        0    unused        0     0   # "raw"
> > >    d:  2048000  1024000    4.2BSD     2048 16384 28552
> > >    e: 20480000  3072000    4.2BSD     2048 16384 28552
> > >    f: 20480000 23552000    4.2BSD     2048 16384 28552
> > >
> > > I want to add a g partition with 10 GByte to end.
> > >
> > > When I enter "disklabel -e /dev/ad10s1" vi opens and I add
> > > the following line to the end:
> > >
> > >    g: 20480000 44032000    4.2BSD     2048 16384 28552
> > >
> > > Upon saving I get an error that partitions "c" and "g" overlap.
> > > As far as I have read this is on purpose. How can I avoid the
> > > error message?
> >
> >I don't know why it would say that c and g overlap, but you have
> >forgot to include the space used for swap in the offset.
> >Your offset should really be 46284800.
> >
> >I have heard that some people think you should put your swap at the
> >highest address, but I don't think that applies in any significant
> >way to modern drives.    I could be wrong on that, though.
> 
> On some current drives, I've seen differences in sustained throughput 
> of up to 2 to 1 when comparing the beginning of the disk and the end 
> of the disk.  The beginning of the disk being faster.
> 
> -Glenn

In that case, you probably want root and swap nearest the beginning
of the disk.

////jerry

> >Anyway, using the partition labels out of order does lead to confusion
> >and errors in calculations - in my experience.
> >
> >////jerry
> >
> > > Thank you!
> > >
> > > Markus
> > >



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