gpart on top of eli inside a slice is not working

Bjoern A. Zeeb bzeeb-lists at lists.zabbadoz.net
Wed Mar 25 23:30:07 PDT 2009


On Wed, 25 Mar 2009, Marcel Moolenaar wrote:

>
> On Mar 25, 2009, at 2:57 PM, Bjoern A. Zeeb wrote:
>
>> Here´s a script to reproduce this on head.
>
> First of all: exemplary problem reporting!
>
>> Any ideas?
>
> The probe method of the GPT scheme explicitly disallows nesting.
> This is inconsistent with the create method, which happily allows
> creating a GPT underneath a MBR.
>
> The bug is in the create method: GPT cannot be created inside a
> MBR slice (or any other partioning for that matter). I'll fix
> that shortly.

Well technically it is created inside some random garbage from eli and
not directly inside the MBR slice.

So the only possible solutions for those would be:
1) Somehow convert the entire disk to part and then exposing the 3
    freebsd-* partitions and have a dedicated eli inside each.
2) try (and stick with) bsdlabel on top of the eli inside the mbr
    slice?


So can you explain why there is the restriction that part cannot be
used inside a MBR slice or rather somewhere on top of such?


/bz

-- 
Bjoern A. Zeeb                      The greatest risk is not taking one.


More information about the freebsd-geom mailing list