archlinux / archinstall

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

Partprobe was not able to inform the kernel of the new disk state #2044

Closed bengiepty closed 1 year ago

bengiepty commented 1 year ago

Buenos días

Estoy tratando de instalar archlinux usando ISO's de Juliom agosto y septiembre de 2023 y al final la instalación termina abruptamente.

Este es el error:

root@archiso ~log/archinstall # cat install.log Mounting /dev/sda2: command Partition /dev/sda2 is currently mounted at: ['/mnt/arch_btrfs'] Unmounting mountpoint: /mnt/arch_btrfs Hardware model detected: ASUS System Product Name; UEFI mode: True Processor model detected: AMD Ryzen 5 5600G with Radeon Graphics Memory statistics: 30725652 available out of 32139060 total installed Could not detect virtual system: ['/usr/bin/systemd-detect-virt'] exited with abnormal exit code [1]: none

System is not running in a VM: ['/usr/bin/systemd-detect-virt'] exited with abnormal exit code [1]: none

Virtualization detected: None; is VM: False Graphics devices detected: dict_keys(['Advanced Micro Devices, Inc. [AMD/ATI] Cezanne [Radeon Vega Series / Radeon Vega Mobile Series] (rev c9)']) Disk states before installing: [ { "children": [], "fsavail": 0, "fsroots": [ "." ], "fstype": "squashfs", "fsuse_percentage": "100%", "fsver": "4.0", "log_sec": 512, "mountpoint": "/run/archiso/airootfs", "mountpoints": [ "/run/archiso/airootfs" ], "name": "loop0", "parttype": null, "partuuid": null, "path": "/dev/loop0", "pkname": null, "pttype": null, "ptuuid": null, "rota": false, "size": "682 MiB", "tran": null, "type": "loop", "uuid": null }, { "children": [ { "children": [], "fsavail": null, "fsroots": [], "fstype": "vfat", "fsuse_percentage": null, "fsver": "FAT32", "log_sec": 512, "mountpoint": null, "mountpoints": [], "name": "sda1", "parttype": "c12a7328-f81f-11d2-ba4b-00a0c93ec93b", "partuuid": "c178154c-394e-4cdc-8912-cc178a31c868", "path": "/dev/sda1", "pkname": "sda", "pttype": "gpt", "ptuuid": "19453ec7-05c2-417d-a95b-19034ba0955c", "rota": false, "size": "512 MiB", "tran": null, "type": "part", "uuid": "C059-DFA3" }, { "children": [], "fsavail": null, "fsroots": [], "fstype": "btrfs", "fsuse_percentage": null, "fsver": null, "log_sec": 512, "mountpoint": null, "mountpoints": [], "name": "sda2", "parttype": "0fc63daf-8483-4772-8e79-3d69d8477de4", "partuuid": "95be7a9b-fafc-417c-9eb7-9d5ad7c4836d", "path": "/dev/sda2", "pkname": "sda", "pttype": "gpt", "ptuuid": "19453ec7-05c2-417d-a95b-19034ba0955c", "rota": false, "size": "228423 MiB", "tran": null, "type": "part", "uuid": "0358c283-1351-40a7-8b15-a54e21d5c68c" } ], "fsavail": null, "fsroots": [], "fstype": null, "fsuse_percentage": null, "fsver": null, "log_sec": 512, "mountpoint": null, "mountpoints": [], "name": "sda", "parttype": null, "partuuid": null, "path": "/dev/sda", "pkname": null, "pttype": "gpt", "ptuuid": "19453ec7-05c2-417d-a95b-19034ba0955c", "rota": false, "size": "228936 MiB", "tran": "sata", "type": "disk", "uuid": null }, { "children": [ { "children": [], "fsavail": null, "fsroots": [], "fstype": "vfat", "fsuse_percentage": null, "fsver": "FAT32", "log_sec": 512, "mountpoint": null, "mountpoints": [], "name": "sdb1", "parttype": "0xc", "partuuid": "0003c267-01", "path": "/dev/sdb1", "pkname": "sdb", "pttype": "dos", "ptuuid": "0003c267", "rota": true, "size": "3824 MiB", "tran": null, "type": "part", "uuid": "2E79-F8C7" } ], "fsavail": null, "fsroots": [], "fstype": null, "fsuse_percentage": null, "fsver": null, "log_sec": 512, "mountpoint": null, "mountpoints": [], "name": "sdb", "parttype": null, "partuuid": null, "path": "/dev/sdb", "pkname": null, "pttype": "dos", "ptuuid": "0003c267", "rota": true, "size": "3825 MiB", "tran": "usb", "type": "disk", "uuid": null } ] Testing connectivity to the Arch Linux mirrors... Password strength: strong Password strength: strong Importing profile: /usr/lib/python3.11/site-packages/archinstall/default_profiles/init.py Importing profile: /usr/lib/python3.11/site-packages/archinstall/default_profiles/custom.py Importing profile: /usr/lib/python3.11/site-packages/archinstall/default_profiles/desktop.py Importing profile: /usr/lib/python3.11/site-packages/archinstall/default_profiles/minimal.py Importing profile: /usr/lib/python3.11/site-packages/archinstall/default_profiles/server.py Importing profile: /usr/lib/python3.11/site-packages/archinstall/default_profiles/tailored.py Importing profile: /usr/lib/python3.11/site-packages/archinstall/default_profiles/xorg.py Importing profile: /usr/lib/python3.11/site-packages/archinstall/default_profiles/applications/init.py Importing profile: /usr/lib/python3.11/site-packages/archinstall/default_profiles/applications/pipewire.py Importing profile: /usr/lib/python3.11/site-packages/archinstall/default_profiles/desktops/init.py Importing profile: /usr/lib/python3.11/site-packages/archinstall/default_profiles/desktops/awesome.py Importing profile: /usr/lib/python3.11/site-packages/archinstall/default_profiles/desktops/bspwm.py Importing profile: /usr/lib/python3.11/site-packages/archinstall/default_profiles/desktops/budgie.py Importing profile: /usr/lib/python3.11/site-packages/archinstall/default_profiles/desktops/cinnamon.py Importing profile: /usr/lib/python3.11/site-packages/archinstall/default_profiles/desktops/cutefish.py Importing profile: /usr/lib/python3.11/site-packages/archinstall/default_profiles/desktops/deepin.py Importing profile: /usr/lib/python3.11/site-packages/archinstall/default_profiles/desktops/enlightenment.py Importing profile: /usr/lib/python3.11/site-packages/archinstall/default_profiles/desktops/gnome.py Importing profile: /usr/lib/python3.11/site-packages/archinstall/default_profiles/desktops/hyperland.py Importing profile: /usr/lib/python3.11/site-packages/archinstall/default_profiles/desktops/i3.py Importing profile: /usr/lib/python3.11/site-packages/archinstall/default_profiles/desktops/kde.py Importing profile: /usr/lib/python3.11/site-packages/archinstall/default_profiles/desktops/lxqt.py Importing profile: /usr/lib/python3.11/site-packages/archinstall/default_profiles/desktops/mate.py Importing profile: /usr/lib/python3.11/site-packages/archinstall/default_profiles/desktops/qtile.py Importing profile: /usr/lib/python3.11/site-packages/archinstall/default_profiles/desktops/sway.py Cannot import <module 'sway' from '/usr/lib/python3.11/site-packages/archinstall/default_profiles/desktops/sway.py'>, it does not appear to be a Profile class Importing profile: /usr/lib/python3.11/site-packages/archinstall/default_profiles/desktops/xfce4.py Importing profile: /usr/lib/python3.11/site-packages/archinstall/default_profiles/servers/init.py Importing profile: /usr/lib/python3.11/site-packages/archinstall/default_profiles/servers/cockpit.py Importing profile: /usr/lib/python3.11/site-packages/archinstall/default_profiles/servers/docker.py Importing profile: /usr/lib/python3.11/site-packages/archinstall/default_profiles/servers/httpd.py Importing profile: /usr/lib/python3.11/site-packages/archinstall/default_profiles/servers/lighttpd.py Importing profile: /usr/lib/python3.11/site-packages/archinstall/default_profiles/servers/mariadb.py Importing profile: /usr/lib/python3.11/site-packages/archinstall/default_profiles/servers/nginx.py Importing profile: /usr/lib/python3.11/site-packages/archinstall/default_profiles/servers/postgresql.py Importing profile: /usr/lib/python3.11/site-packages/archinstall/default_profiles/servers/sshd.py Importing profile: /usr/lib/python3.11/site-packages/archinstall/default_profiles/servers/tomcat.py -- Chosen configuration -- { "separator": null, "additional-repositories": [ "multilib" ], "archinstall-language": "English", "audio_config": { "audio": "pipewire" }, "bootloader": "Systemd-boot", "config_version": "2.6.0", "debug": false, "disk_config": { "config_type": "default_layout", "device_modifications": [ { "device": "/dev/sda", "partitions": [ { "btrfs": [], "flags": [ "Boot" ], "fs_type": "fat32", "length": { "sector_size": null, "total_size": null, "unit": "MiB", "value": 512 }, "mount_options": [], "mountpoint": "/boot", "obj_id": "9728ebdc-a1bd-4941-a764-cb656799b615", "start": { "sector_size": null, "total_size": null, "unit": "MiB", "value": 1 }, "status": "create", "type": "primary" }, { "btrfs": [ { "compress": false, "mountpoint": "/", "name": "@", "nodatacow": false }, { "compress": false, "mountpoint": "/home", "name": "@home", "nodatacow": false }, { "compress": false, "mountpoint": "/var/log", "name": "@log", "nodatacow": false }, { "compress": false, "mountpoint": "/var/cache/pacman/pkg", "name": "@pkg", "nodatacow": false }, { "compress": false, "mountpoint": "/.snapshots", "name": "@.snapshots", "nodatacow": false } ], "flags": [], "fs_type": "btrfs", "length": { "sector_size": null, "total_size": { "sector_size": null, "total_size": null, "unit": "B", "value": 240057409536 }, "unit": "Percent", "value": 100 }, "mount_options": [ "compress=zstd" ], "mountpoint": null, "obj_id": "c46f15b5-a718-41c3-ab0f-91bf2cf80e96", "start": { "sector_size": null, "total_size": null, "unit": "MiB", "value": 513 }, "status": "create", "type": "primary" } ], "wipe": true } ] }, "disk_encryption": null, "hostname": "archlinux", "kernels": [ "linux" ], "locale_config": { "kb_layout": "us", "sys_enc": "UTF-8", "sys_lang": "en_US" }, "mirror_config": null, "network_config": { "type": "nm" }, "no_pkg_lookups": false, "ntp": true, "offline": false, "packages": [], "parallel downloads": 0, "profile_config": { "gfx_driver": "All open-source", "greeter": "sddm", "profile": { "custom_settings": { "Hyperland": {} }, "details": [ "Hyperland" ], "main": "Desktop" } }, "save_config": null, "script": "guided", "silent": false, "swap": true, "timezone": "America/Panama", "version": "2.6.0" } Unmounting all partitions: /dev/sda Unmounting: /dev/sda1 Unmounting: /dev/sda2 Wiping partitions and metadata: /dev/sda Creating partitions: /dev/sda Type: primary Filesystem: fat32 Geometry: 2048 start sector, 1048576 length Calling partprobe: partprobe /dev/sda1 Partprobe was not able to inform the kernel of the new disk state (ignoring error): ['/usr/bin/partprobe', '/dev/sda1'] exited with abnormal exit code [1]: : Partition(s) 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64 on /dev/sda1 have been written, but we have been unable to inform the kernel of the change, probably because it/they are in use. As a result, the old partition(s) will remain in use. You should reboot now before making further changes.

