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)



Here's a log of the latest install attempt.

1. Boot into USB install, exit to shell , create 3 partitions for NetBSD (EFI labels:
     netbsd_efi, netbsd, netbsd_swap).

2. newfs -O2 dk9             # EFI NAME=netbsd

3. Exit back into installer, and enable logging and scripting in Utility menu.

4. Choose 'a', the std. NetBSD install. Select wd0 as the location. Sysinst
    complains:

    Sysinst could not automatically determine the BIOS geometry of the disk.
    The physical geometry is 969821 cylinders 16 sectors 63 heads.
    ...

    and asks for corrections. Abandon installing to wd0.

5. Try checking the partitions using the Extended partitioning menu item.

6. Select wd0, and edit partition. sysinst thinks it has an MBR partitioning
    scheme:

    Current MBR partition table of wd0 is shown below.
    Select the partition you wish to change:

    Total size of wd0 is 476940 MB available 0 MB

      start      Size (MB)   Flag  Kind
a:        0         476940            Unknown (238)

7. Switch partition scheme of wd0 to GPT and try again:

    We now have your GPT partitions for wd0 below. Last chance...etc.

      Start         End       Size    FS type
a:        0    476938  476939   unused

     Clearly, both are incorrect.

8.  Abandon partitioning and try a std. installto dk9 (netbsd). No complaints
     from sysinst--detects swap, etc. but goes back to main screen after
     creating some directories and /etc/fstab (see below).

9. Try to Install sets manually. Choose dk9 (netbsd) as disk.
     sysinst complains:

     Error: No root partition defined. Cannot continue.

10. And if you choose option 'a' (current system) in Install sets, it will happily
      extract the sets to / on the USB install drive.

---------------------------------------------------------------------------------------------------------------
    Log of session:
    /tmp/sysinst.log:
Log started at: Tue Feb  4 23:45:44 2020

executing: gpt -rq header wd0
executing: gpt -rq header sd0
Partman device: wd0
executing: gpt -rq header sd0
Partman device: wd0
executing: gpt -rq header sd0
Partman device: wd0
executing: gpt -rq header sd0
Partman device: wd0
Log started at: Tue Feb  4 23:53:16 2020

executing: gpt -rq header wd0
executing: gpt -rq header sd0
Partman device: wd0
executing: gpt -rq header sd0
Log ended at: Tue Feb  4 23:54:27 2020

Log started at: Tue Feb  4 23:54:43 2020

executing: gpt -rq header wd0
Log ended at: Tue Feb  4 23:57:34 2020

Log started at: Tue Feb  4 23:58:44 2020

executing: gpt -rq header dk9
executing: disklabel -r dk9
executing: /sbin/fsck_ffs -p -q /dev//rdk9
executing: /bin/mkdir -p /targetroot/
executing: /sbin/mount -o async /dev/dk9 /targetroot/
executing: /bin/mkdir -p /targetroot/etc
Making /targetroot/etc/fstab (dk9).
executing: /bin/mkdir -p /targetroot/kern
executing: /bin/mkdir -p /targetroot/proc
executing: /bin/mkdir -p /targetroot/dev/pts
executing: /bin/mkdir -p /targetroot/cdrom
executing: /bin/mkdir -p /targetroot/var/shm
executing: /sbin/umount /targetroot/
executing: gpt -rq header dk9
executing: disklabel -r dk9
executing: gpt -rq header dk9
executing: disklabel -r dk9
Log ended at: Wed Feb  5 00:02:22 2020
-----------------------------------------------------------------------------------------------------------

# 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            2048          Unused
  115363840        262144     9   GPT part - EFI System
  115625984    52428800   10   GPT part - NetBSD FFSv1/FFSv2
  168054784      8388608   11   GPT part - NetBSD swap
  176443392  199596032          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

Thanks,
RVP



Home | Main Index | Thread Index | Old Index