Skip to content
TheChatArchiveThe Chat Archive
gpt-4o-mini-2024-07-18· OpenAIAi2 WildChat-4.8M (AI2)

Windows won't configure devices after install by wimlib from Ubuntu(normal windows…

  1. User

    Windows won't configure devices after install by wimlib from Ubuntu(normal windows install from USB works)

  2. Assistant

    If you're encountering issues with Windows not configuring devices after installation via wimlib from Ubuntu, there are several factors that could be causing the problem. Below are some troubleshooting steps and tips to help you resolve the issue.

    1. Ensure Correct WIM Image

    Make sure that you are using a compatible WIM image file. The WIM file should be extracted properly and should be the correct version of Windows (e.g., Windows 10, Windows 11).

    2. Verify Installation Method

    Ensure that the method you used to install Windows with wimlib is correct. Here’s a general outline of how to do it:

    – Boot into a live Ubuntu session.

    – Mount the filesystem where you want to install Windows.

    – Use wimlib to apply the WIM image:

    wimlib-imagex apply /path/to/install.wim 1 /target/partition
    
    • Make sure you are targeting the correct partition (i.e., the Windows partition).

    3. Check EFI/BIOS Settings

    If you're using UEFI mode, ensure that the system is configured to boot in UEFI mode. If you install Windows while in BIOS mode, and your system is set to UEFI, it may not configure devices properly after installation.

    4. Repair Windows Installation

    If Windows fails to configure devices:

    • Boot from a Windows installation USB or recovery disk.

    • Choose the "Repair your computer" option.

    • Navigate to Troubleshoot > Advanced options > Command Prompt.

    • You can run the following commands to attempt to repair:

      sfc /scannow
      
      DISM /Online /Cleanup-Image /ScanHealth
      
      DISM /Online /Cleanup-Image /RestoreHealth
      

    5. Check Drivers

    If you get into Windows but there are issues with configuring devices:

    • Ensure that you have the correct drivers for your hardware.
    • You can visit the manufacturer's website for the latest drivers.
    • Use Device Manager to check for any devices with errors or missing drivers.

    6. Look into Windows Logs

    Check the Windows Event Viewer for any error messages that might shed light on why configuration fails:

    • Go to Start > Search "Event Viewer".
    • Look under Windows Logs for "Setup" or "System" logs that might indicate what's failing.

    7. Testing with a Virtual Environment

    If you're unable to pinpoint the issue, you can also try installing Windows using the same WIM file in a virtual machine (like VirtualBox or VMware) to see if the problem is related to your hardware or the installation method you used.

    Conclusion

    If you’ve checked all these areas and the problem persists, consider trying to create the USB installation media again, or utilize the official Microsoft Media Creation Tool to ensure the integrity of the WIM file. Remember to back up your data regularly when attempting system installations and repairs.

  3. User

    It happens right before I choose system settings and right after install

  4. Assistant

    If you are encountering an issue where Windows fails to configure devices immediately after the installation (just before you select system settings), this typically indicates that there might be a problem with the installation process or the configuration of the Windows image itself. Here are some potential solutions and troubleshooting steps you can take:

    1. Verify Windows Image Integrity

    The WIM image you are using might be corrupted or misconfigured. Here are some steps to verify:

    • Check the WIM file: Ensure that the WIM file is correctly downloaded and not corrupted. You can use the wimlib command to verify the integrity of the WIM file:

      wimlib-imagex check /path/to/install.wim
      
    • Use a clean WIM image: If possible, try obtaining a fresh copy of the Windows image from Microsoft's official site.

    2. Correct Image Application Steps

    Double-check that you are following the correct procedure for applying the WIM image:

    1. Boot into Ubuntu live session.
    2. Prepare the target partition (format it as NTFS if it isn’t yet).
    3. Mount the partition to ensure it is ready for installation.
    4. Use wimlib to apply the image:
      wimlib-imagex apply /path/to/install.wim 1 /mount/point
      
      Make sure to use the correct index number.

    3. Use an Official Windows Installation Method

    If the wimlib approach continues to cause issues, consider using the official Windows installation media creation tool or a properly created bootable USB:

    • Download the Windows Media Creation Tool from Microsoft.
    • Use it to create a bootable USB drive directly from a Windows machine or using a utility like Rufus.

    4. Attempt to Boot in Safe Mode

    If Windows gets stuck at configuring devices, you might be able to boot into Safe Mode:

    1. Interrupt the boot process three times (turning off the PC during boot).
    2. This should bring up Windows Recovery Environment.
    3. Navigate to Troubleshoot > Advanced Options > Startup Settings and enable Safe Mode.

    If you can boot into Safe Mode, you can troubleshoot further by disabling problematic drivers or checking for issues in Device Manager.

    5. Disable Fast Startup

    Sometimes, Fast Startup can cause issues during installation:

    • While in Safe Mode, go to Control Panel > Power Options > Choose what the power buttons do.
    • Click on Change settings that are currently unavailable and uncheck Turn on fast startup.

    6. Check BIOS/UEFI Settings

    Make sure your BIOS/UEFI settings are correctly configured:

    • Boot Mode: Ensure you're either in UEFI mode for GPT partitions or Legacy mode for MBR.
    • Secure Boot: If enabled, try disabling it during installation.
    • CSM (Compatibility Support Module): If supported, enable it if you're having trouble booting.

    7. Hardware Compatibility

    Sometimes, hardware compatibility issues can lead to these errors. If you have recently upgraded components or have non-standard hardware, ensure that you have the latest BIOS/firmware updates and drivers for your components.

    8. Check Installation Drivers

    Another approach is checking if you're missing any specific drivers that are required during the installation process:

    • If possible, try to inject drivers (like storage) into the WIM image before applying it. You can do this with DISM in Windows.

    Conclusion

    If after following these steps the issue persists, it may be worth exploring community forums or Microsoft's support channels, as they may provide insights specific to your hardware and installation process. Additionally, repeating the installation process to see if it was a one-time error might yield better results.