Introduction
If you've attempted to install a new Linux distribution on your Windows 11 system and encountered issues due to insufficient free space, this article is for you. This article covers the process of identifying and resolving occupied free space caused by old, inaccessible Linux installations.
Symptoms
The following symptoms may indicate that you have an old, inaccessible Linux installation occupying free space on your Windows 11 system:
- Error messages during Linux installation, such as "Not enough free space" or "Disk is full."
- Slow performance of your Windows 11 system.
- Unexpectedly large file sizes for the C: drive.
Preparation
Before proceeding with the troubleshooting process, ensure the following:
- Backup important data from the Linux installation and the Windows 11 system.
- Create a Windows 11 installation media.
Identifying Old Linux Installations
Use the following steps to identify any old Linux installations on your Windows 11 system:
- Boot into the Windows 11 installation media.
- Select "Command Prompt" from the installation menu.
- Type the following command and press Enter:
bcdedit /v
This command will display the current boot configuration data. Look for any entries related to Linux distributions. The boot entries will appear as:
C:\Boot\BCD
-------------------------------------------------------------------------------------------------------
bootmenu entry: Linux
{
name = Linux;
description = Linux;
loader = \EFI\ubuntu\shimx64.efi;
recoverysequence = {...};
toolsdisplayorder = {...};
timeout = 30;
bootsecpollinterval = 2000;
}
Deleting Old Linux Installations
Use the following steps to delete old Linux installations:
- Boot into the Windows 11 installation media.
- Select "Command Prompt" from the installation menu.
- Type the following command and press Enter:
bcdedit /delete {}
Replace
bcdedit /v | findstr /C:"{}"
After deleting the Linux installation, you can safely remove the Linux partition using a partition manager like MiniTool Partition Wizard or the Disk Management utility in Windows.
Reclaiming Free Space
After removing the old Linux installation, you can reclaim the freed-up space by:
- Running the Disk Cleanup utility in Windows 11.
- Using a third-party disk cleanup tool like CCleaner.