Re: partition for GELI disk

From: Ulrich Spoerlein <q_at_galgenberg.net>
Date: Tue, 21 Feb 2006 19:14:19 +0100
Balgansuren Batsukh wrote:
> Hello,
> 
> 1.I get to work vi and trying to make label on disk.
> 
> I did following using bsdlabel -e /dev/ad0.eli
> 
> # /dev/ad0.eli:
> 
>          8 partitions:
>          #        size   offset    fstype   [fsize bsize bps/cpg]
> --->/           a:     1G        16    4.2BSD 2048 16384
>            b:     384M   *      swap
>            c:     156301487        0    unused  0  0
> --->/tmp           d:     8G       *    4.2BSD
> --->/usr           e:     15G     *    4.2BSD
> ---->/var           f:       *        *    4.2BSD
> 
> My laptop with 80GB hard disk, but fdisk inform 76319MB. In above disklabel, 
> I try to use entire hard disk, but I get "partition f: partition extends 
> past end of unit" message when try to write it. How can I inform bsdlabel to 
> determine correct end of geometry?

The problem is known (at least) to me. The last '*' will expand to the
complete remaining size of the disk, not taking the offset '16' for
partition 'a' into account. So either change the offset of 'a' to '0'
(why is there such an offset anyway?) or calculate it by hand.

I think a commit in CURRENT fixed that behaviour, but I can't remember
right now. Wich version of FreeBSD are you trying to install?

Ulrich Spoerlein
-- 
 PGP Key ID: 20FEE9DD				Encrypted mail welcome!
Fingerprint: AEC9 AF5E 01AC 4EE1 8F70  6CBD E76E 2227 20FE E9DD
Which is worse: ignorance or apathy?
Don't know. Don't care.

Received on Tue Feb 21 2006 - 17:14:27 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:52 UTC