NetBSD-Bugs archive

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

Re: install/54929 (NetBSD 9.0-RC2 fails to install with GPT partition on ASUS X202E laptop)



On Wednesday, 12 February 2020, 08:15:05 CET, Martin Husemann <martin%duskware.de@localhost> wrote: 

> You can test either the netbsd-9 images from here:
>
>   https://nycdn.netbsd.org/pub/NetBSD-daily/netbsd-9/latest/images/

Aha! Then I already tried this today morning. Report follows (also attached
as a .txt file in case Yahoo screws up plain text formatting):

0. Using NetBSD-9.0_RC2 UEFI USB image (dated 11 Feb 2020 10:58) from
https://nycdn.netbsd.org/pub/NetBSD-daily/netbsd-9/latest/images/

1. $ gpt show wd0
      start       size  index  contents
          0          1         PMBR
          1          1         Pri GPT header
          2         32         Pri GPT table
         34       2014         Unused
       2048     614400      1  GPT part - EFI System
     616448    1228800      2  GPT part - de94bba4-06d1-4d40-a16a-bfd50179d6ac
    1845248     262144      3  GPT part - Windows reserved
    2107392       8192      4  GPT part - EFI System
    2115584  104857600      7  GPT part - FreeBSD UFS/UFS2
  106973184    8388608      8  GPT part - FreeBSD swap
  115361792  260677632         Unused
  376039424    8388608      5  GPT part - Linux swap
  384428032  592343040      6  GPT part - Linux data
  976771072       2063         Unused
  976773135         32         Sec GPT table
  976773167          1         Sec GPT header

2. In NetBSD-9.0_RC2 Install System
   a) Intall NetBSD
   choose b) Yes to continue.
   Available disks a) wd0 (466G)

Reports: The NetBSD (or free) part of your disk (wd0) is 466G.
This is wrong. The free space on disk wd0 is only ~128G.

3. Choose a) Use existing GPT partitions

Reports: We now have your GPT partitions for wd0
Start (MB)   End (MB)  Size (MB)   FS type     Flag  Filesystem
         1        300        300   MSDOS       B
       301        900        600   unused
       901       1028        128   FFSv2
      1029       1032          4   MSDOS       B
      1033      52232      51200   FFSv2
     52233      56328       4096   FFSv2
    183613     187708       4096   FFSv2
    187709     476938     289230   Linux Ext2

Add a partition
Type:  MSDOS
Start: 56330 MB
Size :   128 MB
End  : 56458 MB
Newfs:   Yes

Newly added partition shows up with the wrong Start/End/Size
and no (N) flag.
Start (MB)   End (MB)  Size (MB)   FS type     Flag  Filesystem
         1        300        300   MSDOS       B
       301        900        600   unused                         (Wrong: MS Recovery)
       901       1028        128   FFSv2                          (Wrong: MS Reserved)
      1029       1032          4   MSDOS       B
      1033      52232      51200   FFSv2
     52233      56328       4096   FFSv2                          (Wrong: FreeBSD swap)
*        1        300        300   MSDOS       B                  (Wrong: Start/End/Size)
    183613     187708       4096   FFSv2                          (Wrong: Linux swap)
    187709     476938     289230   Linux Ext2

Add another partition
Type:  FFSv2
Start: 56459 MB
Size : 20000 MB
End  : 76459 MB
Install: Yes
Newfs:   Yes

Add swap partition. The Start/Size/End show up OK in the editor, for all
of these newly added partitions but, in the GPT partition display all
added entries are copies of the 1st partition, like this:

Start (MB)   End (MB)  Size (MB)   FS type     Flag  Filesystem
         1        300        300   MSDOS       B
       301        900        600   unused                        (Wrong)
       901       1028        128   FFSv2                         (Wrong)
      1029       1032          4   MSDOS       B
      1033      52232      51200   FFSv2
     52233      56328       4096   FFSv2                         (Wrong)
*        1        300        300   MSDOS       B                 (Wrong)
*        1        300        300   MSDOS       B                 (Wrong)
*        1        300        300   MSDOS       B                 (Wrong)
    183613     187708       4096   FFSv2                         (Wrong)
    187709     476938     289230   Linux Ext2

