Re: Removal of GEOM_BSD, GEOM_MBR, GEOM_PC98 and GEOM_SUNLABEL

From: Tai-hwa Liang <avatar_at_mmlab.cse.yzu.edu.tw>
Date: Thu, 2 Apr 2009 09:44:35 +0800 (CST)
On Wed, 1 Apr 2009, Marcel Moolenaar wrote:
>
> On Apr 1, 2009, at 4:16 AM, Tai-hwa Liang wrote:
>
>> that's too bad.  Since my /home is sitting on the extended partition,
>> the OS won't boot unless the kernel is built with various GEOM_PART_
>> removed from i386/conf/DEFAULT plus GEOM_{BSD,MBR} added back to the
>> kernel configuration file(ie: GENERIC kernel cvsup'ed today doesn't
>> boot).
>
> That sounds like a bug, because logical partitions are
> supported. Can you enable GEOM_PART_BSD, GEOM_PART_EBR
> and GEOM_PART_MBR and tell me which GEOMs are available
> at the mount root prompt?

   Following are what gpart sees with a GEOM_PART_{BSD,EBR,MBR} and
GEOM_{BSD,MBR} enabled kernel:

# gpart show
=>       63  228338775  ad0  MBR  (109G)
          63   18688257    1  !12  (8.9G)
    18688320   16783200    2  freebsd  [active]  (8.0G)
    35471520  192855600    3  !15  (92G)
   228327120      11718       - free -  (5.7M)

=>       0  16783200  ad0s2c  BSD  (8.0G)
          0    786432       1  freebsd-ufs  (384M)
     786432   4194304       2  freebsd-swap  (2.0G)
    4980736    393216       4  freebsd-ufs  (192M)
    5373952  11409248       5  freebsd-ufs  (5.4G)

# gpart list
Geom name: ad0
fwheads: 16
fwsectors: 63
last: 228338837
first: 63
entries: 4
scheme: MBR
Providers:
1. Name: ad0s1
    Mediasize: 9568387584 (8.9G)
    Sectorsize: 512
    Mode: r0w0e0
    rawtype: 12
    length: 9568387584
    offset: 32256
    type: !12
    index: 1
    end: 18688319
    start: 63
2. Name: ad0s2
    Mediasize: 8592998400 (8.0G)
    Sectorsize: 512
    Mode: r3w3e3
    attrib: active
    rawtype: 165
    length: 8592998400
    offset: 9568419840
    type: freebsd
    index: 2
    end: 35471519
    start: 18688320
3. Name: ad0s3
    Mediasize: 98742067200 (92G)
    Sectorsize: 512
    Mode: r0w0e0
    rawtype: 15
    length: 98742067200
    offset: 18161418240
    type: !15
    index: 3
    end: 228327119
    start: 35471520
Consumers:
1. Name: ad0
    Mediasize: 116909491200 (109G)
    Sectorsize: 512
    Mode: r3w3e6

Geom name: ad0s2c
fwheads: 16
fwsectors: 63
last: 16783199
first: 0
entries: 8
scheme: BSD
Providers:
1. Name: ad0s2ca
    Mediasize: 402653184 (384M)
    Sectorsize: 512
    Mode: r0w0e0
    rawtype: 7
    length: 402653184
    offset: 0
    type: freebsd-ufs
    index: 1
    end: 786431
    start: 0
2. Name: ad0s2cb
    Mediasize: 2147483648 (2.0G)
    Sectorsize: 512
    Mode: r0w0e0
    rawtype: 1
    length: 2147483648
    offset: 402653184
    type: freebsd-swap
    index: 2
    end: 4980735
    start: 786432
3. Name: ad0s2cd
    Mediasize: 201326592 (192M)
    Sectorsize: 512
    Mode: r0w0e0
    rawtype: 7
    length: 201326592
    offset: 2550136832
    type: freebsd-ufs
    index: 4
    end: 5373951
    start: 4980736
4. Name: ad0s2ce
    Mediasize: 5841534976 (5.4G)
    Sectorsize: 512
    Mode: r0w0e0
    rawtype: 7
    length: 5841534976
    offset: 2751463424
    type: freebsd-ufs
    index: 5
    end: 16783199
    start: 5373952
Consumers:
1. Name: ad0s2c
    Mediasize: 8592998400 (8.0G)
    Sectorsize: 512
    Mode: r0w0e0

   Not sure if that's correct but I did not see something like "scheme: EBR"
in gpart list.

-- 
Thanks,

Tai-hwa Liang
Received on Wed Apr 01 2009 - 23:44:58 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:45 UTC