archlinux / archinstall

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

"Unable to determine new partition uuid" on NVMe storage #1759

Closed hkrutzer closed 1 year ago

hkrutzer commented 1 year ago

As described earlier here https://github.com/archlinux/archinstall/pull/1604#issuecomment-1514704715:

Unmounting all partitions: /dev/nvme0n1
Wiping partitions and metadata: /dev/nvme0n1
Creating partitions: /dev/nvme0n1
Traceback (most recent call last):
  File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/root/archinstall/archinstall/__main__.py", line 19, in <module>
    archinstall.run_as_a_module()
  File "/root/archinstall/./archinstall/__init__.py", line 265, in run_as_a_module
    importlib.import_module(mod_name)
  File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/root/archinstall/./archinstall/scripts/guided.py", line 274, in <module>
    fs_handler.perform_filesystem_operations()
  File "/root/archinstall/archinstall/lib/disk/filesystem.py", line 55, in perform_filesystem_operations
    device_handler.partition(mod, partition_table=partition_table)
  File "/root/archinstall/archinstall/lib/disk/device_handler.py", line 469, in partition
    self._perform_partitioning(part_mod, modification.device, disk, requires_delete=requires_delete)
  File "/root/archinstall/archinstall/lib/disk/device_handler.py", line 347, in _perform_partitioning
    raise DiskError(f'Unable to determine new partition uuid: {part_mod.dev_path}')
archinstall.lib.exceptions.DiskError: Unable to determine new partition uuid: /dev/nvme0n1p2
Disk config

```json { "config_type": "default_layout", "device_modifications": [ { "device": "/dev/nvme0n1", "partitions": [ { "btrfs": [], "flags": [ "Boot" ], "fs_type": "fat32", "length": { "sector_size": null, "total_size": null, "unit": "MiB", "value": 512 }, "mount_options": [], "mountpoint": "/boot", "obj_id": "3b064b30-ec25-4814-948e-3edf6fd26ca4", "start": { "sector_size": null, "total_size": null, "unit": "MiB", "value": 1 }, "status": "create", "type": "primary" }, { "btrfs": [], "flags": [], "fs_type": "ext4", "length": { "sector_size": null, "total_size": { "sector_size": null, "total_size": null, "unit": "B", "value": 500107862016 }, "unit": "Percent", "value": 100 }, "mount_options": [], "mountpoint": "/", "obj_id": "56c07541-60d8-44c2-b77b-760f829f9340", "start": { "sector_size": null, "total_size": null, "unit": "MiB", "value": 513 }, "status": "create", "type": "primary" } ], "wipe": true } ] } ```

