partition for GELI disk

Ulrich Spoerlein q at galgenberg.net
Tue Feb 21 10:14:27 PST 2006


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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20060221/2cc4736b/attachment.bin


More information about the freebsd-current mailing list