Abandon Installation.

4. Go back to Main Install System menu and choose to
   b) Set sizes of NetBSD partition

   Size (MB)              Filesystem
a: 300                  = (Other: EFI)
b: 289230               = /
c: 0                      <swap>
d: 25%                    /tmp (tmpfs)
e: 0                      /usr
f: 0                      /var
g: 600                  = (Other: Basic data partition)
h: 128                  = (Other: Microsoft reserved partition)
i: 4                    = (Other: FreeBSD EFI)
j: 51200                = (Other: FreeBSD 12.1)
k: 4096                 = (Other: FreeBSD swap)
l: 4096                 = (Other: Ubuntu swap)

Abandon Installation because Linux ext2 is being treated a '/'.

5. In Utility Menu choose to
   d) Partition a disk

Extended partition manager info:
a: wd0 (466G)             UNCHANGED
b:    dk0 (MSDOS)         300MB
                                      <----   (dk1 missing: MS Recovery: NTFS)
c:    dk2 (FFSv2)         128MB               (Wrong: MS reserved partn.)
d:    dk3 (MSDOS)         4096K
e:    dk6 (FFSv2)         50G
f:    dk7 (FFSv2)         4096M               (Wrong: FreeBSD swap)
g:    dk4 (FFSv2)         4096M               (Wrong: Ubuntu swap)
h:    dk5 (Linux Ext2)    282G

Install abandoned. Too risky to continue.

Overall, a NetBSD GPT partitioning is very confusing. Ideally, I would like
a simple GPT partitioning to go like this:

1. Add EFI partition for NetBSD with specified size. Mark _this_ as the
   partition to copy UEFI boot executables into. Ie. leave the other
   EFI boot partitions alone.

2. Add one or more NetBSD FFSv2 partitions of specified sizes. For each,
   I should be able to choose their mount points.

3. Add one or more NetBSD swap partitions of specifies sizes. For each,
   I should be able to say use these swap partitions only.

This way lets me have more than one NetBSD installation on the disk.
Right now it's not clear which EFI partition will be formatted to copy
the NetBSD UEFI executables into. The same if I have multiple NetBSD
swap partitions. Which one will be used is not clear at install time.

Thanks,
RVP

0. Using NetBSD-9.0_RC2 UEFI USB image (dated 11 Feb 2020 10:58) from
https://nycdn.netbsd.org/pub/NetBSD-daily/netbsd-9/latest/images/

1. $ gpt show wd0
      start       size  index  contents
          0          1         PMBR
          1          1         Pri GPT header
          2         32         Pri GPT table
         34       2014         Unused
       2048     614400      1  GPT part - EFI System
     616448    1228800      2  GPT part - de94bba4-06d1-4d40-a16a-bfd50179d6ac
    1845248     262144      3  GPT part - Windows reserved
    2107392       8192      4  GPT part - EFI System
    2115584  104857600      7  GPT part - FreeBSD UFS/UFS2
  106973184    8388608      8  GPT part - FreeBSD swap
  115361792  260677632         Unused
  376039424    8388608      5  GPT part - Linux swap
  384428032  592343040      6  GPT part - Linux data
  976771072       2063         Unused
  976773135         32         Sec GPT table
  976773167          1         Sec GPT header

2. In NetBSD-9.0_RC2 Install System
   a) Intall NetBSD
   choose b) Yes to continue.
   Available disks a) wd0 (466G)

Reports: The NetBSD (or free) part of your disk (wd0) is 466G.
This is wrong. The free space on disk wd0 is only ~128G.

3. Choose a) Use existing GPT partitions

Reports: We now have your GPT partitions for wd0
Start (MB)   End (MB)  Size (MB)   FS type     Flag  Filesystem
         1        300        300   MSDOS       B
       301        900        600   unused
       901       1028        128   FFSv2
      1029       1032          4   MSDOS       B
      1033      52232      51200   FFSv2
     52233      56328       4096   FFSv2
    183613     187708       4096   FFSv2
    187709     476938     289230   Linux Ext2

