archinstall icon indicating copy to clipboard operation
archinstall copied to clipboard

Error at the end of installation, BIOS Legacy

Open elppans opened this issue 3 years ago • 3 comments

I did some tests using both GPT and MBR and they give the same result. At the end of the installation, it gives the error described in the attached log.

I created the 1st partition as NTFS to emulate a Dual Boot installation and the 2nd installation as the root of Archlinux. I did tests with Swap enabled and also disabled.

My friend tried to install it on his computer using the ISO from 01.04.2023, giving the same error.

cmd_history.txt cmd_output.txt install.log user_conf-cred-disk_json.tar.gz

elppans avatar Apr 02 '23 23:04 elppans

This is because the partitioning does not contain a /boot entry. I suspect:

{
    "ESP": false,
    "PARTUUID": "efd7a36d-2a06-4020-abfb-ba135316574c",
    "boot": false,
    "encrypted": false,
    "filesystem": {
        "format": "ntfs"
    },
    "mountpoint": null,
    "size": 20971520,
    "start": 2048,
    "type": "primary",
    "wipe": false
}

Should be:

{
    "ESP": false,
    "PARTUUID": "efd7a36d-2a06-4020-abfb-ba135316574c",
    "boot": false,
    "encrypted": false,
    "filesystem": {
        "format": "ntfs"
    },
    "mountpoint": "/boot",  # <--
    "size": 20971520,
    "start": 2048,
    "type": "primary",
    "wipe": false
}

tl;dr: You need a /boot that is compatible with your hardware setup. I'm guessing this wasn't the actual /boot as it's NTFS. But you get the idea :)

Torxed avatar Apr 04 '23 07:04 Torxed

Hello everything is fine? Thanks for the feedback.

I get the point, but on a UEFI boot this same configuration scheme works. With a small difference that the EFI partition must be created using the 2023.03.01 installer. The same install using the 2023.04.01 installer gives the same reported error.

On a legacy boot, the error occurs with any version.

You can take into account that, in a real machine with Windows installed, to make Dual Boot, you shouldn't mess with the Windows partition, but only with the partitions that will be used with Linux.

elppans avatar Apr 07 '23 02:04 elppans

I was able to resolve the installation issue.

  1. If the installer is version 2023.04.01 or if any later version gives archinstall error, run this command before starting the installation:
pacman -sy archinstall
  1. Regardless of whether it is a Legacy BIOS boot type, you must configure a boot partition in fat32. If you are configuring a Dual Boot, configure only the boot partition and the linux partitions. Ignore other partitions such as NTFS. In legacy BIOS, the boot partition must have the boot flag set to true, esp set to false, format to fat32, and mountpoint pointing to /boot. So the configuration will look like this (remembering that I am emulating the 1st partition as another system in "NTFS"):
{
    "/dev/vda": {
        "partitions": [
            {
                "ESP": false,
                "PARTUUID": "e929a24b-01",
                "boot": false,
                "encrypted": false,
                "filesystem": {
                    "format": "ntfs"
                },
                "mountpoint": null,
                "size": 20971520,
                "start": 2048,
                "type": "primary",
                "wipe": false
            },
            {
                "ESP": false,
                "PARTUUID": "e929a24b-02",
                "boot": true,
                "encrypted": false,
                "filesystem": {
                    "format": "fat32"
                },
                "mountpoint": "/boot",
                "size": 1024000,
                "start": 20973568,
                "type": "primary",
                "wipe": true
            },
            {
                "ESP": false,
                "PARTUUID": "e929a24b-03",
                "boot": false,
                "encrypted": false,
                "filesystem": {
                    "format": "ext4"
                },
                "mountpoint": "/",
                "size": 103831552,
                "start": 21997568,
                "type": "primary",
                "wipe": true
            }
        ]
    }

Screenshot-20230407-234347.png

elppans avatar Apr 08 '23 05:04 elppans