Error Starting Kali Linux in Windows 11: 'ERROR: CreateProcessEntryCommon:496: chdir(/mnt/c/Windows/System32) failed: 5'

Abstract: Resolve the chdir permission denied error when starting Kali Linux on Windows 11 by unregistering and reinstalling the WSL instance.

Created: 2026-08-18 by
The error "CreateProcessEntryCommon:496: chdir(/mnt/c/Windows/System32) failed: 5" occurs because the Windows Subsystem for Linux (WSL) service cannot access critical system directories due to permission conflicts or corrupted instance states. This is a common issue on Windows 11 where the WSL kernel or distribution files are locked by background processes. The most effective solution is to unregister the broken Kali Linux instance and reinstall it, which clears the corrupted state and restores proper access rights.

Understanding the Permission Error

The specific error code 5 in Linux terminology typically signifies a "Permission Denied" issue. When you attempt to start Kali Linux via the Windows Terminal or the Start Menu, the WSL backend tries to change its working directory to /mnt/c/Windows/System32. If the underlying virtual machine instance has become corrupted, or if file locks from previous crashes remain active, the process fails to gain the necessary read/write permissions.

This often happens after an abrupt shutdown of Windows 11, a failed update, or when multiple WSL distributions are running simultaneously. The WSL driver may leave zombie processes that hold exclusive locks on the disk images associated with your Kali installation. Consequently, any new attempt to launch the distribution hits a wall of restricted access, resulting in the failure message you are seeing.

Step-by-Step Solution: Unregister and Reinstall

While updating WSL via wsl --update is a good maintenance habit, it rarely fixes corruption within a specific distribution's root filesystem. The primary fix involves resetting the Kali Linux instance entirely. Follow these steps carefully to ensure a clean slate.

1. Stop All WSL Instances

Before making changes, you must ensure no background processes are holding locks on the Kali files. Open PowerShell or Command Prompt as Administrator and run:

wsl --shutdown

This command gracefully stops all running distributions and unloads the WSL virtual machine. Wait ten seconds to ensure all handles are released. You can verify this by checking Task Manager for any lingering vmmem or WslService.exe processes related to Kali.

2. List Your Installed Distributions

Identify the exact name of your Kali instance. Run the following command:

wsl -l -v

Note the name listed under the "NAME" column. It is usually Kali or kali-linux. Ensure you have the correct identifier before proceeding, as unregistering will delete the local state of that distribution.

3. Unregister the Broken Instance

Remove the corrupted configuration and file system metadata. Replace <Kali_Name> with the actual name found in the previous step:

wsl --unregister <Kali_Name>

This action does not delete your personal data stored in cloud backups or external drives, but it removes the local virtual hard disk associated with the Kali installation. This is safe because we will immediately reinstall the fresh image.

4. Reinstall Kali Linux

Now, install a fresh copy of Kali Linux. You can do this through the Microsoft Store or via the command line. For a quick command-line reinstallation, use:

wsl --install -d Kali-linux

If you prefer the Microsoft Store, search for "Kali Linux" and click Install. After the installation completes, launch Kali from the Start Menu. It should now initialize without the chdir error, prompting you to create a new UNIX user account.

Preventing Future Lock Conflicts

To avoid encountering this error again, consider adjusting how you interact with WSL on Windows 11. Always shut down WSL properly when you are done using it, rather than just closing the terminal window. You can automate this by adding wsl --shutdown to your Windows login script or using a scheduled task.

Additionally, ensure that your antivirus software is not scanning the %LOCALAPPDATA%\WSL directory in real-time. Antivirus scans can sometimes lock files during write operations, leading to similar permission errors. Excluding the WSL data directory from real-time protection significantly improves stability.

If you are experiencing issues with other subsystems, such as Docker Desktop failing with invalid command line options, you might find relevant troubleshooting tips in our guide on Unable to run Docker Desktop: Invalid command line option --mount.

Frequently Asked Questions

Will unregistering Kali Linux delete my existing data?

Yes, unregistering removes the local virtual disk image containing your files, scripts, and installed packages. However, if you had previously exported your data or synced it with a remote repository, that data remains safe. Always back up important files before unregistering.

Why does this error happen specifically on Windows 11?

Windows 11 uses a newer version of the WSL2 architecture with stricter security boundaries. If the system updates while WSL is running, or if fast startup leaves kernel drivers in a suspended state, permission locks can persist across reboots, triggering this specific chdir failure.

Can I fix this without reinstalling Kali?

In rare cases, simply restarting the WslSvc service in Windows Services might release the lock. However, this is temporary and unreliable. If the root filesystem is corrupted, uninstalling and reinstalling is the only guaranteed fix.

How do I check if WSL is fully updated?

You can check the current version by running wsl --version in PowerShell. To ensure you have the latest kernel and components, run wsl --update. Keeping WSL updated helps prevent compatibility issues with newer Windows builds.

What if the reinstall also fails with the same error?

If the fresh install fails, the issue likely lies with the WSL host environment rather than the Kali distribution itself. Check for pending Windows Updates, ensure Hyper-V is enabled, and verify that your BIOS settings allow for virtualization extensions (VT-x/AMD-V).

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More