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