Add a partition
Type:  MSDOS
Start: 56330 MB
Size :   128 MB
End  : 56458 MB
Newfs:   Yes

Newly added partition shows up with the wrong Start/End/Size
and no (N) flag.
Start (MB)   End (MB)  Size (MB)   FS type     Flag  Filesystem
         1        300        300   MSDOS       B
       301        900        600   unused                         (Wrong: MS Recovery)
       901       1028        128   FFSv2                          (Wrong: MS Reserved)
      1029       1032          4   MSDOS       B
      1033      52232      51200   FFSv2
     52233      56328       4096   FFSv2                          (Wrong: FreeBSD swap)
*        1        300        300   MSDOS       B                  (Wrong: Start/End/Size)
    183613     187708       4096   FFSv2                          (Wrong: Linux swap)
    187709     476938     289230   Linux Ext2

Add another partition
Type:  FFSv2
Start: 56459 MB
Size : 20000 MB
End  : 76459 MB
Install: Yes
Newfs:   Yes

Add swap partition. The Start/Size/End show up OK in the editor, for all
of these newly added partitions but, in the GPT partition display all
added entries are copies of the 1st partition, like this:

Start (MB)   End (MB)  Size (MB)   FS type     Flag  Filesystem
         1        300        300   MSDOS       B
       301        900        600   unused                        (Wrong)
       901       1028        128   FFSv2                         (Wrong)
      1029       1032          4   MSDOS       B
      1033      52232      51200   FFSv2
     52233      56328       4096   FFSv2                         (Wrong)
*        1        300        300   MSDOS       B                 (Wrong)
*        1        300        300   MSDOS       B                 (Wrong)
*        1        300        300   MSDOS       B                 (Wrong)
    183613     187708       4096   FFSv2                         (Wrong)
    187709     476938     289230   Linux Ext2

Abandon Installation.

4. Go back to Main Install System menu and choose to
   b) Set sizes of NetBSD partition

   Size (MB)              Filesystem
a: 300                  = (Other: EFI)
b: 289230               = /
c: 0                      <swap>
d: 25%                    /tmp (tmpfs)
e: 0                      /usr
f: 0                      /var
g: 600                  = (Other: Basic data partition)
h: 128                  = (Other: Microsoft reserved partition)
i: 4                    = (Other: FreeBSD EFI)
j: 51200                = (Other: FreeBSD 12.1)
k: 4096                 = (Other: FreeBSD swap)
l: 4096                 = (Other: Ubuntu swap)

Abandon Installation because Linux ext2 is being treated a '/'.

5. In Utility Menu choose to
   d) Partition a disk

Extended partition manager info:
a: wd0 (466G)             UNCHANGED
b:    dk0 (MSDOS)         300MB
                                      <----   (dk1 missing: MS Recovery: NTFS)
c:    dk2 (FFSv2)         128MB               (Wrong: MS reserved partn.)
d:    dk3 (MSDOS)         4096K
e:    dk6 (FFSv2)         50G
f:    dk7 (FFSv2)         4096M               (Wrong: FreeBSD swap)
g:    dk4 (FFSv2)         4096M               (Wrong: Ubuntu swap)
h:    dk5 (Linux Ext2)    282G

Install abandoned. Too risky to continue.

Overall, a NetBSD GPT partitioning is very confusing. Ideally, I would like
a simple GPT partitioning to go like this:

1. Add EFI partition for NetBSD with specified size. Mark _this_ as the
   partition to copy UEFI boot executables into. Ie. leave the other
   EFI boot partitions alone.

2. Add one or more NetBSD FFSv2 partitions of specified sizes. For each,
   I should be able to choose their mount points.

3. Add one or more NetBSD swap partitions of specifies sizes. For each,
   I should be able to say use these swap partitions only.

This way lets me have more than one NetBSD installation on the disk.
Right now it's not clear which EFI partition will be formatted to copy
the NetBSD UEFI executables into. The same if I have multiple NetBSD
swap partitions. Which one will be used is not clear at install time.

Thanks,
RVP


Home | Main Index | Thread Index | Old Index