Logs ``` Hardware model detected: To Be Filled By O.E.M. To Be Filled By O.E.M.; UEFI mode: True Processor model detected: AMD Ryzen 5 5600G with Radeon Graphics Memory statistics: 25325464 available out of 28619512 total installed Could not detect virtual system: ['/usr/bin/systemd-detect-virt'] exited with abnormal exit code [1]: b'none\r\n' System is not running in a VM: ['/usr/bin/systemd-detect-virt'] exited with abnormal exit code [1]: b'none\r\n' Virtualization detected: None; is VM: None 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", "partuuid": null, "path": "/dev/loop0", "pkname": null, "pttype": null, "ptuuid": null, "rota": false, "size": "687 MiB", "tran": null, "type": "loop", "uuid": null }, { "children": [], "fsavail": null, "fsroots": [], "fstype": "vfat", "fsuse_percentage": null, "fsver": "FAT12", "log_sec": 512, "mountpoint": null, "mountpoints": [], "name": "sda", "partuuid": null, "path": "/dev/sda", "pkname": null, "pttype": null, "ptuuid": null, "rota": true, "size": "60000 MiB", "tran": "usb", "type": "disk", "uuid": "0ED1-8431" }, { "children": [], "fsavail": null, "fsroots": [], "fstype": "zfs_member", "fsuse_percentage": null, "fsver": "5000", "log_sec": 512, "mountpoint": null, "mountpoints": [], "name": "nvme0n1", "partuuid": null, "path": "/dev/nvme0n1", "pkname": null, "pttype": "gpt", "ptuuid": "5cdd6fc6-9be6-4fcb-85ae-3c82c25c43a2", "rota": false, "size": "476940 MiB", "tran": "nvme", "type": "disk", "uuid": "9964447680867735323" }, { "children": [ { "children": [], "fsavail": null, "fsroots": [], "fstype": "ntfs", "fsuse_percentage": null, "fsver": null, "log_sec": 512, "mountpoint": null, "mountpoints": [], "name": "nvme1n1p1", "partuuid": "7fd47f73-1fc5-11ec-83df-d8f883c9590e", "path": "/dev/nvme1n1p1", "pkname": "nvme1n1", "pttype": "gpt", "ptuuid": "7fd47f72-1fc5-11ec-83df-d8f883c9590e", "rota": false, "size": "510 MiB", "tran": "nvme", "type": "part", "uuid": "B0A8D087A8D04D8A" }, { "children": [], "fsavail": null, "fsroots": [], "fstype": "vfat", "fsuse_percentage": null, "fsver": "FAT32", "log_sec": 512, "mountpoint": null, "mountpoints": [], "name": "nvme1n1p2", "partuuid": "a231a28f-3d45-47a8-ae32-9390e3b5749e", "path": "/dev/nvme1n1p2", "pkname": "nvme1n1", "pttype": "gpt", "ptuuid": "7fd47f72-1fc5-11ec-83df-d8f883c9590e", "rota": false, "size": "100 MiB", "tran": "nvme", "type": "part", "uuid": "A61F-0464" }, { "children": [], "fsavail": null, "fsroots": [], "fstype": null, "fsuse_percentage": null, "fsver": null, "log_sec": 512, "mountpoint": null, "mountpoints": [], "name": "nvme1n1p3", "partuuid": "7fd47f75-1fc5-11ec-83df-d8f883c9590e", "path": "/dev/nvme1n1p3", "pkname": "nvme1n1", "pttype": "gpt", "ptuuid": "7fd47f72-1fc5-11ec-83df-d8f883c9590e", "rota": false, "size": "16 MiB", "tran": "nvme", "type": "part", "uuid": null }, { "children": [], "fsavail": null, "fsroots": [], "fstype": "ntfs", "fsuse_percentage": null, "fsver": null, "log_sec": 512, "mountpoint": null, "mountpoints": [], "name": "nvme1n1p4", "partuuid": "7fd47f76-1fc5-11ec-83df-d8f883c9590e", "path": "/dev/nvme1n1p4", "pkname": "nvme1n1", "pttype": "gpt", "ptuuid": "7fd47f72-1fc5-11ec-83df-d8f883c9590e", "rota": false, "size": "953242 MiB", "tran": "nvme", "type": "part", "uuid": "66622D4C622D21F3" } ], "fsavail": null, "fsroots": [], "fstype": null, "fsuse_percentage": null, "fsver": null, "log_sec": 512, "mountpoint": null, "mountpoints": [], "name": "nvme1n1", "partuuid": null, "path": "/dev/nvme1n1", "pkname": null, "pttype": "gpt", "ptuuid": "7fd47f72-1fc5-11ec-83df-d8f883c9590e", "rota": false, "size": "953869 MiB", "tran": "nvme", "type": "disk", "uuid": null } ] Testing connectivity to the Arch Linux mirrors ... Password strength: very weak Password strength: very weak Importing profile: /root/archinstall/archinstall/default_profiles/xorg.py Importing profile: /root/archinstall/archinstall/default_profiles/tailored.py Importing profile: /root/archinstall/archinstall/default_profiles/server.py Importing profile: /root/archinstall/archinstall/default_profiles/minimal.py Importing profile: /root/archinstall/archinstall/default_profiles/desktop.py Importing profile: /root/archinstall/archinstall/default_profiles/custom.py Unable to parse file /root/archinstall/archinstall/default_profiles/custom.py: attempted relative import with no known parent package Importing profile: /root/archinstall/archinstall/default_profiles/__init__.py Importing profile: /root/archinstall/archinstall/default_profiles/servers/tomcat.py Importing profile: /root/archinstall/archinstall/default_profiles/servers/sshd.py Importing profile: /root/archinstall/archinstall/default_profiles/servers/postgresql.py Importing profile: /root/archinstall/archinstall/default_profiles/servers/nginx.py Importing profile: /root/archinstall/archinstall/default_profiles/servers/mariadb.py Importing profile: /root/archinstall/archinstall/default_profiles/servers/lighttpd.py Importing profile: /root/archinstall/archinstall/default_profiles/servers/httpd.py Importing profile: /root/archinstall/archinstall/default_profiles/servers/docker.py Importing profile: /root/archinstall/archinstall/default_profiles/servers/cockpit.py Importing profile: /root/archinstall/archinstall/default_profiles/servers/__init__.py Importing profile: /root/archinstall/archinstall/default_profiles/desktops/xfce4.py Importing profile: /root/archinstall/archinstall/default_profiles/desktops/sway.py Importing profile: /root/archinstall/archinstall/default_profiles/desktops/qtile.py Importing profile: /root/archinstall/archinstall/default_profiles/desktops/mate.py Importing profile: /root/archinstall/archinstall/default_profiles/desktops/lxqt.py Importing profile: /root/archinstall/archinstall/default_profiles/desktops/kde.py Importing profile: /root/archinstall/archinstall/default_profiles/desktops/i3.py Importing profile: /root/archinstall/archinstall/default_profiles/desktops/gnome.py Importing profile: /root/archinstall/archinstall/default_profiles/desktops/enlightenment.py Importing profile: /root/archinstall/archinstall/default_profiles/desktops/deepin.py Importing profile: /root/archinstall/archinstall/default_profiles/desktops/cutefish.py Importing profile: /root/archinstall/archinstall/default_profiles/desktops/cinnamon.py Importing profile: /root/archinstall/archinstall/default_profiles/desktops/budgie.py Importing profile: /root/archinstall/archinstall/default_profiles/desktops/bspwm.py Importing profile: /root/archinstall/archinstall/default_profiles/desktops/awesome.py Importing profile: /root/archinstall/archinstall/default_profiles/desktops/__init__.py Importing profile: /root/archinstall/archinstall/default_profiles/applications/pipewire.py Importing profile: /root/archinstall/archinstall/default_profiles/applications/__init__.py -- Chosen configuration -- { "__separator__": null, "additional-repositories": [], "archinstall-language": "English", "audio": "pipewire", "bootloader": "Grub", "config_version": "2.5.4", "debug": false, "disk_config": { "config_type": "default_layout", "device_modifications": [ { "device": "/dev/nvme0n1", "partitions": [ { "btrfs": [], "flags": [ "Boot" ], "fs_type": "fat32", "length": { "sector_size": null, "total_size": null, "unit": "MiB", "value": 512 }, "mount_options": [], "mountpoint": "/boot", "obj_id": "3b064b30-ec25-4814-948e-3edf6fd26ca4", "start": { "sector_size": null, "total_size": null, "unit": "MiB", "value": 1 }, "status": "create", "type": "primary" }, { "btrfs": [], "flags": [], "fs_type": "ext4", "length": { "sector_size": null, "total_size": { "sector_size": null, "total_size": null, "unit": "B", "value": 500107862016 }, "unit": "Percent", "value": 100 }, "mount_options": [], "mountpoint": "/", "obj_id": "56c07541-60d8-44c2-b77b-760f829f9340", "start": { "sector_size": null, "total_size": null, "unit": "MiB", "value": 513 }, "status": "create", "type": "primary" } ], "wipe": true } ] }, "disk_encryption": null, "hostname": "x300-linux", "kernels": [ "linux" ], "keyboard-layout": "us", "mirror-region": {}, "nic": { "dhcp": true, "dns": null, "gateway": null, "iface": null, "ip": null, "type": "iso" }, "no_pkg_lookups": false, "ntp": true, "offline": false, "packages": [ "neovim", "git" ], "parallel downloads": 0, "profile_config": { "gfx_driver": "AMD / ATI (open-source)", "greeter": "lightdm", "profile": { "details": [ "i3-wm" ], "main": "Desktop" } }, "save_config": null, "script": "guided", "silent": false, "swap": true, "sys-encoding": "utf-8", "sys-language": "en_US", "timezone": "Europe/Amsterdam", "version": "2.5.4" } Unmounting all partitions: /dev/nvme0n1 Wiping partitions and metadata: /dev/nvme0n1 Creating partitions: /dev/nvme0n1 Type: primary Filesystem: fat32 Geometry: 2048 start sector, 1048576 length Type: primary Filesystem: ext4 Geometry: 1050624 start sector, 500107862016 length ```
lsblk -J -O ```json { "blockdevices": [ { "alignment": 0, "disc-aln": 0, "dax": false, "disc-gran": "4K", "disc-max": "4G", "disc-zero": false, "fsavail": "0", "fsroots": [ "/" ], "fssize": "688M", "fstype": "squashfs", "fsused": "688M", "fsuse%": "100%", "fsver": "4.0", "group": "disk", "hctl": null, "hotplug": false, "kname": "loop0", "label": null, "log-sec": 512, "maj:min": "7:0", "min-io": 512, "mode": "brw-rw----", "model": null, "name": "loop0", "opt-io": 0, "owner": "root", "partflags": null, "partlabel": null, "parttype": null, "parttypename": null, "partuuid": null, "path": "/dev/loop0", "phy-sec": 512, "pkname": null, "pttype": null, "ptuuid": null, "ra": 128, "rand": false, "rev": null, "rm": false, "ro": true, "rota": false, "rq-size": 128, "sched": "none", "serial": null, "size": "687.9M", "start": null, "state": null, "subsystems": "block", "mountpoint": "/run/archiso/airootfs", "mountpoints": [ "/run/archiso/airootfs" ], "tran": null, "type": "loop", "uuid": null, "vendor": null, "wsame": "0B", "wwn": null, "zoned": "none", "zone-sz": "0B", "zone-wgran": "0B", "zone-app": "0B", "zone-nr": 0, "zone-omax": 0, "zone-amax": 0 },{ "alignment": 0, "disc-aln": 0, "dax": false, "disc-gran": "0B", "disc-max": "0B", "disc-zero": false, "fsavail": null, "fsroots": [ null ], "fssize": null, "fstype": "vfat", "fsused": null, "fsuse%": null, "fsver": "FAT12", "group": "disk", "hctl": "0:0:0:0", "hotplug": true, "kname": "sda", "label": "IPXE", "log-sec": 512, "maj:min": "8:0", "min-io": 512, "mode": "brw-rw----", "model": "USB DISK", "name": "sda", "opt-io": 0, "owner": "root", "partflags": null, "partlabel": null, "parttype": null, "parttypename": null, "partuuid": null, "path": "/dev/sda", "phy-sec": 512, "pkname": null, "pttype": null, "ptuuid": null, "ra": 128, "rand": true, "rev": "1100", "rm": true, "ro": false, "rota": true, "rq-size": 2, "sched": "mq-deadline", "serial": "SMI_USB_DISK-0:0", "size": "58.6G", "start": null, "state": "running", "subsystems": "block:scsi:usb:pci", "mountpoint": null, "mountpoints": [ null ], "tran": "usb", "type": "disk", "uuid": "0ED1-8431", "vendor": "SMI ", "wsame": "0B", "wwn": null, "zoned": "none", "zone-sz": "0B", "zone-wgran": "0B", "zone-app": "0B", "zone-nr": 0, "zone-omax": 0, "zone-amax": 0 },{ "alignment": 0, "disc-aln": 0, "dax": false, "disc-gran": "512B", "disc-max": "2T", "disc-zero": false, "fsavail": null, "fsroots": [ null ], "fssize": null, "fstype": null, "fsused": null, "fsuse%": null, "fsver": null, "group": "disk", "hctl": null, "hotplug": false, "kname": "nvme0n1", "label": null, "log-sec": 512, "maj:min": "259:0", "min-io": 512, "mode": "brw-rw----", "model": "Samsung SSD 970 EVO Plus 500GB", "name": "nvme0n1", "opt-io": 0, "owner": "root", "partflags": null, "partlabel": null, "parttype": null, "parttypename": null, "partuuid": null, "path": "/dev/nvme0n1", "phy-sec": 512, "pkname": null, "pttype": "gpt", "ptuuid": "541461d0-77b1-4448-b998-bc71066b8d56", "ra": 128, "rand": false, "rev": null, "rm": false, "ro": false, "rota": false, "rq-size": 1023, "sched": "none", "serial": "S4EVNM0R714202A", "size": "465.8G", "start": null, "state": "live", "subsystems": "block:nvme:pci", "mountpoint": null, "mountpoints": [ null ], "tran": "nvme", "type": "disk", "uuid": null, "vendor": null, "wsame": "0B", "wwn": "eui.0025385711908e09", "zoned": "none", "zone-sz": "0B", "zone-wgran": "0B", "zone-app": "0B", "zone-nr": 0, "zone-omax": 0, "zone-amax": 0, "children": [ { "alignment": 0, "disc-aln": 0, "dax": false, "disc-gran": "512B", "disc-max": "2T", "disc-zero": false, "fsavail": null, "fsroots": [ null ], "fssize": null, "fstype": null, "fsused": null, "fsuse%": null, "fsver": null, "group": "disk", "hctl": null, "hotplug": false, "kname": "nvme0n1p2", "label": null, "log-sec": 512, "maj:min": "259:1", "min-io": 512, "mode": "brw-rw----", "model": null, "name": "nvme0n1p2", "opt-io": 0, "owner": "root", "partflags": null, "partlabel": null, "parttype": null, "parttypename": null, "partuuid": null, "path": "/dev/nvme0n1p2", "phy-sec": 512, "pkname": "nvme0n1", "pttype": "gpt", "ptuuid": "541461d0-77b1-4448-b998-bc71066b8d56", "ra": 128, "rand": false, "rev": null, "rm": false, "ro": false, "rota": false, "rq-size": 1023, "sched": "none", "serial": null, "size": "465.3G", "start": 1050624, "state": null, "subsystems": "block:nvme:pci", "mountpoint": null, "mountpoints": [ null ], "tran": "nvme", "type": "part", "uuid": null, "vendor": null, "wsame": "0B", "wwn": "eui.0025385711908e09", "zoned": "none", "zone-sz": "0B", "zone-wgran": "0B", "zone-app": "0B", "zone-nr": 0, "zone-omax": 0, "zone-amax": 0 },{ "alignment": 0, "disc-aln": 0, "dax": false, "disc-gran": "512B", "disc-max": "2T", "disc-zero": false, "fsavail": null, "fsroots": [ null ], "fssize": null, "fstype": null, "fsused": null, "fsuse%": null, "fsver": null, "group": "disk", "hctl": null, "hotplug": false, "kname": "nvme0n1p1", "label": null, "log-sec": 512, "maj:min": "259:8", "min-io": 512, "mode": "brw-rw----", "model": null, "name": "nvme0n1p1", "opt-io": 0, "owner": "root", "partflags": null, "partlabel": null, "parttype": "c12a7328-f81f-11d2-ba4b-00a0c93ec93b", "parttypename": "EFI System", "partuuid": "9cffaac2-d1c5-4aa4-a705-40361cec8e6e", "path": "/dev/nvme0n1p1", "phy-sec": 512, "pkname": "nvme0n1", "pttype": "gpt", "ptuuid": "541461d0-77b1-4448-b998-bc71066b8d56", "ra": 128, "rand": false, "rev": null, "rm": false, "ro": false, "rota": false, "rq-size": 1023, "sched": "none", "serial": null, "size": "512M", "start": 2048, "state": null, "subsystems": "block:nvme:pci", "mountpoint": null, "mountpoints": [ null ], "tran": "nvme", "type": "part", "uuid": null, "vendor": null, "wsame": "0B", "wwn": "eui.0025385711908e09", "zoned": "none", "zone-sz": "0B", "zone-wgran": "0B", "zone-app": "0B", "zone-nr": 0, "zone-omax": 0, "zone-amax": 0 } ] },{ "alignment": 0, "disc-aln": 0, "dax": false, "disc-gran": "512B", "disc-max": "2T", "disc-zero": false, "fsavail": null, "fsroots": [ null ], "fssize": null, "fstype": null, "fsused": null, "fsuse%": null, "fsver": null, "group": "disk", "hctl": null, "hotplug": false, "kname": "nvme1n1", "label": null, "log-sec": 512, "maj:min": "259:3", "min-io": 16384, "mode": "brw-rw----", "model": "Samsung SSD 980 1TB", "name": "nvme1n1", "opt-io": 131072, "owner": "root", "partflags": null, "partlabel": null, "parttype": null, "parttypename": null, "partuuid": null, "path": "/dev/nvme1n1", "phy-sec": 512, "pkname": null, "pttype": "gpt", "ptuuid": "7fd47f72-1fc5-11ec-83df-d8f883c9590e", "ra": 256, "rand": false, "rev": null, "rm": false, "ro": false, "rota": false, "rq-size": 1023, "sched": "none", "serial": "S649NF0R714943L", "size": "931.5G", "start": null, "state": "live", "subsystems": "block:nvme:pci", "mountpoint": null, "mountpoints": [ null ], "tran": "nvme", "type": "disk", "uuid": null, "vendor": null, "wsame": "0B", "wwn": "eui.002538d711b09fe6", "zoned": "none", "zone-sz": "0B", "zone-wgran": "0B", "zone-app": "0B", "zone-nr": 0, "zone-omax": 0, "zone-amax": 0, "children": [ { "alignment": 0, "disc-aln": 0, "dax": false, "disc-gran": "512B", "disc-max": "2T", "disc-zero": false, "fsavail": null, "fsroots": [ null ], "fssize": null, "fstype": "ntfs", "fsused": null, "fsuse%": null, "fsver": null, "group": "disk", "hctl": null, "hotplug": false, "kname": "nvme1n1p1", "label": null, "log-sec": 512, "maj:min": "259:4", "min-io": 16384, "mode": "brw-rw----", "model": null, "name": "nvme1n1p1", "opt-io": 131072, "owner": "root", "partflags": null, "partlabel": null, "parttype": "de94bba4-06d1-4d40-a16a-bfd50179d6ac", "parttypename": "Windows recovery environment", "partuuid": "7fd47f73-1fc5-11ec-83df-d8f883c9590e", "path": "/dev/nvme1n1p1", "phy-sec": 512, "pkname": "nvme1n1", "pttype": "gpt", "ptuuid": "7fd47f72-1fc5-11ec-83df-d8f883c9590e", "ra": 256, "rand": false, "rev": null, "rm": false, "ro": false, "rota": false, "rq-size": 1023, "sched": "none", "serial": null, "size": "510.4M", "start": 2048, "state": null, "subsystems": "block:nvme:pci", "mountpoint": null, "mountpoints": [ null ], "tran": "nvme", "type": "part", "uuid": "B0A8D087A8D04D8A", "vendor": null, "wsame": "0B", "wwn": "eui.002538d711b09fe6", "zoned": "none", "zone-sz": "0B", "zone-wgran": "0B", "zone-app": "0B", "zone-nr": 0, "zone-omax": 0, "zone-amax": 0 },{ "alignment": 4096, "disc-aln": 0, "dax": false, "disc-gran": "512B", "disc-max": "2T", "disc-zero": false, "fsavail": null, "fsroots": [ null ], "fssize": null, "fstype": "vfat", "fsused": null, "fsuse%": null, "fsver": "FAT32", "group": "disk", "hctl": null, "hotplug": false, "kname": "nvme1n1p2", "label": null, "log-sec": 512, "maj:min": "259:5", "min-io": 16384, "mode": "brw-rw----", "model": null, "name": "nvme1n1p2", "opt-io": 131072, "owner": "root", "partflags": "0x8000000000000000", "partlabel": "EFI system partition", "parttype": "c12a7328-f81f-11d2-ba4b-00a0c93ec93b", "parttypename": "EFI System", "partuuid": "a231a28f-3d45-47a8-ae32-9390e3b5749e", "path": "/dev/nvme1n1p2", "phy-sec": 512, "pkname": "nvme1n1", "pttype": "gpt", "ptuuid": "7fd47f72-1fc5-11ec-83df-d8f883c9590e", "ra": 256, "rand": false, "rev": null, "rm": false, "ro": false, "rota": false, "rq-size": 1023, "sched": "none", "serial": null, "size": "100M", "start": 1047288, "state": null, "subsystems": "block:nvme:pci", "mountpoint": null, "mountpoints": [ null ], "tran": "nvme", "type": "part", "uuid": "A61F-0464", "vendor": null, "wsame": "0B", "wwn": "eui.002538d711b09fe6", "zoned": "none", "zone-sz": "0B", "zone-wgran": "0B", "zone-app": "0B", "zone-nr": 0, "zone-omax": 0, "zone-amax": 0 },{ "alignment": 0, "disc-aln": 0, "dax": false, "disc-gran": "512B", "disc-max": "2T", "disc-zero": false, "fsavail": null, "fsroots": [ null ], "fssize": null, "fstype": null, "fsused": null, "fsuse%": null, "fsver": null, "group": "disk", "hctl": null, "hotplug": false, "kname": "nvme1n1p3", "label": null, "log-sec": 512, "maj:min": "259:6", "min-io": 16384, "mode": "brw-rw----", "model": null, "name": "nvme1n1p3", "opt-io": 131072, "owner": "root", "partflags": "0x8000000000000000", "partlabel": "Microsoft reserved partition", "parttype": "e3c9e316-0b5c-4db8-817d-f92df00215ae", "parttypename": "Microsoft reserved", "partuuid": "7fd47f75-1fc5-11ec-83df-d8f883c9590e", "path": "/dev/nvme1n1p3", "phy-sec": 512, "pkname": "nvme1n1", "pttype": "gpt", "ptuuid": "7fd47f72-1fc5-11ec-83df-d8f883c9590e", "ra": 256, "rand": false, "rev": null, "rm": false, "ro": false, "rota": false, "rq-size": 1023, "sched": "none", "serial": null, "size": "16M", "start": 1252096, "state": null, "subsystems": "block:nvme:pci", "mountpoint": null, "mountpoints": [ null ], "tran": "nvme", "type": "part", "uuid": null, "vendor": null, "wsame": "0B", "wwn": "eui.002538d711b09fe6", "zoned": "none", "zone-sz": "0B", "zone-wgran": "0B", "zone-app": "0B", "zone-nr": 0, "zone-omax": 0, "zone-amax": 0 },{ "alignment": 12288, "disc-aln": 0, "dax": false, "disc-gran": "512B", "disc-max": "2T", "disc-zero": false, "fsavail": null, "fsroots": [ null ], "fssize": null, "fstype": "ntfs", "fsused": null, "fsuse%": null, "fsver": null, "group": "disk", "hctl": null, "hotplug": false, "kname": "nvme1n1p4", "label": null, "log-sec": 512, "maj:min": "259:7", "min-io": 16384, "mode": "brw-rw----", "model": null, "name": "nvme1n1p4", "opt-io": 131072, "owner": "root", "partflags": null, "partlabel": "Basic data partition", "parttype": "ebd0a0a2-b9e5-4433-87c0-68b6b72699c7", "parttypename": "Microsoft basic data", "partuuid": "7fd47f76-1fc5-11ec-83df-d8f883c9590e", "path": "/dev/nvme1n1p4", "phy-sec": 512, "pkname": "nvme1n1", "pttype": "gpt", "ptuuid": "7fd47f72-1fc5-11ec-83df-d8f883c9590e", "ra": 256, "rand": false, "rev": null, "rm": false, "ro": false, "rota": false, "rq-size": 1023, "sched": "none", "serial": null, "size": "930.9G", "start": 1284872, "state": null, "subsystems": "block:nvme:pci", "mountpoint": null, "mountpoints": [ null ], "tran": "nvme", "type": "part", "uuid": "66622D4C622D21F3", "vendor": null, "wsame": "0B", "wwn": "eui.002538d711b09fe6", "zoned": "none", "zone-sz": "0B", "zone-wgran": "0B", "zone-app": "0B", "zone-nr": 0, "zone-omax": 0, "zone-amax": 0 } ] } ] } ```
svartkanin commented 1 year ago