partuuid found: {'name': 'sda1', 'path': '/dev/sda1', 'pkname': 'sda', 'size': '512 MiB', 'log_sec': 512, 'pttype': 'gpt', 'ptuuid': '42a9edba-571c-4878-b9b6-2e2ebb53c6bd', 'rota': False, 'tran': None, 'partuuid': '0cf835b3-d578-42da-8b33-185547a34e67', 'parttype': 'c12a7328-f81f-11d2-ba4b-00a0c93ec93b', 'uuid': None, 'fstype': None, 'fsver': None, 'fsavail': None, 'fsuse_percentage': None, 'type': 'part', 'mountpoint': None, 'mountpoints': [], 'fsroots': [], 'children': []} Type: primary Filesystem: btrfs Geometry: 1050624 start sector, 240057409536 length Calling partprobe: partprobe /dev/sda2 partuuid found: {'name': 'sda2', 'path': '/dev/sda2', 'pkname': 'sda', 'size': '228423 MiB', 'log_sec': 512, 'pttype': 'gpt', 'ptuuid': '42a9edba-571c-4878-b9b6-2e2ebb53c6bd', 'rota': False, 'tran': None, 'partuuid': '83d8ab4c-5598-4f27-8571-04e792e08074', 'parttype': '0fc63daf-8483-4772-8e79-3d69d8477de4', 'uuid': '0358c283-1351-40a7-8b15-a54e21d5c68c', 'fstype': 'btrfs', 'fsver': None, 'fsavail': None, 'fsuse_percentage': None, 'type': 'part', 'mountpoint': None, 'mountpoints': [], 'fsroots': [], 'children': []} Calling partprobe: partprobe /dev/sda Unmounting all partitions: /dev/sda Unmounting: /dev/sda1 Unmounting: /dev/sda2 Formatting filesystem: /usr/bin/mkfs.fat -F32 /dev/sda1 Formatting filesystem: /usr/bin/mkfs.btrfs -f /dev/sda2 Creating subvolumes: /dev/sda2 Mounting /dev/sda2: command Creating subvolume: @ Creating subvolume: @home Creating subvolume: @log Creating subvolume: @pkg Creating subvolume: @.snapshots Partition /dev/sda2 is currently mounted at: ['/mnt/arch_btrfs'] Unmounting mountpoint: /mnt/arch_btrfs Starting installation Mounting partitions in order Mounting /dev/sda2: command Mounting /dev/sda2: command Mounting /dev/sda2: command Mounting /dev/sda2: command Mounting /dev/sda2: command Mounting /dev/sda1: command Waiting for time sync (systemd-timesyncd.service) to complete. Waiting for automatic mirror selection (reflector) to complete. Waiting for Arch Linux keyring sync (archlinux-keyring-wkd-sync) to complete. System is not running in a VM: ['/usr/bin/systemd-detect-virt'] exited with abnormal exit code [1]: none

