Date: Wed, 31 May 2006 22:44:59 +0300 From: Giorgos Keramidas <keramida@ceid.upatras.gr> To: Robert Huff <roberthuff@rcn.com> Cc: freebsd-questions@freebsd.org Subject: Re: using bsdlabel Message-ID: <20060531194459.GB58198@gothmog.pc> In-Reply-To: <17533.61128.28295.514215@jerusalem.litteratus.org> References: <17533.61128.28295.514215@jerusalem.litteratus.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2006-05-31 15:30, Robert Huff <roberthuff@rcn.com> wrote:
>
> I've never used bsdlabel before; would someone please confirm
> I've got this right?
> Status quo:
>
> huff@>> bsdlabel da0s1
> # /dev/da0s1:
> 8 partitions:
> # size offset fstype [fsize bsize bps/cpg]
> a: 1024000 0 4.2BSD 0 0 0
> b: 2097152 1024000 swap
> c: 8916012 0 unused 0 0 # "raw" part, don't edit
> d: 2097152 3121152 4.2BSD 0 0 0
>
> As I understand it, if I run this:
>
> huff@>> bsdlabel -w da0s1 -f /label.new
>
> where /label.new has:
>
> # /dev/da0s1:
> 8 partitions:
> # size offset fstype [fsize bsize bps/cpg]
> a: 1024000 0 4.2BSD 0 0 0
> b: 2097152 1024000 swap
> c: 8916012 0 unused 0 0 # "raw" part, don't edit
> d: 2097152 3121152 4.2BSD 0 0 0
> e: 3697708 5128304 4.2BSD 0 0 0
>
> this will allocate the rest of the slice to partition 'e'.
> (And we're ready to newfs.)
Yes, this looks ok :)
The 'e' partition can only start *after* the 'd' partition, so it should
have an offset of:
'd' start + 'd' size
--------- --------
3121152 + 2097152 = 5218304
The 'rest' of the disk is:
'c' size - 'e' start
-------- ---------
8916012 - 5218304 = 3697708
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060531194459.GB58198>