We're waiting around 3 seconds for the creation of the partition(s) https://github.com/svartkanin/archinstall/blob/00b0ae7ba439a5a420095175b3bedd52c569db51/archinstall/lib/disk/device_handler.py#L339, maybe that's not enough...

@hkrutzer would you be able to try out changing this value to maybe 10 seconds and see if that makes a difference?

I actually do suspect that that is the case as the partitions seem to have been created and have a partuuid. We can probably put this into a loop and query it for a bit until we get the uuid back. But would you mind just confirming with the above timeout extension to see if that would solve it

codefiles commented 1 year ago

I actually do suspect that that is the case as the partitions seem to have been created and have a partuuid.

@svartkanin, the output from the lsblk -J -O command run by @hkrutzer after installation shows that the partuuid is null for the root partiton (/dev/nvme0n1p2).

              "parttype": null,
              "parttypename": null,
              "partuuid": null,
              "path": "/dev/nvme0n1p2",

The error message is correct.

archinstall.lib.exceptions.DiskError: Unable to determine new partition uuid: /dev/nvme0n1p2

https://github.com/archlinux/archinstall/blob/32982b880bd4e76b158442e444c001f8ebd8bb06/archinstall/lib/disk/device_handler.py#L344-L347

In contrast, the creation of the boot partition (/dev/nvme0n1p1) looks to have succeeded.

              "parttype": "c12a7328-f81f-11d2-ba4b-00a0c93ec93b",
              "parttypename": "EFI System",
              "partuuid": "9cffaac2-d1c5-4aa4-a705-40361cec8e6e",
              "path": "/dev/nvme0n1p1",
