gpart oddity

Andriy Gapon avg at icyb.net.ua
Wed Oct 22 21:58:23 UTC 2008


on 23/10/2008 00:03 Marcel Moolenaar said the following:
> 
> On Oct 22, 2008, at 1:46 PM, Andriy Gapon wrote:
> 
>> I'll try to boot into a new kernel now (the one without GEOM_MBR and 
>> GEOM_BSD).
> 
> Could you send a quick "it works" message if this was the
> problem?

Unfortunately, no. But I can't really tell what's going wrong.

I do a verbose boot, but I don't see any GEOM message whatsoever after
GEOM: new disk ad4
And then kernel can not find root filesystem and at the prompt it 
reports that it sees only slice devices, ad4s1 and ad4s2, but not ad4s1a 
or any other partition.
So I can not complete booting and I don't know how to debug that.

I can provide some information from a kernel that has both kinds of options.
This is from verbose dmesg:
GEOM: new disk ad4
WARNING: Expected rawoffset 0, found 63
WARNING: Expected rawoffset 0, found 587191815
GEOM_JOURNAL: Journal 1799301102: ad4s1d contains data.
GEOM_JOURNAL: Journal 1508823937: ad4s1e contains data.
GEOM_LABEL: Label for provider ad4s1e is ufs/export.
GEOM_MIRROR: Device mirror/rootfs launched (2/2).
GEOM_JOURNAL: Journal 1799301102: ad4s2d contains journal.
GEOM_JOURNAL: Journal ad4s1d clean.
GEOM_JOURNAL: Journal 1508823937: ad4s2e contains journal.
GEOM_JOURNAL: Journal ad4s1e clean.
GEOM_LABEL: Label for provider ad4s2f is ufs/xtra.
GEOM_LABEL: Label for provider ad4s1d.journal is ufs/system.

$ sysctl -b kern.geom.conftxt
0 DISK cd0 3548774400 2048 hd 0 sc 0
1 LABEL iso9660/KORABL 3548774400 2048 i 0 o 0
0 DISK ad4 320072933376 512 hd 16 sc 63
1 MBR ad4s2 19428111360 512 i 1 o 300642209280 ty 165
2 BSD ad4s2f 14059385856 512 i 5 o 5368717312 ty 7
3 LABEL ufs/xtra 14059385856 512 i 0 o 0
2 BSD ad4s2e 2147483648 512 i 4 o 3221233664 ty 1
3 JOURNAL ad4s1e.journal 271651147264 512
2 BSD ad4s2d 2147483648 512 i 3 o 1073750016 ty 1
3 JOURNAL ad4s1d.journal 26843545088 512
2 BSD ad4s2c 19428111360 512 i 2 o 0 ty 0
2 BSD ad4s2a 1073741824 512 i 0 o 8192 ty 1
3 MIRROR mirror/rootfs 1073741312 512
1 MBR ad4s1 300642177024 512 i 0 o 32256 ty 165
2 BSD ad4s1e 271651147776 512 i 4 o 28991029248 ty 7
3 LABEL ufs/export 271651147776 512 i 0 o 0
3 JOURNAL ad4s1e.journal 271651147264 512
2 BSD ad4s1d 26843545600 512 i 3 o 2147483648 ty 7
3 JOURNAL ad4s1d.journal 26843545088 512
2 BSD ad4s1c 300642177024 512 i 2 o 0 ty 0
2 BSD ad4s1b 1073741824 512 i 1 o 0 ty 1
2 BSD ad4s1a 1073741824 512 i 0 o 1073741824 ty 7
3 MIRROR mirror/rootfs 1073741312 512

$ gpart show
=>       63  587191689  ad4s1c  MBR  (300.6GB)
          63  587191689          - free -  (300.6GB)

=>      63  37945467  ad4s2c  MBR  (19.4GB)
         63  37945467          - free -  (19.4GB)


-- 
Andriy Gapon


More information about the freebsd-geom mailing list