iTranslated by AI

The content below is an AI-generated translation. This is an experimental feature, and may contain errors. View original article
🛠

Troubleshooting Windows 11 24H2

に公開

Purpose

I am leaving this memo because several troubles occurred, some related and some unrelated to the Windows 11 24H2 update.

Table of Contents

    1. Windows 11 24H2 Update and Device Encryption
    1. SSD S.M.A.R.T. Errors
    1. Replacing the SSD
    1. Windows 11 24H2 Clean Install
    1. After Installing Windows
    1. Summary
  • A. Reference Sites

1. Windows 11 24H2 Update and Device Encryption

As mentioned in these articles, it seems that device encryption is now more likely to be turned on automatically, regardless of whether it is Windows 11 Pro or Home. In the case of Pro, it is full BitLocker, and for Home, it is a simplified version called "Device Encryption" that uses redirected components—something like "BitLocker Light." If "Settings app" -> Privacy & security -> Device encryption is on, the storage device is encrypted. In other words, you will not be able to extract data using an SSD enclosure or similar tools. I think this is generally a good thing, so it doesn't necessarily need to be viewed as a problem.

On the other hand, this apparently applies even if you are using Windows 11 with only a local account without creating a Microsoft account. This means that if a large-scale update occurs and a "Recovery Key" is requested, you might get stuck. Regarding this, there is information that you can check it with the following command, although I'm not sure where it is displayed[1]:

manage-bde.exe -protectors -get c:\

One should also refer to manage-bde protectors. In any case, managing this properly is a bit heavy for personal use, so I decided to turn it off at my own risk this time.

In this situation, device encryption was automatically turned on on multiple PCs, and I tried to disable it on all of them, but one failed. Specifically, it froze during the decryption process, and I couldn't even launch Task Manager with Ctrl+Alt+Del. Of course, it remained in an unusable state even after a forced restart.

2. SSD S.M.A.R.T. Errors

After some trial and error, I discovered that the storage device seemed to be damaged (this is likely why the process of turning off encryption, which involves large-scale disk access, stopped). Since the system was no longer in a state where I could install and run CrystalDiskInfo, I decided to boot a diagnostic Linux distribution from an external USB drive.

Since the Arch Linux-based distribution "SystemRescue" is useful for situational analysis, I downloaded the ISO image and created a bootable USB. Although very small USB drives are rarely sold these days, the image fits in about 2 GB, so any spare drive should work.

Change the boot order in the UEFI settings to give priority to the USB drive. You might also need to temporarily relax UEFI Secure Boot settings to boot it. If you are concerned about this, it might be better to use a distribution that supports Secure Boot[2] (such as Ubuntu).

lsblk -f

Enumerate the block devices with the above command to find the one containing Windows. Then,

smartctl -a -d nvme /dev/...

Check the S.M.A.R.T. values using a command like the one above. In the PC where the problem occurred, the "Media and Data Integrity Errors" and "Error Information Log Entries" were abnormally high, so I concluded that there was an issue with the boot drive[3].

3. Replacing the SSD

Since it was an M.2 SSD this time, I replaced the SSD. These days, a 1TB SSD seems to cost a little over 10,000 yen. Since the laptop had limited internal space, I used one without a heatsink. It is a good idea to check how to open the back cover in advance. In the case of desktops as well, I recall seeing BTO machines with quite unique characteristics at times, so it's worth researching how to open the cover and replace the device. You could also just solve it with money and leave it to the BTO support.

4. Windows 11 24H2 Clean Install

Methods for creating installation media include:

and so on. This time, I used Microsoft's official tool mediacreationtool.exe. To be precise, I tried both, but in the end, I went through with the installation using the official tool. Rufus allows you to create ISOs with various customizations, but to be honest, I don't know the full details, so it's entirely at your own risk.

With mediacreationtool.exe, the necessary files for the USB are prepared.

  • autorun.inf
  • bootmgr
  • bootmgr.efi
  • setup.exe

