Repository: archlinux/archinstall

Issue #1557: Failed to read disk "/dev/sdaX" with lsblk
Created: 2022-11-12T14:49:36Z
Unsure of how or why, but a user reports issues with /dev/sda1 being called onto when it doesn't appear to exist.
Stack trace:
Exit code for blkid -p -o export was: 512
Not a loop device, trying uevent rules.
Could not decode JSON: lsblk: /dev/sda1: not a block device
{
   "blockdevices": [

   ]
}

Traceback (most recent call last):
  File "/usr/bin/archinstall", line 8, in <module>
    sys.exit(run_as_a_module())
  File "/usr/lib/python3.10/site-packages/archinstall/__init__.py", line 311, in run_as_a_module
    script.execute()
  File "/usr/lib/python3.10/site-packages/archinstall/lib/profiles.py", line 195, in execute
    self.spec.loader.exec_module(sys.modules[self.namespace])
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/usr/lib/python3.10/site-packages/archinstall/examples/guided.py", line 301, in <module>
    ask_user_questions()
  File "/usr/lib/python3.10/site-packages/archinstall/examples/guided.py", line 107, in ask_user_questions
    global_menu.run()
  File "/usr/lib/python3.10/site-packages/archinstall/lib/menu/selection_menu.py", line 336, in run
    if not self._process_selection(value):
  File "/usr/lib/python3.10/site-packages/archinstall/lib/menu/selection_menu.py", line 353, in _process_selection
    return self.exec_option(config_name, selector)
  File "/usr/lib/python3.10/site-packages/archinstall/lib/menu/selection_menu.py", line 373, in exec_option
    result = selector.func(presel_val)
  File "/usr/lib/python3.10/site-packages/archinstall/lib/menu/global_menu.py", line 79, in <lambda>
    lambda preset: self._select_harddrives(preset),
  File "/usr/lib/python3.10/site-packages/archinstall/lib/menu/global_menu.py", line 345, in _select_harddrives
    harddrives = select_harddrives(old_harddrives)
  File "/usr/lib/python3.10/site-packages/archinstall/lib/user_interaction/system_conf.py", line 52, in select_harddrives
    hard_drives = all_blockdevices(partitions=False).values()
  File "/usr/lib/python3.10/site-packages/archinstall/lib/disk/helpers.py", line 275, in all_blockdevices
    instances[path] = BlockDevice(path, path_info)
  File "/usr/lib/python3.10/site-packages/archinstall/lib/disk/blockdevice.py", line 53, in __init__
    self._load_partitions()
  File "/usr/lib/python3.10/site-packages/archinstall/lib/disk/blockdevice.py", line 131, in _load_partitions
    self._partitions[part_id] = Partition(root + part_id, block_device=self, part_id=part_id)
  File "/usr/lib/python3.10/site-packages/archinstall/lib/disk/partition.py", line 102, in __init__
    self._partition_info = self._fetch_information()
  File "/usr/lib/python3.10/site-packages/archinstall/lib/disk/partition.py", line 213, in _fetch_information
    lsblk_info = self._call_lsblk()
  File "/usr/lib/python3.10/site-packages/archinstall/lib/disk/partition.py", line 195, in _call_lsblk
    raise DiskError(f'Failed to read disk "{self.device_path}" with lsblk')
archinstall.lib.exceptions.DiskError: Failed to read disk "/dev/sda1" with lsblk

/dev/ says:
brw-rw----  1 root disk      8,   0 Nov  6 09:24 sda
brw-rw----  1 root disk      8,   2 Nov  6 09:24 sda2

/sys/class/blockdev/ says:
lrwxrwxrwx 1 root root 0 Nov  6 09:21 loop0 -> ../../devices/virtual/block/loop0
lrwxrwxrwx 1 root root 0 Nov  6 09:21 nvme0n1 -> ../../devices/pci0000:00/0000:00:01.1/0000:01:00.0/nvme/nvme0/nvme0n1
lrwxrwxrwx 1 root root 0 Nov  6 09:24 nvme0n1p1 -> ../../devices/pci0000:00/0000:00:01.1/0000:01:00.0/nvme/nvme0/nvme0n1/nvme0n1p1
lrwxrwxrwx 1 root root 0 Nov  6 09:24 nvme0n1p2 -> ../../devices/pci0000:00/0000:00:01.1/0000:01:00.0/nvme/nvme0/nvme0n1/nvme0n1p2
lrwxrwxrwx 1 root root 0 Nov  6 09:21 sda -> ../../devices/pci0000:00/0000:00:07.1/0000:1d:00.3/usb4/4-4/4-4:1.0/host10/target10:0:0/10:0:0:0/block/sda
lrwxrwxrwx 1 root root 0 Nov  6 09:21 sda2 -> ../../devices/pci0000:00/0000:00:07.1/0000:1d:00.3/usb4/4-4/4-4:1.0/host10/target10:0:0/10:0:0:0/block/sda/sda2
lrwxrwxrwx 1 root root 0 Nov  6 09:21 sr0 -> ../../devices/pci0000:00/0000:00:01.3/0000:03:00.0/usb1/1-8/1-8:1.2/host9/target9:0:0/9:0:0:0/block/sr0

Here are the error logs reported:

http://ix.io/4f5L
http://ix.io/4f5S
http://ix.io/4f5U

Duplicate issue #1610: Recurrent problems Archinstall 
Created: 2022-12-30T14:00:04Z
Despite several attempts archinstall will not load, keep getting failure message as per enclosed

Closing comment (2023-01-25T23:29:56Z): It's a duplicate of #1557