Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Script crashes with manual partitioning (both separate /home and non separate) #2437

Open
Rust1667 opened this issue Mar 25, 2024 · 7 comments

Comments

@Rust1667
Copy link

Rust1667 commented Mar 25, 2024

On a VM Im trying to do manual partitioning on the device vda: fat32 for boot, btrfs for the main subvolumes, btrfs for another partition with only the @home subvolume

It gave me this error when trying to format the first partition:

Formatting filesystem: /usr/bin/mkfs.fat -F32 /dev/vda1
Unable to determine new partition number: /dev/vda1

Im using the latest version downloaded from the github repository like this: (I can't use the latest version from pacman because of the error mentioned here #2436)

pacman-key --innit
pacman -Sy git
git clone https://github.com/archlinux/archinstall/
cd archinstall
python -m archinstall

Full log:

Hardware model detected: QEMU Standard PC (Q35 + ICH9, 2009); UEFI mode: False
Processor model detected: Intel(R) Core(TM) i7-3520M CPU @ 2.90GHz
Memory statistics: 2741836 available out of 4014016 total installed
Virtualization detected: kvm; is VM: True
Graphics devices detected: dict_keys(['Device 1234:1111 (rev 02)'])
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",
        "partn": null,
        "parttype": null,
        "partuuid": null,
        "path": "/dev/loop0",
        "pkname": null,
        "pttype": null,
        "ptuuid": null,
        "rota": false,
        "size": "776 MiB",
        "tran": null,
        "type": "loop",
        "uuid": null
    },
    {
        "children": [],
        "fsavail": null,
        "fsroots": [],
        "fstype": null,
        "fsuse_percentage": null,
        "fsver": null,
        "log_sec": 512,
        "mountpoint": null,
        "mountpoints": [],
        "name": "vda",
        "partn": null,
        "parttype": null,
        "partuuid": null,
        "path": "/dev/vda",
        "pkname": null,
        "pttype": null,
        "ptuuid": null,
        "rota": true,
        "size": "17408 MiB",
        "tran": "virtio",
        "type": "disk",
        "uuid": null
    },
    {
        "children": [
            {
                "children": [],
                "fsavail": null,
                "fsroots": [],
                "fstype": "iso9660",
                "fsuse_percentage": null,
                "fsver": "Joliet Extension",
                "log_sec": 512,
                "mountpoint": null,
                "mountpoints": [],
                "name": "vdb1",
                "partn": 1,
                "parttype": "0x0",
                "partuuid": "8cc6f18c-01",
                "path": "/dev/vdb1",
                "pkname": "vdb",
                "pttype": "dos",
                "ptuuid": "8cc6f18c",
                "rota": true,
                "size": "926 MiB",
                "tran": "virtio",
                "type": "part",
                "uuid": "2024-03-01-15-06-37-00"
            },
            {
                "children": [],
                "fsavail": null,
                "fsroots": [],
                "fstype": "vfat",
                "fsuse_percentage": null,
                "fsver": "FAT16",
                "log_sec": 512,
                "mountpoint": null,
                "mountpoints": [],
                "name": "vdb2",
                "partn": 2,
                "parttype": "0xef",
                "partuuid": "8cc6f18c-02",
                "path": "/dev/vdb2",
                "pkname": "vdb",
                "pttype": "dos",
                "ptuuid": "8cc6f18c",
                "rota": true,
                "size": "15 MiB",
                "tran": "virtio",
                "type": "part",
                "uuid": "F432-B7EC"
            }
        ],
        "fsavail": null,
        "fsroots": [],
        "fstype": "iso9660",
        "fsuse_percentage": null,
        "fsver": "Joliet Extension",
        "log_sec": 512,
        "mountpoint": null,
        "mountpoints": [],
        "name": "vdb",
        "partn": null,
        "parttype": null,
        "partuuid": null,
        "path": "/dev/vdb",
        "pkname": null,
        "pttype": "dos",
        "ptuuid": "8cc6f18c",
        "rota": true,
        "size": "942 MiB",
        "tran": "virtio",
        "type": "disk",
        "uuid": "2024-03-01-15-06-37-00"
    }
]
Hardware model detected: QEMU Standard PC (Q35 + ICH9, 2009); UEFI mode: False
Processor model detected: Intel(R) Core(TM) i7-3520M CPU @ 2.90GHz
Memory statistics: 2741836 available out of 4014016 total installed
Virtualization detected: kvm; is VM: True
Graphics devices detected: dict_keys(['Device 1234:1111 (rev 02)'])
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",
        "partn": null,
        "parttype": null,
        "partuuid": null,
        "path": "/dev/loop0",
        "pkname": null,
        "pttype": null,
        "ptuuid": null,
        "rota": false,
        "size": "776 MiB",
        "tran": null,
        "type": "loop",
        "uuid": null
    },
    {
        "children": [],
        "fsavail": null,
        "fsroots": [],
        "fstype": null,
        "fsuse_percentage": null,
        "fsver": null,
        "log_sec": 512,
        "mountpoint": null,
        "mountpoints": [],
        "name": "vda",
        "partn": null,
        "parttype": null,
        "partuuid": null,
        "path": "/dev/vda",
        "pkname": null,
        "pttype": null,
        "ptuuid": null,
        "rota": true,
        "size": "17408 MiB",
        "tran": "virtio",
        "type": "disk",
        "uuid": null
    },
    {
        "children": [
            {
                "children": [],
                "fsavail": null,
                "fsroots": [],
                "fstype": "iso9660",
                "fsuse_percentage": null,
                "fsver": "Joliet Extension",
                "log_sec": 512,
                "mountpoint": null,
                "mountpoints": [],
                "name": "vdb1",
                "partn": 1,
                "parttype": "0x0",
                "partuuid": "8cc6f18c-01",
                "path": "/dev/vdb1",
                "pkname": "vdb",
                "pttype": "dos",
                "ptuuid": "8cc6f18c",
                "rota": true,
                "size": "926 MiB",
                "tran": "virtio",
                "type": "part",
                "uuid": "2024-03-01-15-06-37-00"
            },
            {
                "children": [],
                "fsavail": null,
                "fsroots": [],
                "fstype": "vfat",
                "fsuse_percentage": null,
                "fsver": "FAT16",
                "log_sec": 512,
                "mountpoint": null,
                "mountpoints": [],
                "name": "vdb2",
                "partn": 2,
                "parttype": "0xef",
                "partuuid": "8cc6f18c-02",
                "path": "/dev/vdb2",
                "pkname": "vdb",
                "pttype": "dos",
                "ptuuid": "8cc6f18c",
                "rota": true,
                "size": "15 MiB",
                "tran": "virtio",
                "type": "part",
                "uuid": "F432-B7EC"
            }
        ],
        "fsavail": null,
        "fsroots": [],
        "fstype": "iso9660",
        "fsuse_percentage": null,
        "fsver": "Joliet Extension",
        "log_sec": 512,
        "mountpoint": null,
        "mountpoints": [],
        "name": "vdb",
        "partn": null,
        "parttype": null,
        "partuuid": null,
        "path": "/dev/vdb",
        "pkname": null,
        "pttype": "dos",
        "ptuuid": "8cc6f18c",
        "rota": true,
        "size": "942 MiB",
        "tran": "virtio",
        "type": "disk",
        "uuid": "2024-03-01-15-06-37-00"
    }
]
Checking version...
New version available: �[?25larchinstall 2.7.1-1 -> 2.7.2-1
�[?25h
Password strength: very weak
Importing profile: /root/archinstall/archinstall/default_profiles/__init__.py
Importing profile: /root/archinstall/archinstall/default_profiles/custom.py
Importing profile: /root/archinstall/archinstall/default_profiles/desktop.py
Importing profile: /root/archinstall/archinstall/default_profiles/minimal.py
Importing profile: /root/archinstall/archinstall/default_profiles/server.py
Importing profile: /root/archinstall/archinstall/default_profiles/tailored.py
Importing profile: /root/archinstall/archinstall/default_profiles/xorg.py
Importing profile: /root/archinstall/archinstall/default_profiles/applications/__init__.py
Importing profile: /root/archinstall/archinstall/default_profiles/applications/pipewire.py
Importing profile: /root/archinstall/archinstall/default_profiles/desktops/__init__.py
Importing profile: /root/archinstall/archinstall/default_profiles/desktops/awesome.py
Importing profile: /root/archinstall/archinstall/default_profiles/desktops/bspwm.py
Importing profile: /root/archinstall/archinstall/default_profiles/desktops/budgie.py
Importing profile: /root/archinstall/archinstall/default_profiles/desktops/cinnamon.py
Importing profile: /root/archinstall/archinstall/default_profiles/desktops/cutefish.py
Importing profile: /root/archinstall/archinstall/default_profiles/desktops/deepin.py
Importing profile: /root/archinstall/archinstall/default_profiles/desktops/enlightenment.py
Importing profile: /root/archinstall/archinstall/default_profiles/desktops/gnome.py
Importing profile: /root/archinstall/archinstall/default_profiles/desktops/hyprland.py
Importing profile: /root/archinstall/archinstall/default_profiles/desktops/i3.py
Importing profile: /root/archinstall/archinstall/default_profiles/desktops/kde.py
Importing profile: /root/archinstall/archinstall/default_profiles/desktops/lxqt.py
Importing profile: /root/archinstall/archinstall/default_profiles/desktops/mate.py
Importing profile: /root/archinstall/archinstall/default_profiles/desktops/qtile.py
Importing profile: /root/archinstall/archinstall/default_profiles/desktops/sway.py
Importing profile: /root/archinstall/archinstall/default_profiles/desktops/xfce4.py
Importing profile: /root/archinstall/archinstall/default_profiles/servers/__init__.py
Importing profile: /root/archinstall/archinstall/default_profiles/servers/cockpit.py
Importing profile: /root/archinstall/archinstall/default_profiles/servers/docker.py
Importing profile: /root/archinstall/archinstall/default_profiles/servers/httpd.py
Importing profile: /root/archinstall/archinstall/default_profiles/servers/lighttpd.py
Importing profile: /root/archinstall/archinstall/default_profiles/servers/mariadb.py
Importing profile: /root/archinstall/archinstall/default_profiles/servers/nginx.py
Importing profile: /root/archinstall/archinstall/default_profiles/servers/postgresql.py
Importing profile: /root/archinstall/archinstall/default_profiles/servers/sshd.py
Importing profile: /root/archinstall/archinstall/default_profiles/servers/tomcat.py
 -- Chosen configuration --
{
    "__separator__": null,
    "additional-repositories": [],
    "archinstall-language": "English",
    "audio_config": null,
    "bootloader": "Grub",
    "config_version": "2.7.2",
    "debug": false,
    "disk_config": {
        "config_type": "manual_partitioning",
        "device_modifications": [
            {
                "device": "/dev/vda",
                "partitions": [
                    {
                        "btrfs": [],
                        "dev_path": null,
                        "flags": [
                            "Boot"
                        ],
                        "fs_type": "fat32",
                        "mount_options": [],
                        "mountpoint": "/boot",
                        "obj_id": "2dc19c09-5edd-4649-b605-c7c6a9b9c747",
                        "size": {
                            "sector_size": {
                                "unit": "B",
                                "value": 512
                            },
                            "unit": "B",
                            "value": 600000000
                        },
                        "start": {
                            "sector_size": {
                                "unit": "B",
                                "value": 512
                            },
                            "unit": "sectors",
                            "value": 0
                        },
                        "status": "create",
                        "type": "primary"
                    },
                    {
                        "btrfs": [
                            {
                                "mountpoint": "/",
                                "name": "@"
                            },
                            {
                                "mountpoint": "/var/log",
                                "name": "@log"
                            },
                            {
                                "mountpoint": "/var/cache/pacman/pkg",
                                "name": "@pkg"
                            },
                            {
                                "mountpoint": "/.snapshots",
                                "name": "@.snapshots"
                            }
                        ],
                        "dev_path": null,
                        "flags": [],
                        "fs_type": "btrfs",
                        "mount_options": [],
                        "mountpoint": null,
                        "obj_id": "61483a41-fb56-45f6-ae8f-567d7d019077",
                        "size": {
                            "sector_size": {
                                "unit": "B",
                                "value": 512
                            },
                            "unit": "B",
                            "value": 11399999488
                        },
                        "start": {
                            "sector_size": {
                                "unit": "B",
                                "value": 512
                            },
                            "unit": "sectors",
                            "value": 1171876
                        },
                        "status": "create",
                        "type": "primary"
                    },
                    {
                        "btrfs": [
                            {
                                "mountpoint": "/home",
                                "name": "@home"
                            }
                        ],
                        "dev_path": null,
                        "flags": [],
                        "fs_type": "btrfs",
                        "mount_options": [],
                        "mountpoint": null,
                        "obj_id": "3979b9cc-c0a1-4fec-9412-de88b54e5d74",
                        "size": {
                            "sector_size": {
                                "unit": "B",
                                "value": 512
                            },
                            "unit": "B",
                            "value": 2999999488
                        },
                        "start": {
                            "sector_size": {
                                "unit": "B",
                                "value": 512
                            },
                            "unit": "sectors",
                            "value": 23437501
                        },
                        "status": "create",
                        "type": "primary"
                    }
                ],
                "wipe": false
            }
        ]
    },
    "disk_encryption": null,
    "hostname": "archlinux",
    "kernels": [
        "linux"
    ],
    "locale_config": {
        "kb_layout": "es",
        "sys_enc": "UTF-8",
        "sys_lang": "en_US"
    },
    "mirror_config": {
        "custom_mirrors": [],
        "mirror_regions": {
            "Spain": [
                "https://nox.panibrez.com/archlinux/$repo/os/$arch",
                "https://mirror.librelabucm.org/archlinux/$repo/os/$arch",
                "http://mirror.librelabucm.org/archlinux/$repo/os/$arch",
                "http://ftp.rediris.es/mirror/archlinux/$repo/os/$arch"
            ]
        }
    },
    "network_config": {},
    "no_pkg_lookups": false,
    "ntp": true,
    "offline": false,
    "packages": [],
    "parallel downloads": 0,
    "profile_config": {
        "gfx_driver": null,
        "greeter": null,
        "profile": {
            "custom_settings": {},
            "details": [],
            "main": "Minimal"
        }
    },
    "save_config": null,
    "script": "guided",
    "silent": false,
    "skip_ntp": false,
    "skip_version_check": false,
    "swap": false,
    "timezone": "UTC",
    "uki": false,
    "version": "2.7.2"
}
Unmounting all existing partitions: /dev/vda
Use existing device: /dev/vda
Creating partitions: /dev/vda
	Type: primary
	Filesystem: fat32
	Geometry: 0 start sector, 1171875 length
	Type: primary
	Filesystem: btrfs
	Geometry: 1171876 start sector, 22265624 length
	Type: primary
	Filesystem: btrfs
	Geometry: 23437501 start sector, 5859374 length
Unmounting all existing partitions: /dev/vda
Formatting filesystem: /usr/bin/mkfs.fat -F32 /dev/vda1
Unable to determine new partition number: /dev/vda1
LsblkInfo(name='vda1', path=PosixPath('/dev/vda1'), pkname='vda', size=Size(value=600000000, unit=<Unit.B: 1>, sector_size=SectorSize(value=512, unit=<Unit.B: 1>)), log_sec=512, pttype='gpt', ptuuid='ff74d02c-2afe-465d-b373-73bc41307518', rota=True, tran='virtio', partn=None, partuuid=None, parttype=None, uuid='5591-8282', fstype='vfat', fsver='FAT32', fsavail=None, fsuse_percentage=None, type='part', mountpoint=None, mountpoints=[], fsroots=[], children=[])
Traceback (most recent call last):
  File "/root/archinstall/./archinstall/__init__.py", line 332, in run_as_a_module
    main()
  File "/root/archinstall/./archinstall/__init__.py", line 327, in main
    importlib.import_module(mod_name)
  File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/root/archinstall/./archinstall/scripts/guided.py", line 245, in <module>
    fs_handler.perform_filesystem_operations()
  File "/root/archinstall/archinstall/lib/disk/filesystem.py", line 55, in perform_filesystem_operations
    device_handler.format(mod, enc_conf=self._enc_config)
  File "/root/archinstall/archinstall/lib/disk/device_handler.py", line 321, in format
    lsblk_info = self._fetch_part_info(part_mod.safe_dev_path)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/archinstall/archinstall/lib/disk/device_handler.py", line 393, in _fetch_part_info
    raise DiskError(f'Unable to determine new partition number: {path}')
archinstall.lib.exceptions.DiskError: Unable to determine new partition number: /dev/vda1

Archinstall experienced the above error. If you think this is a bug, please report it to
https://github.com/archlinux/archinstall and include the log file "/var/log/archinstall/install.log".

Hint: To extract the log from a live ISO 
curl -F'file=@/var/log/archinstall/install.log' https://0x0.st
@Rust1667
Copy link
Author

Rust1667 commented Mar 25, 2024

This error might be for manual partitioning in general
Now I tried to do the btrfs manual partitions, without putting the /home in a separate partition, and the script still crashes

Same issue: Unable to determine new partition number: /dev/vda1

Maybe I'm doing something wrong but even then, I think the script should prompt me to correct it instead of crashing.

Hardware model detected: QEMU Standard PC (Q35 + ICH9, 2009); UEFI mode: False
Processor model detected: Intel(R) Core(TM) i7-3520M CPU @ 2.90GHz
Memory statistics: 2758496 available out of 4014020 total installed
Virtualization detected: kvm; is VM: True
Graphics devices detected: dict_keys(['Device 1234:1111 (rev 02)'])
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",
        "partn": null,
        "parttype": null,
        "partuuid": null,
        "path": "/dev/loop0",
        "pkname": null,
        "pttype": null,
        "ptuuid": null,
        "rota": false,
        "size": "776 MiB",
        "tran": null,
        "type": "loop",
        "uuid": null
    },
    {
        "children": [],
        "fsavail": null,
        "fsroots": [],
        "fstype": null,
        "fsuse_percentage": null,
        "fsver": null,
        "log_sec": 512,
        "mountpoint": null,
        "mountpoints": [],
        "name": "vda",
        "partn": null,
        "parttype": null,
        "partuuid": null,
        "path": "/dev/vda",
        "pkname": null,
        "pttype": null,
        "ptuuid": null,
        "rota": true,
        "size": "17408 MiB",
        "tran": "virtio",
        "type": "disk",
        "uuid": null
    },
    {
        "children": [
            {
                "children": [],
                "fsavail": null,
                "fsroots": [],
                "fstype": "iso9660",
                "fsuse_percentage": null,
                "fsver": "Joliet Extension",
                "log_sec": 512,
                "mountpoint": null,
                "mountpoints": [],
                "name": "vdb1",
                "partn": 1,
                "parttype": "0x0",
                "partuuid": "8cc6f18c-01",
                "path": "/dev/vdb1",
                "pkname": "vdb",
                "pttype": "dos",
                "ptuuid": "8cc6f18c",
                "rota": true,
                "size": "926 MiB",
                "tran": "virtio",
                "type": "part",
                "uuid": "2024-03-01-15-06-37-00"
            },
            {
                "children": [],
                "fsavail": null,
                "fsroots": [],
                "fstype": "vfat",
                "fsuse_percentage": null,
                "fsver": "FAT16",
                "log_sec": 512,
                "mountpoint": null,
                "mountpoints": [],
                "name": "vdb2",
                "partn": 2,
                "parttype": "0xef",
                "partuuid": "8cc6f18c-02",
                "path": "/dev/vdb2",
                "pkname": "vdb",
                "pttype": "dos",
                "ptuuid": "8cc6f18c",
                "rota": true,
                "size": "15 MiB",
                "tran": "virtio",
                "type": "part",
                "uuid": "F432-B7EC"
            }
        ],
        "fsavail": null,
        "fsroots": [],
        "fstype": "iso9660",
        "fsuse_percentage": null,
        "fsver": "Joliet Extension",
        "log_sec": 512,
        "mountpoint": null,
        "mountpoints": [],
        "name": "vdb",
        "partn": null,
        "parttype": null,
        "partuuid": null,
        "path": "/dev/vdb",
        "pkname": null,
        "pttype": "dos",
        "ptuuid": "8cc6f18c",
        "rota": true,
        "size": "942 MiB",
        "tran": "virtio",
        "type": "disk",
        "uuid": "2024-03-01-15-06-37-00"
    }
]
Hardware model detected: QEMU Standard PC (Q35 + ICH9, 2009); UEFI mode: False
Processor model detected: Intel(R) Core(TM) i7-3520M CPU @ 2.90GHz
Memory statistics: 2758496 available out of 4014020 total installed
Virtualization detected: kvm; is VM: True
Graphics devices detected: dict_keys(['Device 1234:1111 (rev 02)'])
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",
        "partn": null,
        "parttype": null,
        "partuuid": null,
        "path": "/dev/loop0",
        "pkname": null,
        "pttype": null,
        "ptuuid": null,
        "rota": false,
        "size": "776 MiB",
        "tran": null,
        "type": "loop",
        "uuid": null
    },
    {
        "children": [],
        "fsavail": null,
        "fsroots": [],
        "fstype": null,
        "fsuse_percentage": null,
        "fsver": null,
        "log_sec": 512,
        "mountpoint": null,
        "mountpoints": [],
        "name": "vda",
        "partn": null,
        "parttype": null,
        "partuuid": null,
        "path": "/dev/vda",
        "pkname": null,
        "pttype": null,
        "ptuuid": null,
        "rota": true,
        "size": "17408 MiB",
        "tran": "virtio",
        "type": "disk",
        "uuid": null
    },
    {
        "children": [
            {
                "children": [],
                "fsavail": null,
                "fsroots": [],
                "fstype": "iso9660",
                "fsuse_percentage": null,
                "fsver": "Joliet Extension",
                "log_sec": 512,
                "mountpoint": null,
                "mountpoints": [],
                "name": "vdb1",
                "partn": 1,
                "parttype": "0x0",
                "partuuid": "8cc6f18c-01",
                "path": "/dev/vdb1",
                "pkname": "vdb",
                "pttype": "dos",
                "ptuuid": "8cc6f18c",
                "rota": true,
                "size": "926 MiB",
                "tran": "virtio",
                "type": "part",
                "uuid": "2024-03-01-15-06-37-00"
            },
            {
                "children": [],
                "fsavail": null,
                "fsroots": [],
                "fstype": "vfat",
                "fsuse_percentage": null,
                "fsver": "FAT16",
                "log_sec": 512,
                "mountpoint": null,
                "mountpoints": [],
                "name": "vdb2",
                "partn": 2,
                "parttype": "0xef",
                "partuuid": "8cc6f18c-02",
                "path": "/dev/vdb2",
                "pkname": "vdb",
                "pttype": "dos",
                "ptuuid": "8cc6f18c",
                "rota": true,
                "size": "15 MiB",
                "tran": "virtio",
                "type": "part",
                "uuid": "F432-B7EC"
            }
        ],
        "fsavail": null,
        "fsroots": [],
        "fstype": "iso9660",
        "fsuse_percentage": null,
        "fsver": "Joliet Extension",
        "log_sec": 512,
        "mountpoint": null,
        "mountpoints": [],
        "name": "vdb",
        "partn": null,
        "parttype": null,
        "partuuid": null,
        "path": "/dev/vdb",
        "pkname": null,
        "pttype": "dos",
        "ptuuid": "8cc6f18c",
        "rota": true,
        "size": "942 MiB",
        "tran": "virtio",
        "type": "disk",
        "uuid": "2024-03-01-15-06-37-00"
    }
]
Checking version...
New version available: �[?25larchinstall 2.7.1-1 -> 2.7.2-1
�[?25h
Hardware model detected: QEMU Standard PC (Q35 + ICH9, 2009); UEFI mode: False
Processor model detected: Intel(R) Core(TM) i7-3520M CPU @ 2.90GHz
Memory statistics: 2749820 available out of 4014020 total installed
Virtualization detected: kvm; is VM: True
Graphics devices detected: dict_keys(['Device 1234:1111 (rev 02)'])
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",
        "partn": null,
        "parttype": null,
        "partuuid": null,
        "path": "/dev/loop0",
        "pkname": null,
        "pttype": null,
        "ptuuid": null,
        "rota": false,
        "size": "776 MiB",
        "tran": null,
        "type": "loop",
        "uuid": null
    },
    {
        "children": [],
        "fsavail": null,
        "fsroots": [],
        "fstype": null,
        "fsuse_percentage": null,
        "fsver": null,
        "log_sec": 512,
        "mountpoint": null,
        "mountpoints": [],
        "name": "vda",
        "partn": null,
        "parttype": null,
        "partuuid": null,
        "path": "/dev/vda",
        "pkname": null,
        "pttype": null,
        "ptuuid": null,
        "rota": true,
        "size": "17408 MiB",
        "tran": "virtio",
        "type": "disk",
        "uuid": null
    },
    {
        "children": [
            {
                "children": [],
                "fsavail": null,
                "fsroots": [],
                "fstype": "iso9660",
                "fsuse_percentage": null,
                "fsver": "Joliet Extension",
                "log_sec": 512,
                "mountpoint": null,
                "mountpoints": [],
                "name": "vdb1",
                "partn": 1,
                "parttype": "0x0",
                "partuuid": "8cc6f18c-01",
                "path": "/dev/vdb1",
                "pkname": "vdb",
                "pttype": "dos",
                "ptuuid": "8cc6f18c",
                "rota": true,
                "size": "926 MiB",
                "tran": "virtio",
                "type": "part",
                "uuid": "2024-03-01-15-06-37-00"
            },
            {
                "children": [],
                "fsavail": null,
                "fsroots": [],
                "fstype": "vfat",
                "fsuse_percentage": null,
                "fsver": "FAT16",
                "log_sec": 512,
                "mountpoint": null,
                "mountpoints": [],
                "name": "vdb2",
                "partn": 2,
                "parttype": "0xef",
                "partuuid": "8cc6f18c-02",
                "path": "/dev/vdb2",
                "pkname": "vdb",
                "pttype": "dos",
                "ptuuid": "8cc6f18c",
                "rota": true,
                "size": "15 MiB",
                "tran": "virtio",
                "type": "part",
                "uuid": "F432-B7EC"
            }
        ],
        "fsavail": null,
        "fsroots": [],
        "fstype": "iso9660",
        "fsuse_percentage": null,
        "fsver": "Joliet Extension",
        "log_sec": 512,
        "mountpoint": null,
        "mountpoints": [],
        "name": "vdb",
        "partn": null,
        "parttype": null,
        "partuuid": null,
        "path": "/dev/vdb",
        "pkname": null,
        "pttype": "dos",
        "ptuuid": "8cc6f18c",
        "rota": true,
        "size": "942 MiB",
        "tran": "virtio",
        "type": "disk",
        "uuid": "2024-03-01-15-06-37-00"
    }
]
Checking version...
New version available: �[?25larchinstall 2.7.1-1 -> 2.7.2-1
�[?25h
Password strength: very weak
Importing profile: /root/archinstall/archinstall/default_profiles/__init__.py
Importing profile: /root/archinstall/archinstall/default_profiles/custom.py
Importing profile: /root/archinstall/archinstall/default_profiles/desktop.py
Importing profile: /root/archinstall/archinstall/default_profiles/minimal.py
Importing profile: /root/archinstall/archinstall/default_profiles/server.py
Importing profile: /root/archinstall/archinstall/default_profiles/tailored.py
Importing profile: /root/archinstall/archinstall/default_profiles/xorg.py
Importing profile: /root/archinstall/archinstall/default_profiles/applications/__init__.py
Importing profile: /root/archinstall/archinstall/default_profiles/applications/pipewire.py
Importing profile: /root/archinstall/archinstall/default_profiles/desktops/__init__.py
Importing profile: /root/archinstall/archinstall/default_profiles/desktops/awesome.py
Importing profile: /root/archinstall/archinstall/default_profiles/desktops/bspwm.py
Importing profile: /root/archinstall/archinstall/default_profiles/desktops/budgie.py
Importing profile: /root/archinstall/archinstall/default_profiles/desktops/cinnamon.py
Importing profile: /root/archinstall/archinstall/default_profiles/desktops/cutefish.py
Importing profile: /root/archinstall/archinstall/default_profiles/desktops/deepin.py
Importing profile: /root/archinstall/archinstall/default_profiles/desktops/enlightenment.py
Importing profile: /root/archinstall/archinstall/default_profiles/desktops/gnome.py
Importing profile: /root/archinstall/archinstall/default_profiles/desktops/hyprland.py
Importing profile: /root/archinstall/archinstall/default_profiles/desktops/i3.py
Importing profile: /root/archinstall/archinstall/default_profiles/desktops/kde.py
Importing profile: /root/archinstall/archinstall/default_profiles/desktops/lxqt.py
Importing profile: /root/archinstall/archinstall/default_profiles/desktops/mate.py
Importing profile: /root/archinstall/archinstall/default_profiles/desktops/qtile.py
Importing profile: /root/archinstall/archinstall/default_profiles/desktops/sway.py
Importing profile: /root/archinstall/archinstall/default_profiles/desktops/xfce4.py
Importing profile: /root/archinstall/archinstall/default_profiles/servers/__init__.py
Importing profile: /root/archinstall/archinstall/default_profiles/servers/cockpit.py
Importing profile: /root/archinstall/archinstall/default_profiles/servers/docker.py
Importing profile: /root/archinstall/archinstall/default_profiles/servers/httpd.py
Importing profile: /root/archinstall/archinstall/default_profiles/servers/lighttpd.py
Importing profile: /root/archinstall/archinstall/default_profiles/servers/mariadb.py
Importing profile: /root/archinstall/archinstall/default_profiles/servers/nginx.py
Importing profile: /root/archinstall/archinstall/default_profiles/servers/postgresql.py
Importing profile: /root/archinstall/archinstall/default_profiles/servers/sshd.py
Importing profile: /root/archinstall/archinstall/default_profiles/servers/tomcat.py
 -- Chosen configuration --
{
    "__separator__": null,
    "additional-repositories": [],
    "archinstall-language": "English",
    "audio_config": null,
    "bootloader": "Grub",
    "config_version": "2.7.2",
    "debug": false,
    "disk_config": {
        "config_type": "manual_partitioning",
        "device_modifications": [
            {
                "device": "/dev/vda",
                "partitions": [
                    {
                        "btrfs": [],
                        "dev_path": null,
                        "flags": [
                            "Boot"
                        ],
                        "fs_type": "fat32",
                        "mount_options": [],
                        "mountpoint": "/boot",
                        "obj_id": "854ad4e0-15dd-4780-ae7a-0414f510ceee",
                        "size": {
                            "sector_size": {
                                "unit": "B",
                                "value": 512
                            },
                            "unit": "B",
                            "value": 600000000
                        },
                        "start": {
                            "sector_size": {
                                "unit": "B",
                                "value": 512
                            },
                            "unit": "sectors",
                            "value": 0
                        },
                        "status": "create",
                        "type": "primary"
                    },
                    {
                        "btrfs": [
                            {
                                "mountpoint": "/",
                                "name": "@"
                            },
                            {
                                "mountpoint": "/home",
                                "name": "@home"
                            },
                            {
                                "mountpoint": "/var/log",
                                "name": "@log"
                            },
                            {
                                "mountpoint": "/var/cache/pacman/pkg",
                                "name": "@pkg"
                            },
                            {
                                "mountpoint": "/.snapshots",
                                "name": "@.snapshots"
                            }
                        ],
                        "dev_path": null,
                        "flags": [],
                        "fs_type": "btrfs",
                        "mount_options": [],
                        "mountpoint": null,
                        "obj_id": "655b7980-410a-4291-a547-309b3e12c38b",
                        "size": {
                            "sector_size": {
                                "unit": "B",
                                "value": 512
                            },
                            "unit": "B",
                            "value": 12399999488
                        },
                        "start": {
                            "sector_size": {
                                "unit": "B",
                                "value": 512
                            },
                            "unit": "sectors",
                            "value": 1171876
                        },
                        "status": "create",
                        "type": "primary"
                    }
                ],
                "wipe": false
            }
        ]
    },
    "disk_encryption": null,
    "hostname": "archlinux",
    "kernels": [
        "linux"
    ],
    "locale_config": {
        "kb_layout": "us",
        "sys_enc": "UTF-8",
        "sys_lang": "en_US"
    },
    "mirror_config": {
        "custom_mirrors": [],
        "mirror_regions": {
            "Spain": [
                "https://nox.panibrez.com/archlinux/$repo/os/$arch",
                "https://mirror.librelabucm.org/archlinux/$repo/os/$arch",
                "http://mirror.librelabucm.org/archlinux/$repo/os/$arch",
                "http://ftp.rediris.es/mirror/archlinux/$repo/os/$arch"
            ]
        }
    },
    "network_config": {},
    "no_pkg_lookups": false,
    "ntp": true,
    "offline": false,
    "packages": [],
    "parallel downloads": 0,
    "profile_config": {
        "gfx_driver": null,
        "greeter": null,
        "profile": {
            "custom_settings": {},
            "details": [],
            "main": "Minimal"
        }
    },
    "save_config": null,
    "script": "guided",
    "silent": false,
    "skip_ntp": false,
    "skip_version_check": false,
    "swap": true,
    "timezone": "UTC",
    "uki": false,
    "version": "2.7.2"
}
Unmounting all existing partitions: /dev/vda
Use existing device: /dev/vda
Creating partitions: /dev/vda
	Type: primary
	Filesystem: fat32
	Geometry: 0 start sector, 1171875 length
	Type: primary
	Filesystem: btrfs
	Geometry: 1171876 start sector, 24218749 length
Unmounting all existing partitions: /dev/vda
Formatting filesystem: /usr/bin/mkfs.fat -F32 /dev/vda1
Unable to determine new partition number: /dev/vda1
LsblkInfo(name='vda1', path=PosixPath('/dev/vda1'), pkname='vda', size=Size(value=600000000, unit=<Unit.B: 1>, sector_size=SectorSize(value=512, unit=<Unit.B: 1>)), log_sec=512, pttype='gpt', ptuuid='5a5e9409-ea1b-4ece-967d-bf89cf324b7d', rota=True, tran='virtio', partn=None, partuuid=None, parttype=None, uuid='5C6B-F51B', fstype='vfat', fsver='FAT32', fsavail=None, fsuse_percentage=None, type='part', mountpoint=None, mountpoints=[], fsroots=[], children=[])
Traceback (most recent call last):
  File "/root/archinstall/./archinstall/__init__.py", line 332, in run_as_a_module
    main()
  File "/root/archinstall/./archinstall/__init__.py", line 327, in main
    importlib.import_module(mod_name)
  File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/root/archinstall/./archinstall/scripts/guided.py", line 245, in <module>
    fs_handler.perform_filesystem_operations()
  File "/root/archinstall/./archinstall/lib/disk/filesystem.py", line 55, in perform_filesystem_operations
    device_handler.format(mod, enc_conf=self._enc_config)
  File "/root/archinstall/./archinstall/lib/disk/device_handler.py", line 321, in format
    lsblk_info = self._fetch_part_info(part_mod.safe_dev_path)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/archinstall/./archinstall/lib/disk/device_handler.py", line 393, in _fetch_part_info
    raise DiskError(f'Unable to determine new partition number: {path}')
archinstall.lib.exceptions.DiskError: Unable to determine new partition number: /dev/vda1

Archinstall experienced the above error. If you think this is a bug, please report it to
https://github.com/archlinux/archinstall and include the log file "/var/log/archinstall/install.log".

Hint: To extract the log from a live ISO 
curl -F'file=@/var/log/archinstall/install.log' https://0x0.st


@Rust1667 Rust1667 changed the title Error making separate home partition. Error with manual partitioning (both separate /home and non separate) Mar 25, 2024
@Rust1667 Rust1667 changed the title Error with manual partitioning (both separate /home and non separate) Script crashes with manual partitioning (both separate /home and non separate) Mar 25, 2024
@Rust1667
Copy link
Author

Rust1667 commented Mar 25, 2024

I think you could consider putting a warning, like beta, or work in progress, to the manual partitioning option. The script crashes 90% of the times I try that. And its a lot of work setting the starting and end byte point of each partition without graphical aid.

In a couple cases also the vda drive got wiped/broken/hidden from the virtual machine. That makes it scary to try on bare metal for somebody with pre-existing partitions.

@apilatosba
Copy link

i also couldnt install using manual partitioning. tried it several times with different options and it crashes when i choose grub for bootloader. when i choose other bootloaders, archinstall doesnt crash but system doesnt boot after reboot. now i see your post, i am also concerned that it may be a bug in archinstall script.

@svartkanin
Copy link
Collaborator

Are you using the latest version? Could you please try to use the latest master as this could be resolved already

@xfnw
Copy link

xfnw commented Apr 19, 2024

I can reproduce this on the latest master.

From git bisecting, b39e3dc appears to be the first bad commit.

cc @codefiles

@codefiles
Copy link
Contributor

@Rust1667

  • Starting a partition at sector 0, the EFI system partition in this case, will overwrite the primary GUID Partition Table. Take care not to overwrite the primary GPT or secondary GPT.

    Creating partitions: /dev/vda
    	Type: primary
    	Filesystem: fat32
    	Geometry: 0 start sector, 1171875 length
    
  • QEMU should be configured for UEFI mode in order to utilize an EFI system partition.

    Hardware model detected: QEMU Standard PC (Q35 + ICH9, 2009); UEFI mode: False
    

@xfnw, that commit is unrelated to the issue in the initial report.

@svartkanin
Copy link
Collaborator

There's a plan for an overhaul of the partitioning menu which should implement better checks for all these things

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants