archinstall icon indicating copy to clipboard operation
archinstall copied to clipboard

Microsoft reserved partition shows as btrfs and fails to mount

Open TotoShampoin opened this issue 7 months ago • 5 comments

Which ISO version are you using?

2025-06-01

The installation log

[2025-06-22 07:22:48] - DEBUG - Hardware model detected: ASUSTeK COMPUTER INC. ASUS TUF Gaming F15 FX506HC_FX506HC; UEFI mode: True
[2025-06-22 07:22:48] - DEBUG - Processor model detected: 11th Gen Intel(R) Core(TM) i5-11400H @ 2.70GHz
[2025-06-22 07:22:48] - DEBUG - Memory statistics: 14180352 available out of 16103504 total installed
[2025-06-22 07:22:48] - DEBUG - Could not detect virtual system: ['/usr/bin/systemd-detect-virt'] exited with abnormal exit code [1]: none

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

[2025-06-22 07:22:48] - DEBUG - Virtualization detected: None; is VM: False
[2025-06-22 07:22:50] - DEBUG - Graphics devices detected: dict_keys(['Intel Corporation TigerLake-H GT1 [UHD Graphics] (rev 01)', 'NVIDIA Corporation GA107M [GeForce RTX 3050 Mobile] (rev a1)'])
[2025-06-22 07:22:50] - DEBUG - Disk states before installing:
{
    "blockdevices": [
        {
            "name": "loop0",
            "path": "/dev/loop0",
            "pkname": null,
            "log_sec": 512,
            "size": "853 MiB",
            "pttype": null,
            "ptuuid": null,
            "rota": false,
            "tran": null,
            "partn": null,
            "partuuid": null,
            "parttype": null,
            "uuid": null,
            "fstype": "squashfs",
            "fsver": "4.0",
            "fsavail": 0,
            "fsuse_percentage": "100%",
            "type": "loop",
            "mountpoint": "/run/archiso/airootfs",
            "mountpoints": [
                "/run/archiso/airootfs"
            ],
            "fsroots": [
                "/"
            ],
            "children": []
        },
        {
            "name": "sda",
            "path": "/dev/sda",
            "pkname": null,
            "log_sec": 512,
            "size": "31000 MiB",
            "pttype": "dos",
            "ptuuid": "7efceaee",
            "rota": true,
            "tran": "usb",
            "partn": null,
            "partuuid": null,
            "parttype": null,
            "uuid": null,
            "fstype": null,
            "fsver": null,
            "fsavail": null,
            "fsuse_percentage": null,
            "type": "disk",
            "mountpoint": null,
            "mountpoints": [],
            "fsroots": [],
            "children": [
                {
                    "name": "sda1",
                    "path": "/dev/sda1",
                    "pkname": "sda",
                    "log_sec": 512,
                    "size": "30967 MiB",
                    "pttype": "dos",
                    "ptuuid": "7efceaee",
                    "rota": true,
                    "tran": null,
                    "partn": 1,
                    "partuuid": "7efceaee-01",
                    "parttype": "0x7",
                    "uuid": "4E21-0000",
                    "fstype": "exfat",
                    "fsver": "1.0",
                    "fsavail": null,
                    "fsuse_percentage": null,
                    "type": "part",
                    "mountpoint": null,
                    "mountpoints": [],
                    "fsroots": [],
                    "children": [
                        {
                            "name": "ventoy",
                            "path": "/dev/mapper/ventoy",
                            "pkname": "sda1",
                            "log_sec": 512,
                            "size": "1198 MiB",
                            "pttype": "dos",
                            "ptuuid": "658fe5ae",
                            "rota": true,
                            "tran": null,
                            "partn": null,
                            "partuuid": null,
                            "parttype": null,
                            "uuid": "2025-06-01-09-10-39-00",
                            "fstype": "iso9660",
                            "fsver": "Joliet Extension",
                            "fsavail": null,
                            "fsuse_percentage": null,
                            "type": "dm",
                            "mountpoint": null,
                            "mountpoints": [],
                            "fsroots": [],
                            "children": []
                        },
                        {
                            "name": "sda1",
                            "path": "/dev/mapper/sda1",
                            "pkname": "sda1",
                            "log_sec": 512,
                            "size": "30967 MiB",
                            "pttype": null,
                            "ptuuid": null,
                            "rota": true,
                            "tran": null,
                            "partn": null,
                            "partuuid": null,
                            "parttype": null,
                            "uuid": "4E21-0000",
                            "fstype": "exfat",
                            "fsver": "1.0",
                            "fsavail": null,
                            "fsuse_percentage": null,
                            "type": "dm",
                            "mountpoint": null,
                            "mountpoints": [],
                            "fsroots": [],
                            "children": []
                        }
                    ]
                },
                {
                    "name": "sda2",
                    "path": "/dev/sda2",
                    "pkname": "sda",
                    "log_sec": 512,
                    "size": "32 MiB",
                    "pttype": "dos",
                    "ptuuid": "7efceaee",
                    "rota": true,
                    "tran": null,
                    "partn": 2,
                    "partuuid": "7efceaee-02",
                    "parttype": "0xef",
                    "uuid": "626B-4255",
                    "fstype": "vfat",
                    "fsver": "FAT16",
                    "fsavail": null,
                    "fsuse_percentage": null,
                    "type": "part",
                    "mountpoint": null,
                    "mountpoints": [],
                    "fsroots": [],
                    "children": []
                }
            ]
        },
        {
            "name": "nvme1n1",
            "path": "/dev/nvme1n1",
            "pkname": null,
            "log_sec": 512,
            "size": "488386 MiB",
            "pttype": "gpt",
            "ptuuid": "f84bf5cb-1c95-4d40-acb0-1da52a753dba",
            "rota": false,
            "tran": "nvme",
            "partn": null,
            "partuuid": null,
            "parttype": null,
            "uuid": null,
            "fstype": null,
            "fsver": null,
            "fsavail": null,
            "fsuse_percentage": null,
            "type": "disk",
            "mountpoint": null,
            "mountpoints": [],
            "fsroots": [],
            "children": [
                {
                    "name": "nvme1n1p1",
                    "path": "/dev/nvme1n1p1",
                    "pkname": "nvme1n1",
                    "log_sec": 512,
                    "size": "100 MiB",
                    "pttype": "gpt",
                    "ptuuid": "f84bf5cb-1c95-4d40-acb0-1da52a753dba",
                    "rota": false,
                    "tran": "nvme",
                    "partn": 1,
                    "partuuid": "6b4998eb-5826-4444-9004-1f567ebfddec",
                    "parttype": "c12a7328-f81f-11d2-ba4b-00a0c93ec93b",
                    "uuid": "70B3-8EDB",
                    "fstype": "vfat",
                    "fsver": "FAT32",
                    "fsavail": 65583104,
                    "fsuse_percentage": "35%",
                    "type": "part",
                    "mountpoint": "/mnt/boot/efi",
                    "mountpoints": [
                        "/mnt/boot/efi"
                    ],
                    "fsroots": [
                        "/"
                    ],
                    "children": []
                },
                {
                    "name": "nvme1n1p2",
                    "path": "/dev/nvme1n1p2",
                    "pkname": "nvme1n1",
                    "log_sec": 512,
                    "size": "16 MiB",
                    "pttype": "gpt",
                    "ptuuid": "f84bf5cb-1c95-4d40-acb0-1da52a753dba",
                    "rota": false,
                    "tran": "nvme",
                    "partn": 2,
                    "partuuid": "c7b68edb-2d8c-4b7d-b2e7-f172e4443520",
                    "parttype": "e3c9e316-0b5c-4db8-817d-f92df00215ae",
                    "uuid": null,
                    "fstype": null,
                    "fsver": null,
                    "fsavail": null,
                    "fsuse_percentage": null,
                    "type": "part",
                    "mountpoint": null,
                    "mountpoints": [],
                    "fsroots": [],
                    "children": []
                },
                {
                    "name": "nvme1n1p3",
                    "path": "/dev/nvme1n1p3",
                    "pkname": "nvme1n1",
                    "log_sec": 512,
                    "size": "487611 MiB",
                    "pttype": "gpt",
                    "ptuuid": "f84bf5cb-1c95-4d40-acb0-1da52a753dba",
                    "rota": false,
                    "tran": "nvme",
                    "partn": 3,
                    "partuuid": "b744f1e7-8ed7-4013-993b-4bc813dc1201",
                    "parttype": "ebd0a0a2-b9e5-4433-87c0-68b6b72699c7",
                    "uuid": "ACD0B551D0B5228E",
                    "fstype": "ntfs",
                    "fsver": null,
                    "fsavail": null,
                    "fsuse_percentage": null,
                    "type": "part",
                    "mountpoint": null,
                    "mountpoints": [],
                    "fsroots": [],
                    "children": []
                },
                {
                    "name": "nvme1n1p4",
                    "path": "/dev/nvme1n1p4",
                    "pkname": "nvme1n1",
                    "log_sec": 512,
                    "size": "657 MiB",
                    "pttype": "gpt",
                    "ptuuid": "f84bf5cb-1c95-4d40-acb0-1da52a753dba",
                    "rota": false,
                    "tran": "nvme",
                    "partn": 4,
                    "partuuid": "a460175a-8bb0-47fb-b913-1bb7a3d34534",
                    "parttype": "de94bba4-06d1-4d40-a16a-bfd50179d6ac",
                    "uuid": "A282068A82066361",
                    "fstype": "ntfs",
                    "fsver": null,
                    "fsavail": null,
                    "fsuse_percentage": null,
                    "type": "part",
                    "mountpoint": null,
                    "mountpoints": [],
                    "fsroots": [],
                    "children": []
                }
            ]
        },
        {
            "name": "nvme0n1",
            "path": "/dev/nvme0n1",
            "pkname": null,
            "log_sec": 512,
            "size": "953869 MiB",
            "pttype": "gpt",
            "ptuuid": "507f3315-d148-4c5f-8474-37eba13e3de2",
            "rota": false,
            "tran": "nvme",
            "partn": null,
            "partuuid": null,
            "parttype": null,
            "uuid": null,
            "fstype": null,
            "fsver": null,
            "fsavail": null,
            "fsuse_percentage": null,
            "type": "disk",
            "mountpoint": null,
            "mountpoints": [],
            "fsroots": [],
            "children": [
                {
                    "name": "nvme0n1p1",
                    "path": "/dev/nvme0n1p1",
                    "pkname": "nvme0n1",
                    "log_sec": 512,
                    "size": "16 MiB",
                    "pttype": "gpt",
                    "ptuuid": "507f3315-d148-4c5f-8474-37eba13e3de2",
                    "rota": false,
                    "tran": "nvme",
                    "partn": 1,
                    "partuuid": "bac7f39f-175f-471e-be82-bfc9f651593a",
                    "parttype": "e3c9e316-0b5c-4db8-817d-f92df00215ae",
                    "uuid": "ab67778a-28df-4580-9bb1-667654982a47",
                    "fstype": "btrfs",
                    "fsver": null,
                    "fsavail": null,
                    "fsuse_percentage": null,
                    "type": "part",
                    "mountpoint": null,
                    "mountpoints": [],
                    "fsroots": [],
                    "children": []
                },
                {
                    "name": "nvme0n1p2",
                    "path": "/dev/nvme0n1p2",
                    "pkname": "nvme0n1",
                    "log_sec": 512,
                    "size": "822795 MiB",
                    "pttype": "gpt",
                    "ptuuid": "507f3315-d148-4c5f-8474-37eba13e3de2",
                    "rota": false,
                    "tran": "nvme",
                    "partn": 2,
                    "partuuid": "4c2f515c-ef0c-4e05-8aa1-b951dac3729a",
                    "parttype": "ebd0a0a2-b9e5-4433-87c0-68b6b72699c7",
                    "uuid": "5CCCDAB5CCDA8922",
                    "fstype": "ntfs",
                    "fsver": null,
                    "fsavail": null,
                    "fsuse_percentage": null,
                    "type": "part",
                    "mountpoint": null,
                    "mountpoints": [],
                    "fsroots": [],
                    "children": []
                },
                {
                    "name": "nvme0n1p3",
                    "path": "/dev/nvme0n1p3",
                    "pkname": "nvme0n1",
                    "log_sec": 512,
                    "size": "131057 MiB",
                    "pttype": "gpt",
                    "ptuuid": "507f3315-d148-4c5f-8474-37eba13e3de2",
                    "rota": false,
                    "tran": "nvme",
                    "partn": 3,
                    "partuuid": "697fc219-5508-4057-b1d6-17569a782ecf",
                    "parttype": "0fc63daf-8483-4772-8e79-3d69d8477de4",
                    "uuid": "1cdd0d77-aa34-4237-9451-ab19b48f12b2",
                    "fstype": "ext4",
                    "fsver": "1.0",
                    "fsavail": 127777435648,
                    "fsuse_percentage": "0%",
                    "type": "part",
                    "mountpoint": "/mnt",
                    "mountpoints": [
                        "/mnt"
                    ],
                    "fsroots": [
                        "/"
                    ],
                    "children": []
                }
            ]
        }
    ]
}
[2025-06-22 07:22:50] - INFO - Fetching Arch Linux package database...
[2025-06-22 07:22:52] - INFO - Checking version...
[2025-06-22 07:22:53] - INFO - New version available: [?25larchinstall 3.0.7-1 -> 3.0.8-1
[?25h
[2025-06-22 07:22:56] - DEBUG - Could not determine the filesystem: None
[2025-06-22 07:22:56] - DEBUG - Mounting /dev/nvme0n1p1: mount /dev/nvme0n1p1 /mnt/arch_btrfs
[2025-06-22 07:22:56] - ERROR - Traceback (most recent call last):
  File "/usr/lib/python3.13/site-packages/archinstall/lib/disk/device_handler.py", line 767, in mount
    SysCommand(command)
    ~~~~~~~~~~^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/archinstall/lib/general.py", line 336, in __init__
    self.create_session()
    ~~~~~~~~~~~~~~~~~~~^^
  File "/usr/lib/python3.13/site-packages/archinstall/lib/general.py", line 376, in create_session
    with SysCommandWorker(
         ~~~~~~~~~~~~~~~~^
    	self.cmd,
     ^^^^^^^^^
    ...<3 lines>...
    	working_directory=self.working_directory,
     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ) as session:
    ^
  File "/usr/lib/python3.13/site-packages/archinstall/lib/general.py", line 194, in __exit__
    raise SysCallError(
    ...<3 lines>...
    )
archinstall.lib.exceptions.SysCallError: ['/usr/bin/mount', '/dev/nvme0n1p1', '/mnt/arch_btrfs'] exited with abnormal exit code [32]: mount: /mnt/arch_btrfs: can't read superblock on /dev/nvme0n1p1.
       dmesg(1) may have more information after failed mount system call.


During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.13/site-packages/archinstall/__init__.py", line 103, in run_as_a_module
    rc = main()
  File "/usr/lib/python3.13/site-packages/archinstall/__init__.py", line 93, in main
    importlib.import_module(mod_name)
    ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
  File "/usr/lib/python3.13/importlib/__init__.py", line 88, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 1026, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/usr/lib/python3.13/site-packages/archinstall/scripts/guided.py", line 7, in <module>
    from archinstall.lib.disk.filesystem import FilesystemHandler
  File "/usr/lib/python3.13/site-packages/archinstall/lib/disk/filesystem.py", line 9, in <module>
    from ..interactions.general_conf import ask_abort
  File "/usr/lib/python3.13/site-packages/archinstall/lib/interactions/__init__.py", line 1, in <module>
    from .disk_conf import (
    ...<6 lines>...
    )
  File "/usr/lib/python3.13/site-packages/archinstall/lib/interactions/disk_conf.py", line 4, in <module>
    from archinstall.lib.disk.device_handler import device_handler
  File "/usr/lib/python3.13/site-packages/archinstall/lib/disk/device_handler.py", line 846, in <module>
    device_handler = DeviceHandler()
  File "/usr/lib/python3.13/site-packages/archinstall/lib/disk/device_handler.py", line 58, in __init__
    self.load_devices()
    ~~~~~~~~~~~~~~~~~^^
  File "/usr/lib/python3.13/site-packages/archinstall/lib/disk/device_handler.py", line 115, in load_devices
    subvol_infos = self.get_btrfs_info(partition.path, lsblk_info)
  File "/usr/lib/python3.13/site-packages/archinstall/lib/disk/device_handler.py", line 222, in get_btrfs_info
    self.mount(dev_path, self._TMP_BTRFS_MOUNT, create_target_mountpoint=True)
    ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/archinstall/lib/disk/device_handler.py", line 769, in mount
    raise DiskError(f'Could not mount {dev_path}: {command}\n{err.message}')
archinstall.lib.exceptions.DiskError: Could not mount /dev/nvme0n1p1: mount /dev/nvme0n1p1 /mnt/arch_btrfs
['/usr/bin/mount', '/dev/nvme0n1p1', '/mnt/arch_btrfs'] exited with abnormal exit code [32]: mount: /mnt/arch_btrfs: can't read superblock on /dev/nvme0n1p1.
       dmesg(1) may have more information after failed mount system call.


[2025-06-22 07:22:56] - WARNING - 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

describe the problem

Description of the issue

I have an ASUS TUF Gaming F15 with two disks, one with 500GB an one with 1TB.
I have installed Windows in the 500GB, and am using the 1TB as data storage.
I allocated 128GB in the 1TB to install archlinux.

Upon starting archinstall, it reports that it is essentially unable to mount a btrfs partition. But a closer look reveals to me that what it assumes to be a btrfs is actually a MSR partition, hence it is unable to mount it.

I'm not sure if the issue is on my part or not, but this completely disables me from installing archlinux without doing a manual install, which I kinda don't want to.

TotoShampoin avatar Jun 22 '25 07:06 TotoShampoin

Well, as it turns out, this MSR partition was never supposes to be maked as btrfs, so I called a wipefs on it. (This broke nothing, this partition is supposed to be empty, apparently)

I will however keep the issue open as it is problematic that the software refuses to start altogether when it faces broken partitions

TotoShampoin avatar Jun 22 '25 08:06 TotoShampoin

Hi, exact same issue here, I've also had to run wipefs on my windows partition to use archinstall.

SimoneFelici avatar Jul 01 '25 18:07 SimoneFelici

Hi, exact same issue here, I've also had to run wipefs on my windows partition to use archinstall.

Please tell me you mean the MSR partition that is 16MB, and not the actual Windows partition with your data in it...

TotoShampoin avatar Jul 01 '25 20:07 TotoShampoin

Please tell me you mean the MSR partition that is 16MB, and not the actual Windows partition with your data in it...

💀

Lol, tbh it was just a backup in case something went wrong with the Arch one, so I didn't lose anything. But yeah, I should have read your message more carefully 😅

SimoneFelici avatar Jul 01 '25 20:07 SimoneFelici

Please tell me you mean the MSR partition that is 16MB, and not the actual Windows partition with your data in it...

💀

Lol, tbh it was just a backup in case something went wrong with the Arch one, so I didn't lose anything. But yeah, I should have read your message more carefully 😅

I was having second thoughts about sharing this wipefs thing, as I knew it could do damage to anyone not careful, and I was afraid that someone might actually do exactly that

Looks like you proved me right

TotoShampoin avatar Jul 01 '25 22:07 TotoShampoin