It seems to be OK once these are placed.

Boot the PC from the USB again. The Windows setup will proceed, but during the online account creation phase, network access such as Wi-Fi will be required. If you use Rufus or similar tools to use a local account, Windows Update will be skipped, so you will need to handle it later.

By the way, even with installation media created with the official Microsoft tool, there is a possibility that Wi-Fi drivers will not be installed automatically. In that case, you need to download the drivers yourself beforehand. However, you cannot run the driver's setup.exe from the default screen during Windows installation. Thus, you get stuck. The solution is detailed in How to solve the problem when you cannot proceed with Windows 11 setup because you cannot connect to the internet. Once you reach the "Let's connect you to a network" screen:

  1. Press Shift + F10 to launch the command prompt.
  2. Launch Notepad by typing notepad.
  3. Go to "File (F)" > "Open (O)..." and find the driver on the USB memory. You can see it by switching the file type from "Text Documents (*.txt)" to "All Files."
  4. Launch the Wi-Fi driver installer with "Run as administrator (A)."

You install the driver by launching it using this quite technical method. This works. From there, it will take quite a while going through Windows updates and such, but the Windows setup should complete. You should perform this when you have several hours to spare.

5. After Installing Windows

  • Of course, device encryption is enabled, so I performed the procedure to turn it off in "Settings app" -> Privacy & security -> Device encryption, which was my original purpose. Since it was immediately after a clean install, I think it completed in a few minutes.

  • I also created a local account. Immediately after creation, it does not have administrator privileges, so I granted administrator privileges using the "User linked to a Microsoft account." After switching to the local account, it seems you can delete the "User linked to a Microsoft account." You could also just leave it.

  • I also signed up for a new antivirus software. Since I replaced the SSD without being able to uninstall it from the previous environment, and I hadn't made it possible to deactivate it online, it seemed I would need to contact vendor support. Honestly, I wasn't sure if it would go smoothly, and I wanted to get it over with quickly this time, so I decided to accept the expense of a few thousand yen.

It might depend on the antivirus software, but data might not be reflected on the authentication server immediately after purchase; in this case, I couldn't activate it right after buying. It worked after leaving it overnight.

  • I installed CrystalDiskInfo and checked the S.M.A.R.T. values, but there were no noticeable problems. Since it's a brand new SSD, that's to be expected. That said, you should assume things will break eventually and keep regular backups.

With the above, the goal has been achieved for now.

6. Summary

  • This time, I was caught in an OS boot disk failure related to the automatic device encryption by the Windows 11 24H2 update. As for device encryption, I think it's fine for everyone to adjust it at their own responsibility, but since it involves control over all files, it might not be possible to complete if the boot disk is damaged.

  • It probably would have been good to take a backup in advance at this timing.

  • A clean install of Windows is usually not something done frequently, so it probably feels like the first time every time. Since there is a high possibility of running into trouble, I want to perform it when there is plenty of time.

  • While it is desirable for network adapter drivers to be installed automatically, if they are not, you need to manage it yourself.

  • Even after Windows setup, there is a long way to go, so you have no choice but to recover the environment steadily. The content I wrote in Creating my favorite development environment on Windows 11 should still be helpful to some extent[4].

A. Reference Sites

脚注
  1. Based on How to find the Bitlocker recovery key in Windows. ↩︎

  2. Until booting UEFI Secure Boot and MIRACLE LINUX is a helpful reference. ↩︎

  3. I actually tried performing a "Windows 11 24H2 Clean Install" using the method described later while in this state, but the installation hung halfway through, and the progress indicator stopped moving. ↩︎

  4. In the summary of that article, I wrote, "I don't think a Windows machine will suddenly break and require a re-setup again," but it broke and required a re-setup quite soon, which was a lesson that one should not have excessive expectations. ↩︎

GitHubで編集を提案

Discussion