Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Dec 2010 06:59:27 +0100
From:      David DEMELIER <demelier.david@gmail.com>
To:        Paul B Mahol <onemda@gmail.com>
Cc:        Patrick Lamaiziere <patfbsd@davenulle.org>, freebsd-questions@freebsd.org
Subject:   Re: 8 partitions maximum
Message-ID:  <AANLkTikS2c=NityuvvaFzE8aDPUhbY1VuB00GXNdiQ=t@mail.gmail.com>
In-Reply-To: <AANLkTikUu0ajKwOsN5t-SzTK1ZOCLDEbXfsT8w5BTnF5@mail.gmail.com>
References:  <4CF5624F.4020901@gmail.com> <20101130221550.2cf6d726@davenulle.org> <AANLkTikrWwS%2B08ERB5xHRLb3gXj6=Y_GdVTNGVvx__=T@mail.gmail.com> <AANLkTikdNwNZ=vMi6jp-9o2OcXQaeAT6f6RNVmYF8T=C@mail.gmail.com> <AANLkTikZg=X0Mo0RyN599T4-Se0TEUz8uvZ0cxzd3RBW@mail.gmail.com> <AANLkTikUu0ajKwOsN5t-SzTK1ZOCLDEbXfsT8w5BTnF5@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
2010/11/30 Paul B Mahol <onemda@gmail.com>:
> On 11/30/10, David DEMELIER <demelier.david@gmail.com> wrote:
>> 2010/11/30 Paul B Mahol <onemda@gmail.com>:
>>> On 11/30/10, David DEMELIER <demelier.david@gmail.com> wrote:
>>>> 2010/11/30 Patrick Lamaiziere <patfbsd@davenulle.org>:
>>>>> Le Tue, 30 Nov 2010 21:45:03 +0100,
>>>>> David Demelier <demelier.david@gmail.com> a ecrit :
>>>>>
>>>>>> Hello,
>>>>>
>>>>> Hello,
>>>>>
>>>>>> We all know that we can only have 8 ufs partitions in one freebsd
>>>>>> slice. Since OpenBSD and NetBSD can support at most 32 partitions
>>>>>> iirc.
>>>>>>
>>>>>> I wonder why FreeBSD still lacks more ufs partitions in one slice?
>>>>>>
>>>>>> Is there any plan to grow up max partitions or every work is
>>>>>> dedicated to ZFS?
>>>>>
>>>>> hmmm, isn't already done in 8.X ?
>>>>> from what's cooking for FreeBSD 8.0
>>>>> http://ivoras.sharanet.org/freebsd/freebsd8.html
>>>>> <<
>>>>> bsdlabel gets extended to 26 partitions
>>>>>
>>>>> Status: Committed to -CURRENT
>>>>> Will appear in 8.0: sure
>>>>> Author: Marcel Moolenaar
>>>>> Web: commit message
>>>>>
>>>>> bsdlabel is (finally!) extended to support more than 8 partitions. Th=
e
>>>>> new limit of 26 partitions comes from the number of lower-case letter=
s.
>>>>>
>>>>> To make use of this change, GEOM_PART needs to be used instead of
>>>>> GEOM_BSD (this is default in 8.0 but will not work with older kernels=
).
>>>>> >>
>>>>>
>>>>
>>>> I don't have GEOM_PART in my kernel, but if you said it's default it
>>>> should be pulled in.
>>>>
>>>>> Regards.
>>>>> _______________________________________________
>>>>> 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"
>>>>>
>>>>
>>>> But why :
>>>>
>>>> # /dev/md2s1:
>>>> 8 partitions:
>>>> # =C2=A0 =C2=A0 =C2=A0 =C2=A0size =C2=A0 offset =C2=A0 =C2=A0fstype =
=C2=A0 [fsize bsize bps/cpg]
>>>> =C2=A0 a: =C2=A010m =C2=A0 =C2=A0 =C2=A0 16 =C2=A0 =C2=A04.2BSD =C2=A0=
 =C2=A0 =C2=A0 =C2=A00 =C2=A0 =C2=A0 0