The multilib flag is set. This system will be installed with the multilib repository enabled. The testing flag is not set. This system will be installed without testing repositories enabled. Installing packages: ['base', 'base-devel', 'linux-firmware', 'linux', 'btrfs-progs', 'amd-ucode'] Enabling periodic TRIM Enabling service fstrim.timer Setting up swap on zram Installing packages: ['zram-generator'] Enabling service systemd-zram-setup@zram0.service Adding bootloader Systemd-boot to /dev/sda1 Installing packages: ['efibootmgr'] ['/usr/bin/arch-chroot', '/mnt/archinstall', 'bootctl', '--no-variables', 'install'] exited with abnormal exit code [1]: root@archiso ~log/archinstall #

Saludos

ghost commented 1 year ago

i have the exact same problem

Partprobe was not able to inform the kernel of the new disk state (ignoring error): ['/usr/bin/partprobe', '/dev/sda1'] exited with abnormal exit code [1]: : Partition(s) 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64 on /dev/sda1 have been written, but we have been unable to inform the kernel of the change, probably because it/they are in use. As a result, the old partition(s) will remain in use. You should reboot now before making further changes.

bertbesser commented 1 year ago

Let me join. I got the same error.

The error occurrs when installing from a USB drive created a few months back (following the wiki), presumably with archinstall 2.5.6 on it. However, the error occurred not until yesterday: Before, all went fine with the same stick. Specifically, I'm playing around a lot with provisioning my machine, hence had it succeeding many times, whereas is now it fails for many tries.

(Side note: I install Encrypted btrfs, xfce, network manager, etc.)

Here's what I tried so far, all w/o success sadly:

Guessing the cause here: some dependencies got updated, that now don't work? In particular, they get updated live--which caused the old flash drive to work fine for months and then suddenly fail consistently.

I'm on the go, and don't have my notebook either. Let me know if I should provide an error log.

bertbesser commented 1 year ago

Ok so no need for more error logs from my side. The current issue here shows what going on at the top of my error log, #2047 shows what's happening at the end of my error log.

bertbesser commented 1 year ago

FYI See #2047 for a workaround.

svartkanin commented 1 year ago

This is the same as https://github.com/archlinux/archinstall/issues/2047 and the fix was merged