archlinux / archinstall

Arch Linux installer - guided, templates etc.
GNU General Public License v3.0
6.08k stars 526 forks source link

Installing packages: ('efibootmgr',) [Errno 5] Input/output error #646

Closed ABotelho23 closed 1 year ago

ABotelho23 commented 3 years ago

Hi all, Can't get archinstall to complete an installation on my desktop. The same config file worked great on my laptop. I've tried with and without encryption, btrfs, ext4, xfs, grub-install, systemd-bootctl.

The biggest difference between my laptop and my desktop is that I have many more drives connected on the desktop.

Disk states before installing: {'blockdevices': [{'name': 'loop0', 'fstype': 'squashfs', 'fsver': '4.0', 'label': None, 'uuid': None, 'fsavail': '0', 'fsuse%': '100%', 'mountpoints': ['/run/archiso/airootfs'], 'type': 'loop', 'size': '662.7M'}, {'name': 'sda', 'fstype': None, 'fsver': None, 'label': None, 'uuid': None, 'fsavail': None, 'fsuse%': None, 'mountpoints': [None], 'type': 'disk', 'size': '931.5G', 'children': [{'name': 'sda1', 'fstype': None, 'fsver': None, 'label': None, 'uuid': None, 'fsavail': None, 'fsuse%': None, 'mountpoints': [None], 'type': 'part', 'size': '16M'}, {'name': 'sda2', 'fstype': 'ntfs', 'fsver': None, 'label': 'Games2', 'uuid': '62EE638AEE635577', 'fsavail': None, 'fsuse%': None, 'mountpoints': [None], 'type': 'part', 'size': '931.5G'}]}, {'name': 'sdb', 'fstype': None, 'fsver': None, 'label': None, 'uuid': None, 'fsavail': None, 'fsuse%': None, 'mountpoints': [None], 'type': 'disk', 'size': '931.5G', 'children': [{'name': 'sdb1', 'fstype': None, 'fsver': None, 'label': None, 'uuid': None, 'fsavail': None, 'fsuse%': None, 'mountpoints': [None], 'type': 'part', 'size': '16M'}, {'name': 'sdb2', 'fstype': 'ntfs', 'fsver': None, 'label': 'Games', 'uuid': 'C0BEC8B3BEC8A2F0', 'fsavail': None, 'fsuse%': None, 'mountpoints': [None], 'type': 'part', 'size': '931.5G'}]}, {'name': 'sdc', 'fstype': 'iso9660', 'fsver': 'Joliet Extension', 'label': 'ARCH_202109', 'uuid': '2021-09-01-11-25-35-00', 'fsavail': None, 'fsuse%': None, 'mountpoints': [None], 'type': 'disk', 'size': '14.4G', 'children': [{'name': 'sdc1', 'fstype': 'iso9660', 'fsver': 'Joliet Extension', 'label': 'ARCH_202109', 'uuid': '2021-09-01-11-25-35-00', 'fsavail': '0', 'fsuse%': '100%', 'mountpoints': ['/run/archiso/bootmnt'], 'type': 'part', 'size': '748M'}, {'name': 'sdc2', 'fstype': 'vfat', 'fsver': 'FAT16', 'label': 'ARCHISO_EFI', 'uuid': '3719-544C', 'fsavail': None, 'fsuse%': None, 'mountpoints': [None], 'type': 'part', 'size': '84M'}]}, {'name': 'nvme0n1', 'fstype': None, 'fsver': None, 'label': None, 'uuid': None, 'fsavail': None, 'fsuse%': None, 'mountpoints': [None], 'type': 'disk', 'size': '465.8G'}, {'name': 'nvme1n1', 'fstype': None, 'fsver': None, 'label': None, 'uuid': None, 'fsavail': None, 'fsuse%': None, 'mountpoints': [None], 'type': 'disk', 'size': '223.6G', 'children': [{'name': 'nvme1n1p1', 'fstype': 'vfat', 'fsver': 'FAT32', 'label': None, 'uuid': '96DF-517C', 'fsavail': None, 'fsuse%': None, 'mountpoints': [None], 'type': 'part', 'size': '535M'}, {'name': 'nvme1n1p2', 'fstype': 'ntfs', 'fsver': None, 'label': None, 'uuid': '046E48696E485598', 'fsavail': None, 'fsuse%': None, 'mountpoints': [None], 'type': 'part', 'size': '223G'}]}]}
-- Guided template chosen (with below config) --
{
    "!root-password": "******",
    "audio": "pipewire",
    "bootloader": "systemd-bootctl",
    "custom-commands": [
        "neofetch",
        "cat /etc/os-release",
        "echo 'NTP=pool.ntp.org' > /etc/systemd/timesyncd.conf",
        "ln -s /usr/bin/vim /usr/bin/vi"
    ],
    "filesystem": "ext4",
    "gfx_driver": "All open-source (default)",
    "harddrive": {
        "model": "Force MP600",
        "path": "/dev/nvme0n1",
        "size": "465.8G"
    },
    "hostname": "alexDeskLin",
    "kernels": [
        "linux-zen",
        "linux-lts"
    ],
    "keyboard-language": "us",
    "mirror-region": {
        "Worldwide": {
            "https://mirror.rackspace.com/archlinux/$repo/os/$arch": true
        }
    },
    "nic": {
        "NetworkManager": true
    },
    "ntp": true,
    "packages": [
        "linux-firmware",
        "gnome-shell",
        "gdm",
        "gnome-control-center",
        "gnome-tweaks",
        "gnome-boxes",
        "gnome-backgrounds",
        "gnome-calculator",
        "gnome-bluetooth",
        "gnome-screenshot",
        "gnome-weather",
        "gnome-firmware",
        "gnome-system-monitor",
        "gnome-shell-extensions",
        "gnome-shell-extension-appindicator",
        "cups",
        "cups-pdf",
        "cups-filters",
        "system-config-printer",
        "nautilus",
        "git",
        "wget",
        "zsh",
        "zsh-completions",
        "bash-completions",
        "libreoffice-fresh",
        "firefox",
        "firefox-ublock-origin",
        "chromium",
        "terminator",
        "thunderbird",
        "cura",
        "code",
        "deluge",
        "android-tools",
        "nomacs",
        "asunder",
        "freecad",
        "blender",
        "gimp",
        "inkscape",
        "audacity",
        "openshot",
        "okular",
        "signal-desktop",
        "sweethome3d",
        "nextcloud-client",
        "veracrypt",
        "wireshark-qt",
        "bitwarden",
        "vlc",
        "xournalpp",
        "file-roller",
        "p7zip",
        "cifs-utils",
        "nfs-utils",
        "exfatprogs",
        "ntfs-3g",
        "noto-fonts",
        "noto-fonts-extra",
        "noto-fonts-emoji",
        "hunspell-en_ca",
        "neofetch",
        "ffmpegthumbnailer",
        "openssh",
        "wireguard-tools",
        "nm-connection-editor",
        "easytag",
        "papirus-icon-theme",
        "sssd",
        "packagekit",
        "samba",
        "smb-client",
        "rust",
        "nano",
        "vim"
    ],
    "profile": null,
    "script": "guided",
    "services": [
        "gdm",
        "cups",
        "systemd-timesyncd"
    ],
    "silent": false,
    "superusers": {
        "adminx": {
            "!password": "******"
        }
    },
    "sys-encoding": "utf-8",
    "sys-language": "en_US",
    "timezone": "US/Eastern"
}
Wiping BlockDevice(/dev/nvme0n1) by using partition format 1
Using and formatting the entire BlockDevice(/dev/nvme0n1).
Adding partition to BlockDevice(/dev/nvme0n1)
Adding partition to BlockDevice(/dev/nvme0n1)
Set the root partition Partition(path=/dev/nvme0n1p2, size=465.3G, real_device=/dev/nvme0n1, fs=ext4) to use filesystem ext4.
Partition Partition(path=/dev/nvme0n1p1, size=512M, fs=vfat, rel_mountpoint=/boot) is a boot partition and has content inside.
Did not format Partition(path=/dev/nvme0n1p1, size=512M, fs=vfat, rel_mountpoint=/boot) because .safe_to_format() returned False or .allow_formatting was False.
Formatting /dev/nvme0n1p2 -> ext4
Mounting Partition(path=/dev/nvme0n1p2, size=465.3G, fs=ext4, rel_mountpoint=/) to /mnt
Mounting Partition(path=/dev/nvme0n1p1, size=512M, fs=vfat, rel_mountpoint=/boot) to /mnt/boot
Waiting for automatic mirror selection (reflector) to complete.
A new package mirror-list has been created: /etc/pacman.d/mirrorlist
Installing packages: ['base', 'base-devel', 'linux-firmware', 'linux-zen', 'linux-lts', 'amd-ucode']
Adding bootloader systemd-bootctl to Partition(path=/dev/nvme0n1p1, size=-1, fs=vfat, mounted=/mnt/boot)
Installing packages: ('efibootmgr',)
[Errno 5] Input/output error

Currently downloading an Ubuntu ISO to see if this is a hardware issue, but this literally had Ubuntu on it yesterday, so I would be very surprised if I have hardware issues.

ABotelho23 commented 2 years ago

It looks like I had too many EFI boot entries. After clearing them out using efibootmgr, I was able to proceed.

Maybe there would be a better way to catch this error so the issue is a bit more clear to the end-user?

Torxed commented 2 years ago

I agree, we should detect these things. It's a slippery slope of detecting miniature individual issues. But detecting partitions being full should be a general catch-all for a lot of the issues.

svartkanin commented 1 year ago

I would say that this is resolved for now with the major changes and rewrites since the issue was opened