Finally Solved: Ubuntu Linux Error on Windows 11 or Win10

Finally I found the solution to this Ubuntu/Bash error on Win11/Windows 10 or 11

  • When I tried to install Wsl 2.0 and Ubuntu’s diff versions on my PC, the Ubuntu installation/configuration screen continued to give this error:
    “an error occurred mounting one of your file systems. please run ‘dmesg’ for more details.”
    I tried many reboots, installations, uninstallations, but it didn’t work. Also, running ‘dmesg’ gave so long output and so many error msgs, that it was useless to me.

  • Another time, on Windows11, I found some requirements regarding Secure Boot, Trusted Platform Module and Hyper-V machine settings.

  • To solve this, you’ve to enable ‘Secure Boot’ and ‘Trusted Platform Module’ from your motherboard bios settings. (Today I won’t go into details as to where you can find those 2 settings under different brands of motherboards, for that you’d have to tell me your motherboard model and I’d try to search that for you from internet). My board is/was Gigabyte H310 M2. Remember that you may have to go to your bios settings twice to make sure that both settings are properly set. Because I’ve found a warning by board bios that I’d have to enter bios settings again to turn of ‘TPM’ again (won’t go into its logic, but there IS one logic/requirement for this two time going).

  • And 2nd, under Windows10 or 11, you’d have to run ‘optionalfeatures’ command (thru run dialouge) and see that the following options are enabled (don’t enable strange looking any other option, particularly that start with ‘Hyp’:

  • You have perhaps noted that I’ve not enabled ‘Windows Hypervisor Platform’. Although many articles on google instruct to enable this also.

  • Also make sure that when running Ubuntu windows app the first time, you may need to run it as an admin. Windows11 is particularly finicky about security. 90% of my apps now run only when I run them ‘As Admin’ under Windows11.

#Ubuntu
#Bash
#Errors

1 Like

The below given solution was tested by me 1-2 years earlier, on Windows10:

  • When I tried to install Wsl 2.0 and Ubuntu’s diff versions on my PC, the Ubuntu installation/configuration screen continued to give this error:
    “an error occurred mounting one of your file systems. please run ‘dmesg’ for more details.”
    I tried many reboots, installations, uninstallations, but it didn’t work. Also, running ‘dmesg’ gave so long output and so many error msgs, that it was useless to me.

  • Google produced a few results, but they were mainly woes only. Users who’re in the same boat as I was, with the bank no where in sight.

  • My PC was HP 8100 Elite Tower PC, with Windows 11 build 22000.434 on it.
    I didn’t have any special windows configurations, no encrypted drives, nothing. Just 3 normal Ntfs partitions. Initial/Required by windows, 1gb System drive was hidden stripped of any drive letter. Also my motherboard doesn’t have any special settings, nor does it offer to configure any Intel Hyper threading related capabilities.

  • When problem was there, then Windows System info by running msinfo32.exe showed these:

  • And when everything worked ok, this system info showed like this:

  • Without going into what other google solutions I tried, I’d like to go to the solution I found, straightway: As far as I think, my problem was resolved when I uninstalled this window component/feature from the control panel: ‘Windows Hypervisor Platform’. Even without a reboot, my Ubuntu installations (all the 3 versions I tried) started to work ok. [I’m afraid though, if reboot could pose any new problem!! I’ll report if there was any new problem after a restart here]

  • This is the list of installed windows components, when my bash/ubuntu started to work ok:

  • Though I’d recommend to uninstall and install your Ubuntu apps once, after you uninstall this Hypervisor Platform.

  • Also perhaps, when running Ubuntu windows app the first time, perhaps we should/could run it as an admin.

  • Earlier I had these 4 things/windows components selected/installed: Windows Hypervisor Platform, Windows Power-shell 2.0, Windows Subsystem for Linux and also Hyper-V.

  • And/Although when even Hypervisor and Virtual Machine Platform both were unselected, then all last given 4-5 options (beginning with the word ‘virtual…’) of SysInfo showed ‘yes’, which though looked good, but didn’t work.

To install Ubuntu and all its windows steps with just one windows command, just run this single command in the command prompt or PowerShell: wsl --install. This command will enable the required optional components, download the latest Linux kernel, set WSL 2 as your default, and install a Linux distribution for you (Ubuntu by default, see below to change this) .

But, if you’ve already enabled the WSL/Linux Subsystem, then you’ll have to run wsl --install -d <DistroName> (to see the available distributions, you can run this command wsl --list --online. Told in this MS article.

#Ubuntu
#Bash
#Errors

If anyone doesn’t want to read the full post given above, he can just read this summary: go to Windows Control Panel> Add Remove (Windows) Programs> Windows Features (/components)> Uninstall ‘Windows Hypervisor Platform’ from here.

And that’s it.

1 Like