svartkanin commented 1 year ago

Ahh shoot, I had only looked at the boot one

svartkanin commented 1 year ago

Maybe a partprobe after the partition was added would help, I'll create a PR with some improvements and potentially more debugging info logging

Torxed commented 1 year ago

Maybe a partprobe after the partition was added would help, I'll create a PR with some improvements and potentially more debugging info logging

Keep in mind that patprobe flushes kernel cache of partuuid's, unless pyparted takes that into account it could make the value None again.

This is the reason behind the:

for attempt_nr in retries:
    partprobe()
    sleep(1*attempt_nr)
    get_partuuid()

so that we incrementally sleep longer and longer after each partprobe to dynamically stretch the sleep.

the downside being we waited longer than required.

This approach would be better:

partprobe()
for attempt_nr in retries:
    sleep(1*attempt_nr)
    if get_partuuid():
        break
Torxed commented 1 year ago

@hkrutzer, using the latest version from git, does the problem go away?

hkrutzer commented 1 year ago

Thanks everyone for taking the time to look into this! Unfortunately I had to finish the installation to start using the machine so I finished partitioning manually.. I do have another disk of the same type lying around, but it will take a couple days / weeks before I have time to try that one (I have to stick it in a different computer as the one I just installed is a mini and takes a long time to take apart).