>>>> =C2=A0 b: =C2=A010m =C2=A0 =C2=A0 =C2=A0 * =C2=A0 =C2=A04.2BSD =C2=A0 =
=C2=A0 =C2=A0 =C2=A00 =C2=A0 =C2=A0 0
>>>> =C2=A0 d: =C2=A010m =C2=A0 =C2=A0 =C2=A0 * =C2=A0 =C2=A04.2BSD =C2=A0 =
=C2=A0 =C2=A0 =C2=A00 =C2=A0 =C2=A0 0
>>>> =C2=A0 e: =C2=A010m =C2=A0 =C2=A0 =C2=A0 * =C2=A0 =C2=A04.2BSD =C2=A0 =
=C2=A0 =C2=A0 =C2=A00 =C2=A0 =C2=A0 0
>>>> =C2=A0 f: =C2=A010m =C2=A0 =C2=A0 =C2=A0 * =C2=A0 =C2=A04.2BSD =C2=A0 =
=C2=A0 =C2=A0 =C2=A00 =C2=A0 =C2=A0 0
>>>> =C2=A0 g: =C2=A010m =C2=A0 =C2=A0 =C2=A0 * =C2=A0 =C2=A04.2BSD =C2=A0 =
=C2=A0 =C2=A0 =C2=A00 =C2=A0 =C2=A0 0
>>>> =C2=A0 h: =C2=A010m =C2=A0 =C2=A0 =C2=A0 * =C2=A0 =C2=A04.2BSD =C2=A0 =
=C2=A0 =C2=A0 =C2=A00 =C2=A0 =C2=A0 0
>>>> =C2=A0 i: =C2=A010m =C2=A0 =C2=A0 =C2=A0 * =C2=A0 =C2=A04.2BSD =C2=A0 =
=C2=A0 =C2=A0 =C2=A00 =C2=A0 =C2=A0 0
>>>> =C2=A0 j: =C2=A010m =C2=A0 =C2=A0 =C2=A0 * =C2=A0 =C2=A04.2BSD =C2=A0 =
=C2=A0 =C2=A0 =C2=A00 =C2=A0 =C2=A0 0
>>>> =C2=A0 k: =C2=A010m =C2=A0 =C2=A0 =C2=A0 * =C2=A0 =C2=A04.2BSD =C2=A0 =
=C2=A0 =C2=A0 =C2=A00 =C2=A0 =C2=A0 0
>>>>
>>>> =C2=A0 c: =C2=A02047973 =C2=A0 =C2=A0 =C2=A0 =C2=A00 =C2=A0 =C2=A0unus=
ed =C2=A0 =C2=A0 =C2=A0 =C2=A00 =C2=A0 =C2=A0 0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=
 # "raw" part,
>>>> don't
>>>> edit
>>>>
>>>> line 11: partition name out of range a-h: i
>>>> line 12: partition name out of range a-h: j
>>>> line 13: partition name out of range a-h: k
>>>> re-edit the label? [y]:
>>>>
>>>> I'm on 8.1-RELEASE.
>>>
>>> To make use of such feature you need to recreate table with gpart(8).
>>>
>>> bsdlabel is not going to work.
>>>
>>
>> markand@Melon ~ $ sudo dd if=3D/dev/zero of=3Dmyfile.img bs=3D1m count=
=3D100
>> 100+0 records in
>> 100+0 records out
>> 104857600 bytes transferred in 2.095537 secs (50038530 bytes/sec)
>> markand@Melon ~ $ sudo mdconfig -a -f myfile.img -u 2
>> markand@Melon ~ $ sudo gpart create -s MBR md2
>> md2 created
>> markand@Melon ~ $ sudo gpart show md2s1
>> gpart: No such geom: md2s1.
>> markand@Melon ~ $ sudo gpart add -t freebsd md2
>> md2s1 added
>> markand@Melon ~ $ sudo gpart add -t freebsd-ufs md2s1
>> gpart: No such geom: md2s1.
>> markand@Melon ~ $ sudo gpart create -s BSD md2s1
>
> gpart create -s BSD -n 26 md2s1

Thank you, I didn't see this little part of gpart(8).

--=20
Demelier David



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTikS2c=NityuvvaFzE8aDPUhbY1VuB00GXNdiQ=t>