Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Jan 2005 15:45:55 -0500 (EST)
From:      Jerry McAllister <jerrymc@clunix.cl.msu.edu>
To:        j65nko@gmail.com
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Adding a partition
Message-ID:  <200501282045.j0SKjua16392@clunix.cl.msu.edu>
In-Reply-To: <19861fba0501281149488bf26d@mail.gmail.com> from "J65nko BSD" at Jan 28, 2005 08:49:21 PM

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> On Fri, 28 Jan 2005 15:36:08 +0101, David J. Weller-Fahy
> <dave-lists-freebsd-questions@weller-fahy.com> wrote:
> > I left about 26GB free on my 80GB hard drive.  Having found a use for
> > that space, I now want to add a partition.  I've not added one by hand,
> > and /stand/sysinstall gives me a 'cannot write to ...' message, so I
> > want confirmation that what I'm about to do won't crump on me. ;]
> > 
> > System is two 80GB ATA hard drives on a 'Promise PDC20269 UDMA133
> > controller' (according to dmesg), with one on each channel (both
> > master).  I'm running software raid using atacontrol.
> > 
> > My current partition table follows:
> > 
> > #v+
> > dave[tigger]~> sudo bsdlabel ar0s1
> > # /dev/ar0s1:
> > 8 partitions:
> > #        size   offset    fstype   [fsize bsize bps/cpg]
> >   a:  1048576        0    4.2BSD     2048 16384     8
> >   b:  2097152  1048576      swap
> >   c: 156296322        0    unused        0     0         # "raw" part, don't edit
> >   d: 73400320 30408704    4.2BSD     2048 16384 28544
> >   e:  2097152  3145728    4.2BSD     2048 16384 28552
> >   f: 12582912  5242880    4.2BSD     2048 16384 28552
> >   g: 12582912 17825792    4.2BSD     2048 16384 28552
> > #v-
> > 
> > To use up the unused space, I believe I need to add the following line:
> > 
> > #v+
> >   h: 52487298 103809024    4.2BSD     2048 16384 28552
> > #v-
> > 
> > Could someone who's done that before confirm whether that looks right?
> > 
> 
> First you need to create a FreeBSD slice with fdisk, say /dev/ar0s2.
> Only then you can disklabel that /dev/ar0s2.

Looks to me like he wants to put the partition in the remaining space 
in the existing slice.  It all adds up, based on the c: 156296322 size

Now, if he wanted to use some disk left out of the existing slice,
he would have to use fdisk to change the slice table.

////jerry

> 
> =Adriaan=
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
> 



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