If it does not solve the problem, which steps should I take to debug this further?

Torxed commented 1 year ago

I'm closing this as it should be fixed in the PR above. I'm tagging a new release candidate and release it to [testing]. If the bug still exists after that do ping me.

qlyoung commented 9 months ago

This problem still exists. I hit it today on 2.7.1. What details will help?

Looks like it was caused by this PR: https://github.com/archlinux/archinstall/pull/2212

I think that was the issue because I was able to work around the issue with this patch:

diff --git a/archinstall/lib/disk/device_handler.py b/archinstall/lib/disk/device_handler.py
index fcf52013..48689702 100644
--- a/archinstall/lib/disk/device_handler.py
+++ b/archinstall/lib/disk/device_handler.py
@@ -398,6 +398,7 @@ class DeviceHandler(object):

                        if lsblk_info.partn and lsblk_info.partuuid and lsblk_info.uuid:
                                break
+                       self.partprobe()

                if not lsblk_info:
                        debug(f'Unable to get partition information: {path}')

Btw, after that PR, it looks like partprobe is not called anywhere at all (dead code).

codefiles commented 9 months ago

The partprobe() function was left despite being dead code since it is a public function.

codefiles commented 9 months ago

Did you use --config to load a configuration file, if so was it from before 2.7.0?

qlyoung commented 9 months ago

Did you use --config to load a configuration file

No

if so was it from before 2.7.0?

~I mentioned this was 2.7.1~ Ah, I think you're asking if I loaded a pre-2.7.0 config file on 2.7.1. No, I have never used archinstall before yesterday, so only 2.7.1 was involved.

vschwaberow commented 7 months ago

I have the same trouble with a Samsung 990 SSD. Frustrating issue on latest installer

line 416 in _fetch_part_info raise DiskError: Unable to determine new uuid: /dev/nvme0n1p2

SudhindraKovalam commented 7 months ago

I have the same trouble with a Samsung 990 SSD. Frustrating issue on latest installer

line 416 in _fetch_part_info raise DiskError: Unable to determine new uuid: /dev/nvme0n1p2

I also notice this error on Samsung 980 SSD as well. Very frustrating indeed

vschwaberow commented 7 months ago

And just after trying to install it in a proxmox environment I even encounter it with virtual disks (non-ssd). It is so frustrating.

Screenshot_20240217_084608

codefiles commented 7 months ago

You are on the wrong thread, see https://github.com/archlinux/archinstall/issues/2305#issuecomment-1947286825.