NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: GRUB2 chainloading GPT NetBSD partition



mlelstv%serpens.de@localhost (Michael van Elst) wrote:

> beaker%sdf.org@localhost (beaker) writes:
>
> >dk2: NetBSD, 125829120 blocks at 269486080, type: msdos  # <<<
> ># install FFSv2 primary bootstrap to /dev/rdk2:
> >$ sudo installboot -fv /dev/rdk2 /usr/mdec/bootxx_ffsv2
>
>
> Booting from a msdos partititon with a ffsv2 bootloader?
>

It's not an msdos partion AFAIK but dkctl(8) lists it like that:

# dkctl wd0 listwedges
/dev/rwd0: 6 wedges:
dk5: e8b85d79-899f-4cd6-964e-af3db098e992, 2048 blocks at 2048, type:
dk0: Boot, 1046528 blocks at 4096, type: msdos
dk1: Debian, 268435456 blocks at 1050624, type: ext2fs
dk2: NetBSD, 125829120 blocks at 269486080, type: msdos
dk3: Commons, 83886080 blocks at 395315200, type: ext2fs
dk4: Swap, 9195520 blocks at 479201280, type: swap

For comparison, gpt(8) output:
$ gpt show -a wd0
      start       size  index  contents
          0          1         PMBR
          1          1         Pri GPT header
          2         32         Pri GPT table
         34       2014         Unused
       2048       2048      6  GPT part - BIOS Boot
                                 Type: bios
                                 TypeID: 21686148-6449-6e6f-744e-656564454649
                                 GUID: e8b85d79-899f-4cd6-964e-af3db098e992
                                 Size: 1024 K
                                 Label:
                                 Attributes: None
       4096    1046528      1  GPT part - EFI System
                                 Type: efi
                                 TypeID: c12a7328-f81f-11d2-ba4b-00a0c93ec93b
                                 GUID: 3b08b227-299e-44c1-aa09-b207e7ebe227
                                 Size: 511 M
                                 Label: Boot
                                 Attributes: None
    1050624  268435456      2  GPT part - Linux data
                                 Type: linux-data
                                 TypeID: 0fc63daf-8483-4772-8e79-3d69d8477de4
                                 GUID: 8c1ac634-af81-4219-905c-55264d2b6529
                                 Size: 128 G
                                 Label: Debian
                                 Attributes: None
  269486080  125829120      3  GPT part - EFI System
                                 Type: efi
                                 TypeID: c12a7328-f81f-11d2-ba4b-00a0c93ec93b
                                 GUID: 7ad533d2-4cdc-4de7-86b7-712fc0c449c0
                                 Size: 61440 M
                                 Label: NetBSD
                                 Attributes: None
  395315200   83886080      4  GPT part - Linux data
                                 Type: linux-data
                                 TypeID: 0fc63daf-8483-4772-8e79-3d69d8477de4
                                 GUID: 3c0dcc65-8c08-45a0-98e5-2cc14a5db634
                                 Size: 40960 M
                                 Label: Commons
                                 Attributes: None
  479201280    9195520      5  GPT part - NetBSD swap
                                 Type: swap
                                 TypeID: 49f48d32-b10e-11dc-b99b-0019d1879648
                                 GUID: dca38ff8-b4d6-4499-b8b1-e57c3283c908
                                 Size: 4490 M
                                 Label: Swap
                                 Attributes: None
  488396800        335         Unused
  488397135         32         Sec GPT table
  488397167          1         Sec GPT header

Also AFAIK the primary bootstrap code is still installed on gpt3 (rdk2).

-B


Home | Main Index | Thread Index | Old Index