Repository: archlinux/archinstall

Issue:
archinstall  cant start
![IMG_20230807_224800](https://github.com/archlinux/archinstall/assets/32679742/97562310-71c0-4375-9cb9-b8d048c4aaca)
since I use bare metal install this. cannot export the error to text. 
Archinstall fails to start
I'm trying for a whole month to install Archlinux on my laptop using archinstall tool, but every attempt finishes as failure, I don't know how can Manjaro and EndeavourOS which are based on Arch succeed in creating a graphical tools that never fail on any installation while Archlinux which is supposed to be superior with its large skilled devs can't do it. Now with the latest archlinux-2023.08.01-x86_64.iso archinstall (latest release) refuses even to start 

![2023-08-02 14 34 54](https://github.com/archlinux/archinstall/assets/7027319/5bda7368-3848-424e-a8dd-7f40ae9dbada)



Discussion:
Same issue here ... I'm going to use an old iso instead. Hoping they fix it soon
I tried use my familiar one Linux-distro : ubuntu-server. it worked. hah. just need to get things done and continue work with computer.
I had the same issue on my pc.
 I tryed booting via usb and ventoy. 
The ventoy stick also had an encrypted partition on it. 
I also tryed to use the script on another usb which only has the arch iso flashed onto via etcher, this solved all the issues and the install is now running smoothly. 
Note: I used the same image on both sticks and verified the 256 checksums to be correct.
I think the encrypted partition via windows bitlocker was the problem did you also had simmilar partitions on time of the error ?
The error indicates that it can't read one of your existing partitions.
Could you share the output for
lsblk -J -O

Workaround for now is to either remove the device with the unknown partition if possible or to do a delete manually first and then start archinstall
> The error indicates that it can't read one of your existing partitions. Could you share the output for lsblk -J -O

```
{
   "blockdevices": [
      {
         "alignment": 0,
         "id-link": "wwn-0x5000cca5e8d38a64",
         "id": "0x5000cca5e8d38a64",
         "disc-aln": 0,
         "dax": false,
         "disc-gran": "0B",
         "disk-seq": 1,
         "disc-max": "0B",
         "disc-zero": false,
         "fsavail": null,
         "fsroots": [
             null
         ],
         "fssize": null,
         "fstype": null,
         "fsused": null,
         "fsuse%": null,
         "fsver": null,
         "group": "disk",
         "hctl": "0:0:0:0",
         "hotplug": false,
         "kname": "sda",
         "label": null,
         "log-sec": 512,
         "maj:min": "8:0",
         "min-io": 512,
         "mode": "brw-rw----",
         "model": "Hitachi HTS545025B9A300",
         "mq": "  1",
         "name": "sda",
         "opt-io": 0,
         "owner": "root",
         "partflags": null,
         "partlabel": null,
         "partn": null,
         "parttype": null,
         "parttypename": null,
         "partuuid": null,
         "path": "/dev/sda",
         "phy-sec": 512,
         "pkname": null,
         "pttype": "dos",
         "ptuuid": "788b7730",
         "ra": 128,
         "rand": true,
         "rev": "PB2OC60F",
         "rm": false,
         "ro": false,
         "rota": true,
         "rq-size": 64,
         "sched": "mq-deadline",
         "serial": "091205PB42061SDBZL2L",
         "size": "232.9G",
         "start": null,
         "state": "running",
         "subsystems": "block:scsi:pci",
         "mountpoint": null,
         "mountpoints": [
             null
         ],
         "tran": "sata",
         "type": "disk",
         "uuid": null,
         "vendor": "ATA     ",
         "wsame": "0B",
         "wwn": "0x5000cca5e8d38a64",
         "zoned": "none",
         "zone-sz": "0B",
         "zone-wgran": "0B",
         "zone-app": "0B",
         "zone-nr": 0,
         "zone-omax": 0,
         "zone-amax": 0,
         "children": [
            {
               "alignment": 0,
               "id-link": "wwn-0x5000cca5e8d38a64-part1",
               "id": "0x5000cca5e8d38a64-part1",
               "disc-aln": 0,
               "dax": false,
               "disc-gran": "0B",
               "disk-seq": 1,
               "disc-max": "0B",
               "disc-zero": false,
               "fsavail": null,
               "fsroots": [
                   null
               ],
               "fssize": null,
               "fstype": "ntfs",
               "fsused": null,
               "fsuse%": null,
               "fsver": null,
               "group": "disk",
               "hctl": null,
               "hotplug": false,
               "kname": "sda1",
               "label": null,
               "log-sec": 512,
               "maj:min": "8:1",
               "min-io": 512,
               "mode": "brw-rw----",
               "model": null,
               "mq": "  1",
               "name": "sda1",
               "opt-io": 0,
               "owner": "root",
               "partflags": "0x80",
               "partlabel": null,
               "partn": 1,
               "parttype": "0x7",
               "parttypename": "HPFS/NTFS/exFAT",
               "partuuid": "788b7730-01",
               "path": "/dev/sda1",
               "phy-sec": 512,
               "pkname": "sda",
               "pttype": "dos",
               "ptuuid": "788b7730",
               "ra": 128,
               "rand": true,
               "rev": null,
               "rm": false,
               "ro": false,
               "rota": true,
               "rq-size": 64,
               "sched": "mq-deadline",
               "serial": null,
               "size": "100M",
               "start": 2048,
               "state": null,
               "subsystems": "block:scsi:pci",
               "mountpoint": null,
               "mountpoints": [
                   null
               ],
               "tran": null,
               "type": "part",
               "uuid": "D606FB6E06FB4E4D",
               "vendor": null,
               "wsame": "0B",
               "wwn": "0x5000cca5e8d38a64",
               "zoned": "none",
               "zone-sz": "0B",
               "zone-wgran": "0B",
               "zone-app": "0B",
               "zone-nr": 0,
               "zone-omax": 0,
               "zone-amax": 0
            },{
               "alignment": 0,
               "id-link": "wwn-0x5000cca5e8d38a64-part2",
               "id": "0x5000cca5e8d38a64-part2",
               "disc-aln": 0,
               "dax": false,
               "disc-gran": "0B",
               "disk-seq": 1,
               "disc-max": "0B",
               "disc-zero": false,
               "fsavail": "5.2G",
               "fsroots": [
                   "/"
               ],
               "fssize": "90.3G",
               "fstype": "ntfs",
               "fsused": "85.1G",
               "fsuse%": "94%",
               "fsver": null,
               "group": "disk",
               "hctl": null,
               "hotplug": false,
               "kname": "sda2",
               "label": "C",
               "log-sec": 512,
               "maj:min": "8:2",
               "min-io": 512,
               "mode": "brw-rw----",
               "model": null,
               "mq": "  1",
               "name": "sda2",
               "opt-io": 0,
               "owner": "root",
               "partflags": null,
               "partlabel": null,
               "partn": 2,
               "parttype": "0x7",
               "parttypename": "HPFS/NTFS/exFAT",
               "partuuid": "788b7730-02",
               "path": "/dev/sda2",
               "phy-sec": 512,
               "pkname": "sda",
               "pttype": "dos",
               "ptuuid": "788b7730",
               "ra": 128,
               "rand": true,
               "rev": null,
               "rm": false,
               "ro": false,
               "rota": true,
               "rq-size": 64,
               "sched": "mq-deadline",
               "serial": null,
               "size": "90.3G",
               "start": 206848,
               "state": null,
               "subsystems": "block:scsi:pci",
               "mountpoint": "/mnt/0A36AFE336AFCE4F",
               "mountpoints": [
                   "/mnt/0A36AFE336AFCE4F"
               ],
               "tran": null,
               "type": "part",
               "uuid": "0A36AFE336AFCE4F",
               "vendor": null,
               "wsame": "0B",
               "wwn": "0x5000cca5e8d38a64",
               "zoned": "none",
               "zone-sz": "0B",
               "zone-wgran": "0B",
               "zone-app": "0B",
               "zone-nr": 0,
               "zone-omax": 0,
               "zone-amax": 0
            },{
               "alignment": 0,
               "id-link": "wwn-0x5000cca5e8d38a64-part3",
               "id": "0x5000cca5e8d38a64-part3",
               "disc-aln": 0,
               "dax": false,
               "disc-gran": "0B",
               "disk-seq": 1,
               "disc-max": "0B",
               "disc-zero": false,
               "fsavail": null,
               "fsroots": [
                   null
               ],
               "fssize": null,
               "fstype": null,
               "fsused": null,
               "fsuse%": null,
               "fsver": null,
               "group": "disk",
               "hctl": null,
               "hotplug": false,
               "kname": "sda3",
               "label": null,
               "log-sec": 512,
               "maj:min": "8:3",
               "min-io": 512,
               "mode": "brw-rw----",
               "model": null,
               "mq": "  1",
               "name": "sda3",
               "opt-io": 0,
               "owner": "root",
               "partflags": null,
               "partlabel": null,
               "partn": 3,
               "parttype": "0xf",
               "parttypename": "W95 Ext'd (LBA)",
               "partuuid": "788b7730-03",
               "path": "/dev/sda3",
               "phy-sec": 512,
               "pkname": "sda",
               "pttype": "dos",
               "ptuuid": "ffffffff",
               "ra": 128,
               "rand": true,
               "rev": null,
               "rm": false,
               "ro": false,
               "rota": true,
               "rq-size": 64,
               "sched": "mq-deadline",
               "serial": null,
               "size": "1K",
               "start": 189530110,
               "state": null,
               "subsystems": "block:scsi:pci",
               "mountpoint": null,
               "mountpoints": [
                   null
               ],
               "tran": null,
               "type": "part",
               "uuid": null,
               "vendor": null,
               "wsame": "0B",
               "wwn": "0x5000cca5e8d38a64",
               "zoned": "none",
               "zone-sz": "0B",
               "zone-wgran": "0B",
               "zone-app": "0B",
               "zone-nr": 0,
               "zone-omax": 0,
               "zone-amax": 0
            },{
               "alignment": 0,
               "id-link": "wwn-0x5000cca5e8d38a64-part5",
               "id": "0x5000cca5e8d38a64-part5",
               "disc-aln": 0,
               "dax": false,
               "disc-gran": "0B",
               "disk-seq": 1,
               "disc-max": "0B",
               "disc-zero": false,
               "fsavail": "332.2M",
               "fsroots": [
                   "/"
               ],
               "fssize": "54.3G",
               "fstype": "ntfs",
               "fsused": "54G",
               "fsuse%": "99%",
               "fsver": null,
               "group": "disk",
               "hctl": null,
               "hotplug": false,
               "kname": "sda5",
               "label": "D",
               "log-sec": 512,
               "maj:min": "8:5",
               "min-io": 512,
               "mode": "brw-rw----",
               "model": null,
               "mq": "  1",
               "name": "sda5",
               "opt-io": 0,
               "owner": "root",
               "partflags": null,
               "partlabel": null,
               "partn": 5,
               "parttype": "0x7",
               "parttypename": "HPFS/NTFS/exFAT",
               "partuuid": "788b7730-05",
               "path": "/dev/sda5",
               "phy-sec": 512,
               "pkname": "sda",
               "pttype": "dos",
               "ptuuid": "788b7730",
               "ra": 128,
               "rand": true,
               "rev": null,
               "rm": false,
               "ro": false,
               "rota": true,
               "rq-size": 64,
               "sched": "mq-deadline",
               "serial": null,
               "size": "54.3G",
               "start": 295323648,
               "state": null,
               "subsystems": "block:scsi:pci",
               "mountpoint": "/mnt/FEF0C76EF0C72C29",
               "mountpoints": [
                   "/mnt/FEF0C76EF0C72C29"
               ],
               "tran": null,
               "type": "part",
               "uuid": "FEF0C76EF0C72C29",
               "vendor": null,
               "wsame": "0B",
               "wwn": "0x5000cca5e8d38a64",
               "zoned": "none",
               "zone-sz": "0B",
               "zone-wgran": "0B",
               "zone-app": "0B",
               "zone-nr": 0,
               "zone-omax": 0,
               "zone-amax": 0
            },{
               "alignment": 0,
               "id-link": "wwn-0x5000cca5e8d38a64-part6",
               "id": "0x5000cca5e8d38a64-part6",
               "disc-aln": 0,
               "dax": false,
               "disc-gran": "0B",
               "disk-seq": 1,
               "disc-max": "0B",
               "disc-zero": false,
               "fsavail": "1.5G",
               "fsroots": [
                   "/"
               ],
               "fssize": "37.8G",
               "fstype": "ntfs",
               "fsused": "36.3G",
               "fsuse%": "96%",
               "fsver": null,
               "group": "disk",
               "hctl": null,
               "hotplug": false,
               "kname": "sda6",
               "label": "E",
               "log-sec": 512,
               "maj:min": "8:6",
               "min-io": 512,
               "mode": "brw-rw----",
               "model": null,
               "mq": "  1",
               "name": "sda6",
               "opt-io": 0,
               "owner": "root",
               "partflags": null,
               "partlabel": null,
               "partn": 6,
               "parttype": "0x7",
               "parttypename": "HPFS/NTFS/exFAT",
               "partuuid": "788b7730-06",
               "path": "/dev/sda6",
               "phy-sec": 512,
               "pkname": "sda",
               "pttype": "dos",
               "ptuuid": "788b7730",
               "ra": 128,
               "rand": true,
               "rev": null,
               "rm": false,
               "ro": false,
               "rota": true,
               "rq-size": 64,
               "sched": "mq-deadline",
               "serial": null,
               "size": "37.8G",
               "start": 409182208,
               "state": null,
               "subsystems": "block:scsi:pci",
               "mountpoint": "/mnt/989A18F59A18D19C",
               "mountpoints": [
                   "/mnt/989A18F59A18D19C"
               ],
               "tran": null,
               "type": "part",
               "uuid": "989A18F59A18D19C",
               "vendor": null,
               "wsame": "0B",
               "wwn": "0x5000cca5e8d38a64",
               "zoned": "none",
               "zone-sz": "0B",
               "zone-wgran": "0B",
               "zone-app": "0B",
               "zone-nr": 0,
               "zone-omax": 0,
               "zone-amax": 0
            },{
               "alignment": 0,
               "id-link": "wwn-0x5000cca5e8d38a64-part7",
               "id": "0x5000cca5e8d38a64-part7",
               "disc-aln": 0,
               "dax": false,
               "disc-gran": "0B",
               "disk-seq": 1,
               "disc-max": "0B",
               "disc-zero": false,
               "fsavail": "4.8G",
               "fsroots": [
                   "/"
               ],
               "fssize": "43.5G",
               "fstype": "ext4",
               "fsused": "36.4G",
               "fsuse%": "84%",
               "fsver": "1.0",
               "group": "disk",
               "hctl": null,
               "hotplug": false,
               "kname": "sda7",
               "label": "System",
               "log-sec": 512,
               "maj:min": "8:7",
               "min-io": 512,
               "mode": "brw-rw----",
               "model": null,
               "mq": "  1",
               "name": "sda7",
               "opt-io": 0,
               "owner": "root",
               "partflags": null,
               "partlabel": null,
               "partn": 7,
               "parttype": "0x83",
               "parttypename": "Linux",
               "partuuid": "788b7730-07",
               "path": "/dev/sda7",
               "phy-sec": 512,
               "pkname": "sda",
               "pttype": "dos",
               "ptuuid": "788b7730",
               "ra": 128,
               "rand": true,
               "rev": null,
               "rm": false,
               "ro": false,
               "rota": true,
               "rq-size": 64,
               "sched": "mq-deadline",
               "serial": null,
               "size": "44.4G",
               "start": 189532160,
               "state": null,
               "subsystems": "block:scsi:pci",
               "mountpoint": "/",
               "mountpoints": [
                   "/"
               ],
               "tran": null,
               "type": "part",
               "uuid": "27f1e53c-a759-44e7-ae10-d29787a0506e",
               "vendor": null,
               "wsame": "0B",
               "wwn": "0x5000cca5e8d38a64",
               "zoned": "none",
               "zone-sz": "0B",
               "zone-wgran": "0B",
               "zone-app": "0B",
               "zone-nr": 0,
               "zone-omax": 0,
               "zone-amax": 0
            },{
               "alignment": 0,
               "id-link": "wwn-0x5000cca5e8d38a64-part8",
               "id": "0x5000cca5e8d38a64-part8",
               "disc-aln": 0,
               "dax": false,
               "disc-gran": "0B",
               "disk-seq": 1,
               "disc-max": "0B",
               "disc-zero": false,
               "fsavail": null,
               "fsroots": [
                   null
               ],
               "fssize": null,
               "fstype": "swap",
               "fsused": null,
               "fsuse%": null,
               "fsver": "1",
               "group": "disk",
               "hctl": null,
               "hotplug": false,
               "kname": "sda8",
               "label": null,
               "log-sec": 512,
               "maj:min": "8:8",
               "min-io": 512,
               "mode": "brw-rw----",
               "model": null,
               "mq": "  1",
               "name": "sda8",
               "opt-io": 0,
               "owner": "root",
               "partflags": null,
               "partlabel": null,
               "partn": 8,
               "parttype": "0x82",
               "parttypename": "Linux swap / Solaris",
               "partuuid": "788b7730-08",
               "path": "/dev/sda8",
               "phy-sec": 512,
               "pkname": "sda",
               "pttype": "dos",
               "ptuuid": "788b7730",
               "ra": 128,
               "rand": true,
               "rev": null,
               "rm": false,
               "ro": false,
               "rota": true,
               "rq-size": 64,
               "sched": "mq-deadline",
               "serial": null,
               "size": "6.1G",
               "start": 282626048,
               "state": null,
               "subsystems": "block:scsi:pci",
               "mountpoint": "[SWAP]",
               "mountpoints": [
                   "[SWAP]"
               ],
               "tran": null,
               "type": "part",
               "uuid": "666d47c6-ca11-4222-aeaa-7eac4d05b4f5",
               "vendor": null,
               "wsame": "0B",
               "wwn": "0x5000cca5e8d38a64",
               "zoned": "none",
               "zone-sz": "0B",
               "zone-wgran": "0B",
               "zone-app": "0B",
               "zone-nr": 0,
               "zone-omax": 0,
               "zone-amax": 0
            }
         ]
      },{
         "alignment": 0,
         "id-link": "ata-Optiarc_DVD+_-RW_AD-7585H_SN94812106",
         "id": "Optiarc_DVD+_-RW_AD-7585H_SN94812106",
         "disc-aln": 0,
         "dax": false,
         "disc-gran": "0B",
         "disk-seq": 3,
         "disc-max": "0B",
         "disc-zero": false,
         "fsavail": null,
         "fsroots": [
             null
         ],
         "fssize": null,
         "fstype": null,
         "fsused": null,
         "fsuse%": null,
         "fsver": null,
         "group": "optical",
         "hctl": "1:0:0:0",
         "hotplug": false,
         "kname": "sr0",
         "label": null,
         "log-sec": 512,
         "maj:min": "11:0",
         "min-io": 512,
         "mode": "brw-rw----",
         "model": "Optiarc DVD+/-RW AD-7585H",
         "mq": "  1",
         "name": "sr0",
         "opt-io": 0,
         "owner": "root",
         "partflags": null,
         "partlabel": null,
         "partn": null,
         "parttype": null,
         "parttypename": null,
         "partuuid": null,
         "path": "/dev/sr0",
         "phy-sec": 512,
         "pkname": null,
         "pttype": null,
         "ptuuid": null,
         "ra": 128,
         "rand": false,
         "rev": "KD03",
         "rm": true,
         "ro": false,
         "rota": true,
         "rq-size": 64,
         "sched": "mq-deadline",
         "serial": "SN94812106",
         "size": "1024M",
         "start": null,
         "state": "running",
         "subsystems": "block:scsi:pci",
         "mountpoint": null,
         "mountpoints": [
             null
         ],
         "tran": "sata",
         "type": "rom",
         "uuid": null,
         "vendor": "Optiarc ",
         "wsame": "0B",
         "wwn": null,
         "zoned": "none",
         "zone-sz": "0B",
         "zone-wgran": "0B",
         "zone-app": "0B",
         "zone-nr": 0,
         "zone-omax": 0,
         "zone-amax": 0
      }
   ]
}
```


> Workaround for now is to either remove the device with the unknown partition if possible or to do a delete manually first and then start archinstall

I can't remove or delete any partition because I have both Manjaro and Windows 10 each installed in a specific partition (ext4 and NTFS), while the two other NTFS partitions holds my data.

What I want to do is to replace Manjaro, which is installed on the ext4 partition, with Archlinux. I don't know why Arch based distro installers correctly detects all my partitions while archinstall fails to do it.

I'm guessing it's this one that's causing the issue?
```
    "partn": 3,
    "parttype": "0xf",
    "parttypename": "W95 Ext'd (LBA)",
```
It's an extended boot record, and we expect it to be `Primary` *(Normal)*.
For reading existing partitions we can have some form of fallback if it's unknown.

Got the same issue. I've turned off my pc and removed every disk I have on it (except one I need for Linux), my motherboard time moved couple hours off so pacman-key wasn't working, I fixed it in BIOS.

Resolving patch:
diff --git a/archinstall/lib/disk/device_model.py b/archinstall/lib/disk/device_model.py
--- a/archinstall/lib/disk/device_model.py
+++ b/archinstall/lib/disk/device_model.py
@@ -20,6 +20,7 @@
 from ..general import SysCommand
 from ..output import debug, error
 from ..storage import storage
+from ..output import info
 
 if TYPE_CHECKING:
 	_: Any
@@ -509,13 +510,15 @@ def __hash__(self):
 class PartitionType(Enum):
 	Boot = 'boot'
 	Primary = 'primary'
+	_Unknown = 'unknown'
 
 	@classmethod
 	def get_type_from_code(cls, code: int) -> PartitionType:
 		if code == parted.PARTITION_NORMAL:
 			return PartitionType.Primary
-
-		raise DiskError(f'Partition code not supported: {code}')
+		else:
+			info(f'Partition code not supported: {code}')
+			return PartitionType._Unknown
 
 	def get_partition_code(self) -> Optional[int]:
 		if self == PartitionType.Primary:
@@ -659,9 +662,9 @@ def from_existing_partition(cls, partition_info: _PartitionInfo) -> PartitionMod
 		if partition_info.btrfs_subvol_infos:
 			mountpoint = None
 			subvol_mods = []
-			for info in partition_info.btrfs_subvol_infos:
+			for i in partition_info.btrfs_subvol_infos:
 				subvol_mods.append(
-					SubvolumeModification.from_existing_subvol_info(info)
+					SubvolumeModification.from_existing_subvol_info(i)
 				)
 		else:
 			mountpoint = partition_info.mountpoints[0] if partition_info.mountpoints else None


Test patch: