microsoft / WSL

Issues found on WSL
https://docs.microsoft.com/windows/wsl
MIT License
17.45k stars 821 forks source link

WSL2 keeps trying (and fails) to mount ESP partition #9122

Closed Timelessprod closed 1 year ago

Timelessprod commented 2 years ago

Version

10.0.22621.755

WSL Version

Kernel Version

5.15.68.1-microsoft-standard-WSL2

Distro Version

20.04

Other Software

No response

Repro Steps

Drive context

I have a single 1TB NVMe SSD drive whith only Windows installed into it. When going to the disk management of my drive, I have 6 partitions :

Only the C:\ partition has a letter, but when opening Windows Explorer, I can see a F:\ partition of 146 MB (47.5 MB used) for which the access is denied.

Windows and WSL context

I installed WSL2 back when I had Windows 10 with a Ubuntu 20.04 distro. Recently I upgraded to Windows 11 and then run wsl.exe --update on Powershell as recommended.

Expected Behavior

WSL2 should start as usual without any modification of its behavior. It should not be able to see this partition or trying to mount it.

Actual Behavior

Every time I start a new terminal with WSL, I got a Failed to mount F:\, see dmesg for more details. before the first prompt. I also noticed that the /etc/resolv.conf was corrupted and I had to manually reset it to 8.8.8.8 and disable again its autogenerating at startup (https://github.com/microsoft/WSL/issues/5420#issuecomment-645208552).

Here is the output of ls -la /mnt:

total 24
drwxr-xr-x  9 root   root   4096 Nov  4 12:59 .
drwxr-xr-x 19 root   root   4096 Nov  5 18:18 ..
drwxrwxrwx  1 adrien adrien  512 Nov  4 15:32 c
drwxrwxrwx  2 root   root   4096 Feb 27  2022 d
drwxrwxrwx  2 root   root   4096 Feb 13  2022 e
drwxrwxrwx  2 root   root   4096 Feb 13  2022 f
drwxrwxrwx  2 root   root   4096 Feb 26  2022 h
drwxrwxrwt  2 root   root     60 Nov  5 18:18 wsl
drwxrwxrwt  7 root   root    280 Nov  5 18:18 wslg

I didn't find any workaround to fix this. Unmounting the drive is not possible as it has fail to mount. I don't know what are those other directories d, e, h.

Diagnostic Logs

Content of the dmesg:

[    0.000000] Linux version 5.15.68.1-microsoft-standard-WSL2 (oe-user@oe-host) (x86_64-msft-linux-gcc (GCC) 9.3.0, GNU ld (GNU Binutils) 2.34.0.20200220) #1 SMP Mon Sep 19 19:14:52 UTC 2022
[    0.000000] Command line: initrd=\initrd.img WSL_ROOT_INIT=1 panic=-1 nr_cpus=16 swiotlb=force console=hvc0 debug pty.legacy_count=0
[    0.000000] KERNEL supported cpus:
[    0.000000]   Intel GenuineIntel
[    0.000000]   AMD AuthenticAMD
[    0.000000]   Centaur CentaurHauls
[    0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
[    0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
[    0.000000] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
[    0.000000] x86/fpu: xstate_offset[2]:  576, xstate_sizes[2]:  256
[    0.000000] x86/fpu: Enabled xstate features 0x7, context size is 832 bytes, using 'compacted' format.
[    0.000000] signal: max sigframe size: 1776
[    0.000000] BIOS-provided physical RAM map:
[    0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009ffff] usable
[    0.000000] BIOS-e820: [mem 0x00000000000e0000-0x00000000000e0fff] reserved
[    0.000000] BIOS-e820: [mem 0x0000000000100000-0x00000000001fffff] ACPI data
[    0.000000] BIOS-e820: [mem 0x0000000000200000-0x00000000f7ffffff] usable
[    0.000000] BIOS-e820: [mem 0x0000000100000000-0x00000003ffffffff] usable
[    0.000000] NX (Execute Disable) protection: active
[    0.000000] DMI not present or invalid.
[    0.000000] Hypervisor detected: Microsoft Hyper-V
[    0.000000] Hyper-V: privilege flags low 0x2e7f, high 0x3b8030, hints 0xa4e24, misc 0xe4bed7b6
[    0.000000] Hyper-V Host Build:22621-10.0-0-0.755
[    0.000000] Hyper-V: Nested features: 0x3e0101
[    0.000000] Hyper-V: LAPIC Timer Frequency: 0x1e8480
[    0.000000] Hyper-V: Using hypercall for remote TLB flush
[    0.000000] clocksource: hyperv_clocksource_tsc_page: mask: 0xffffffffffffffff max_cycles: 0x24e6a1710, max_idle_ns: 440795202120 ns
[    0.000001] tsc: Marking TSC unstable due to running on Hyper-V
[    0.000003] tsc: Detected 2304.007 MHz processor
[    0.000020] e820: update [mem 0x00000000-0x00000fff] usable ==> reserved
[    0.000022] e820: remove [mem 0x000a0000-0x000fffff] usable
[    0.000025] last_pfn = 0x400000 max_arch_pfn = 0x400000000
[    0.000054] x86/PAT: Configuration [0-7]: WB  WC  UC- UC  WB  WP  UC- WT
[    0.000063] last_pfn = 0xf8000 max_arch_pfn = 0x400000000
[    0.000077] Using GB pages for direct mapping
[    0.000388] RAMDISK: [mem 0x03a35000-0x03c0dfff]
[    0.000391] ACPI: Early table checksum verification disabled
[    0.000405] ACPI: RSDP 0x00000000000E0000 000024 (v02 VRTUAL)
[    0.000408] ACPI: XSDT 0x0000000000100000 000044 (v01 VRTUAL MICROSFT 00000001 MSFT 00000001)
[    0.000413] ACPI: FACP 0x0000000000101000 000114 (v06 VRTUAL MICROSFT 00000001 MSFT 00000001)
[    0.000418] ACPI: DSDT 0x00000000001011B8 01E191 (v02 MSFTVM DSDT01   00000001 MSFT 05000000)
[    0.000421] ACPI: FACS 0x0000000000101114 000040
[    0.000424] ACPI: OEM0 0x0000000000101154 000064 (v01 VRTUAL MICROSFT 00000001 MSFT 00000001)
[    0.000427] ACPI: SRAT 0x000000000011F349 0003B0 (v02 VRTUAL MICROSFT 00000001 MSFT 00000001)
[    0.000432] ACPI: APIC 0x000000000011F6F9 0000C8 (v04 VRTUAL MICROSFT 00000001 MSFT 00000001)
[    0.000434] ACPI: Reserving FACP table memory at [mem 0x101000-0x101113]
[    0.000435] ACPI: Reserving DSDT table memory at [mem 0x1011b8-0x11f348]
[    0.000436] ACPI: Reserving FACS table memory at [mem 0x101114-0x101153]
[    0.000437] ACPI: Reserving OEM0 table memory at [mem 0x101154-0x1011b7]
[    0.000438] ACPI: Reserving SRAT table memory at [mem 0x11f349-0x11f6f8]
[    0.000439] ACPI: Reserving APIC table memory at [mem 0x11f6f9-0x11f7c0]
[    0.000665] Zone ranges:
[    0.000667]   DMA      [mem 0x0000000000001000-0x0000000000ffffff]
[    0.000671]   DMA32    [mem 0x0000000001000000-0x00000000ffffffff]
[    0.000674]   Normal   [mem 0x0000000100000000-0x00000003ffffffff]
[    0.000675]   Device   empty
[    0.000676] Movable zone start for each node
[    0.000677] Early memory node ranges
[    0.000677]   node   0: [mem 0x0000000000001000-0x000000000009ffff]
[    0.000679]   node   0: [mem 0x0000000000200000-0x00000000f7ffffff]
[    0.000680]   node   0: [mem 0x0000000100000000-0x00000003ffffffff]
[    0.000682] Initmem setup node 0 [mem 0x0000000000001000-0x00000003ffffffff]
[    0.000873] On node 0, zone DMA: 1 pages in unavailable ranges
[    0.000902] On node 0, zone DMA: 352 pages in unavailable ranges
[    0.015079] ACPI: LAPIC_NMI (acpi_id[0x01] dfl dfl lint[0x1])
[    0.015370] IOAPIC[0]: apic_id 16, version 17, address 0xfec00000, GSI 0-23
[    0.015374] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
[    0.015379] ACPI: Using ACPI (MADT) for SMP configuration information
[    0.015380] smpboot: Allowing 16 CPUs, 0 hotplug CPUs
[    0.015389] [mem 0xf8000000-0xffffffff] available for PCI devices
[    0.015391] Booting paravirtualized kernel on Hyper-V
[    0.015393] clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.020586] setup_percpu: NR_CPUS:256 nr_cpumask_bits:256 nr_cpu_ids:16 nr_node_ids:1
[    0.021253] percpu: Embedded 53 pages/cpu s177496 r8192 d31400 u262144
[    0.021259] pcpu-alloc: s177496 r8192 d31400 u262144 alloc=1*2097152
[    0.021262] pcpu-alloc: [0] 00 01 02 03 04 05 06 07 [0] 08 09 10 11 12 13 14 15
[    0.021276] Hyper-V: PV spinlocks enabled
[    0.021278] PV qspinlock hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.021283] Built 1 zonelists, mobility grouping on.  Total pages: 4095493
[    0.021288] Kernel command line: initrd=\initrd.img WSL_ROOT_INIT=1 panic=-1 nr_cpus=16 swiotlb=force console=hvc0 debug pty.legacy_count=0
[    0.021367] Unknown kernel command line parameters "WSL_ROOT_INIT=1", will be passed to user space.
[    0.023703] Dentry cache hash table entries: 2097152 (order: 12, 16777216 bytes, linear)
[    0.024808] Inode-cache hash table entries: 1048576 (order: 11, 8388608 bytes, linear)
[    0.025012] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.052080] Memory: 4081508K/16644732K available (18452K kernel code, 2626K rwdata, 9756K rodata, 2024K init, 1888K bss, 400020K reserved, 0K cma-reserved)
[    0.052133] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=16, Nodes=1
[    0.052144] ftrace: allocating 54560 entries in 214 pages
[    0.072950] ftrace: allocated 214 pages with 5 groups
[    0.073227] rcu: Hierarchical RCU implementation.
[    0.073229] rcu:     RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=16.
[    0.073230]  Rude variant of Tasks RCU enabled.
[    0.073231]  Tracing variant of Tasks RCU enabled.
[    0.073231] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.073232] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=16
[    0.076780] Using NULL legacy PIC
[    0.076782] NR_IRQS: 16640, nr_irqs: 552, preallocated irqs: 0
[    0.077101] random: crng init done
[    0.077122] Console: colour dummy device 80x25
[    0.077138] ACPI: Core revision 20210730
[    0.077219] Failed to register legacy timer interrupt
[    0.077221] APIC: Switch to symmetric I/O mode setup
[    0.079194] x2apic enabled
[    0.081223] Switched APIC routing to physical x2apic.
[    0.081253] Hyper-V: Using IPI hypercalls
[    0.081332] Calibrating delay loop (skipped), value calculated using timer frequency.. 4608.01 BogoMIPS (lpj=23040070)
[    0.081336] pid_max: default: 32768 minimum: 301
[    0.081355] LSM: Security Framework initializing
[    0.081362] landlock: Up and running.
[    0.081417] Mount-cache hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.081466] Mountpoint-cache hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.081761] Last level iTLB entries: 4KB 64, 2MB 8, 4MB 8
[    0.081764] Last level dTLB entries: 4KB 64, 2MB 0, 4MB 0, 1GB 4
[    0.081768] Spectre V1 : Mitigation: usercopy/swapgs barriers and __user pointer sanitization
[    0.081769] Spectre V2 : Mitigation: Enhanced IBRS
[    0.081770] Spectre V2 : Spectre v2 / SpectreRSB mitigation: Filling RSB on context switch
[    0.081770] Spectre V2 : Spectre v2 / PBRSB-eIBRS: Retire a single CALL on VMEXIT
[    0.081771] RETBleed: Mitigation: Enhanced IBRS
[    0.081772] Spectre V2 : mitigation: Enabling conditional Indirect Branch Prediction Barrier
[    0.081773] Speculative Store Bypass: Mitigation: Speculative Store Bypass disabled via prctl and seccomp
[    0.081777] MMIO Stale Data: Vulnerable: Clear CPU buffers attempted, no microcode
[    0.081778] SRBDS: Unknown: Dependent on hypervisor status
[    0.091328] Freeing SMP alternatives memory: 56K
[    0.091328] smpboot: CPU0: Intel(R) Core(TM) i7-10875H CPU @ 2.30GHz (family: 0x6, model: 0xa5, stepping: 0x2)
[    0.091328] Performance Events: Skylake events, 32-deep LBR, full-width counters, Intel PMU driver.
[    0.091328] ... version:                4
[    0.091328] ... bit width:              48
[    0.091328] ... generic registers:      4
[    0.091328] ... value mask:             0000ffffffffffff
[    0.091328] ... max period:             00007fffffffffff
[    0.091328] ... fixed-purpose events:   3
[    0.091328] ... event mask:             000000070000000f
[    0.091328] rcu: Hierarchical SRCU implementation.
[    0.091328] smp: Bringing up secondary CPUs ...
[    0.091328] x86: Booting SMP configuration:
[    0.091328] .... node  #0, CPUs:        #1
[    0.091328] MMIO Stale Data CPU bug present and SMT on, data leak possible. See https://www.kernel.org/doc/html/latest/admin-guide/hw-vuln/processor_mmio_stale_data.html for more details.
[    0.091328]   #2  #3  #4  #5  #6  #7  #8  #9 #10 #11 #12 #13 #14 #15
[    0.091651] smp: Brought up 1 node, 16 CPUs
[    0.091655] smpboot: Max logical packages: 1
[    0.091656] smpboot: Total of 16 processors activated (73728.22 BogoMIPS)
[    0.111376] node 0 deferred pages initialised in 20ms
[    0.113125] devtmpfs: initialized
[    0.113125] x86/mm: Memory block size: 128MB
[    0.113125] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.113125] futex hash table entries: 4096 (order: 6, 262144 bytes, linear)
[    0.113125] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.113125] thermal_sys: Registered thermal governor 'step_wise'
[    0.113125] cpuidle: using governor menu
[    0.113125] ACPI: bus type PCI registered
[    0.113125] PCI: Fatal: No config space access function found
[    0.113125] Kprobes globally optimized
[    0.113125] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
[    0.113125] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[    0.121368] raid6: skip pq benchmark and using algorithm avx2x4
[    0.121368] raid6: using avx2x2 recovery algorithm
[    0.121368] ACPI: Added _OSI(Module Device)
[    0.121369] ACPI: Added _OSI(Processor Device)
[    0.121370] ACPI: Added _OSI(3.0 _SCP Extensions)
[    0.121371] ACPI: Added _OSI(Processor Aggregator Device)
[    0.121371] ACPI: Added _OSI(Linux-Dell-Video)
[    0.121372] ACPI: Added _OSI(Linux-Lenovo-NV-HDMI-Audio)
[    0.121373] ACPI: Added _OSI(Linux-HPI-Hybrid-Graphics)
[    0.124693] ACPI: 1 ACPI AML tables successfully acquired and loaded
[    0.125673] ACPI: Interpreter enabled
[    0.125673] ACPI: PM: (supports S0 S5)
[    0.125673] ACPI: Using IOAPIC for interrupt routing
[    0.125673] PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug
[    0.125673] ACPI: Enabled 2 GPEs in block 00 to 0F
[    0.125673] iommu: Default domain type: Translated
[    0.125673] iommu: DMA domain TLB invalidation policy: lazy mode
[    0.125673] SCSI subsystem initialized
[    0.125673] ACPI: bus type USB registered
[    0.125673] usbcore: registered new interface driver usbfs
[    0.125673] usbcore: registered new interface driver hub
[    0.125673] usbcore: registered new device driver usb
[    0.125673] pps_core: LinuxPPS API ver. 1 registered
[    0.125673] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.125673] PTP clock support registered
[    0.131366] hv_vmbus: Vmbus version:5.3
[    0.131428] PCI: Using ACPI for IRQ routing
[    0.131430] PCI: System does not support PCI
[    0.131388] hv_vmbus: Unknown GUID: c376c1c3-d276-48d2-90a9-c04748072c60
[    0.131697] clocksource: Switched to clocksource hyperv_clocksource_tsc_page
[    0.131647] hv_vmbus: Unknown GUID: 6e382d18-3336-4f4b-acc4-2b7703d4df4a
[    0.131676] hv_vmbus: Unknown GUID: dde9cbc0-5060-4436-9448-ea1254a5d177
[    0.141100] VFS: Disk quotas dquot_6.6.0
[    0.141112] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.141123] FS-Cache: Loaded
[    0.141139] pnp: PnP ACPI init
[    0.141276] pnp: PnP ACPI: found 1 devices
[    0.147804] NET: Registered PF_INET protocol family
[    0.148244] IP idents hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[    0.149409] tcp_listen_portaddr_hash hash table entries: 8192 (order: 5, 131072 bytes, linear)
[    0.149420] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.149423] TCP established hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[    0.149858] TCP bind hash table entries: 65536 (order: 8, 1048576 bytes, linear)
[    0.149950] TCP: Hash tables configured (established 131072 bind 65536)
[    0.149976] UDP hash table entries: 8192 (order: 6, 262144 bytes, linear)
[    0.150005] UDP-Lite hash table entries: 8192 (order: 6, 262144 bytes, linear)
[    0.150261] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.150648] RPC: Registered named UNIX socket transport module.
[    0.150650] RPC: Registered udp transport module.
[    0.150651] RPC: Registered tcp transport module.
[    0.150652] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.150657] PCI: CLS 0 bytes, default 64
[    0.150677] PCI-DMA: Using software bounce buffering for IO (SWIOTLB)
[    0.150678] software IO TLB: mapped [mem 0x00000000f4000000-0x00000000f8000000] (64MB)
[    0.150714] KVM: vmx: using Hyper-V Enlightened VMCS
[    0.150718] Trying to unpack rootfs image as initramfs...
[    0.151970] Freeing initrd memory: 1892K
[    0.342453] kvm: already loaded the other module
[    0.344147] Initialise system trusted keyrings
[    0.344241] workingset: timestamp_bits=46 max_order=22 bucket_order=0
[    0.344913] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.345066] NFS: Registering the id_resolver key type
[    0.345070] Key type id_resolver registered
[    0.345071] Key type id_legacy registered
[    0.345073] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.345078] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    0.345079] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.345865] Key type cifs.idmap registered
[    0.345922] fuse: init (API version 7.34)
[    0.346058] SGI XFS with ACLs, security attributes, realtime, scrub, repair, quota, no debug enabled
[    0.346333] 9p: Installing v9fs 9p2000 file system support
[    0.346340] FS-Cache: Netfs '9p' registered for caching
[    0.346372] FS-Cache: Netfs 'ceph' registered for caching
[    0.346373] ceph: loaded (mds proto 32)
[    0.351951] NET: Registered PF_ALG protocol family
[    0.351953] xor: automatically using best checksumming function   avx
[    0.351954] Key type asymmetric registered
[    0.351955] Asymmetric key parser 'x509' registered
[    0.351972] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.352659] hv_vmbus: registering driver hv_pci
[    0.352922] hv_pci 464f1bb5-737f-439f-8b65-b388e9f0c0fd: PCI VMBus probing: Using version 0x10004
[    0.353788] hv_pci 464f1bb5-737f-439f-8b65-b388e9f0c0fd: PCI host bridge to bus 737f:00
[    0.353790] pci_bus 737f:00: root bus resource [mem 0x9ffe00000-0x9ffe02fff window]
[    0.353791] pci_bus 737f:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.354563] pci 737f:00:00.0: [1af4:1043] type 00 class 0x010000
[    0.355490] pci 737f:00:00.0: reg 0x10: [mem 0x9ffe00000-0x9ffe00fff 64bit]
[    0.356070] pci 737f:00:00.0: reg 0x18: [mem 0x9ffe01000-0x9ffe01fff 64bit]
[    0.356622] pci 737f:00:00.0: reg 0x20: [mem 0x9ffe02000-0x9ffe02fff 64bit]
[    0.359436] pci_bus 737f:00: busn_res: [bus 00-ff] end is updated to 00
[    0.359440] pci 737f:00:00.0: BAR 0: assigned [mem 0x9ffe00000-0x9ffe00fff 64bit]
[    0.359801] pci 737f:00:00.0: BAR 2: assigned [mem 0x9ffe01000-0x9ffe01fff 64bit]
[    0.360209] pci 737f:00:00.0: BAR 4: assigned [mem 0x9ffe02000-0x9ffe02fff 64bit]
[    0.360810] hv_pci dc0c910b-ae31-4d5e-bc4f-254745e8a59e: PCI VMBus probing: Using version 0x10004
[    0.361533] hv_pci dc0c910b-ae31-4d5e-bc4f-254745e8a59e: PCI host bridge to bus ae31:00
[    0.361534] pci_bus ae31:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.361869] pci ae31:00:00.0: [1414:008e] type 00 class 0x030200
[    0.365919] pci_bus ae31:00: busn_res: [bus 00-ff] end is updated to 00
[    0.366036] ACPI: AC: AC Adapter [AC1] (on-line)
[    0.367103] ACPI: battery: Slot [BAT1] (battery present)
[    0.369981] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    0.407818] Non-volatile memory driver v1.3
[    0.408372] [drm] Initialized vgem 1.0.0 20120112 for vgem on minor 0
[    0.410288] printk: console [hvc0] enabled
[    0.414708] brd: module loaded
[    0.415862] loop: module loaded
[    0.416267] hv_vmbus: registering driver hv_storvsc
[    0.417378] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[    0.417904] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[    0.418660] tun: Universal TUN/TAP device driver, 1.6
[    0.419177] scsi host0: storvsc_host_t
[    0.419180] PPP generic driver version 2.4.2
[    0.419958] PPP BSD Compression module registered
[    0.420246] PPP Deflate Compression module registered
[    0.420517] PPP MPPE Compression module registered
[    0.420804] NET: Registered PF_PPPOX protocol family
[    0.421105] usbcore: registered new interface driver cdc_ether
[    0.421488] usbcore: registered new interface driver cdc_ncm
[    0.421820] usbcore: registered new interface driver r8153_ecm
[    0.422147] hv_vmbus: registering driver hv_netvsc
[    0.422519] VFIO - User Level meta-driver version: 0.3
[    0.422927] usbcore: registered new interface driver cdc_acm
[    0.423263] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[    0.423678] usbcore: registered new interface driver ch341
[    0.423965] usbserial: USB Serial support registered for ch341-uart
[    0.424301] usbcore: registered new interface driver cp210x
[    0.424578] usbserial: USB Serial support registered for cp210x
[    0.424919] usbcore: registered new interface driver ftdi_sio
[    0.425252] usbserial: USB Serial support registered for FTDI USB Serial Device
[    0.425768] vhci_hcd vhci_hcd.0: USB/IP Virtual Host Controller
[    0.426124] vhci_hcd vhci_hcd.0: new USB bus registered, assigned bus number 1
[    0.426531] vhci_hcd: created sysfs vhci_hcd.0
[    0.427115] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.15
[    0.427672] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.428227] usb usb1: Product: USB/IP Virtual Host Controller
[    0.428554] usb usb1: Manufacturer: Linux 5.15.68.1-microsoft-standard-WSL2 vhci_hcd
[    0.428953] usb usb1: SerialNumber: vhci_hcd.0
[    0.429334] hub 1-0:1.0: USB hub found
[    0.429564] hub 1-0:1.0: 8 ports detected
[    0.430034] vhci_hcd vhci_hcd.0: USB/IP Virtual Host Controller
[    0.430449] vhci_hcd vhci_hcd.0: new USB bus registered, assigned bus number 2
[    0.430942] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    0.431532] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.15
[    0.431931] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.432311] usb usb2: Product: USB/IP Virtual Host Controller
[    0.432627] usb usb2: Manufacturer: Linux 5.15.68.1-microsoft-standard-WSL2 vhci_hcd
[    0.433005] usb usb2: SerialNumber: vhci_hcd.0
[    0.433372] hub 2-0:1.0: USB hub found
[    0.433611] hub 2-0:1.0: 8 ports detected
[    0.434058] hv_vmbus: registering driver hyperv_keyboard
[    0.434455] rtc_cmos 00:00: RTC can wake from S4
[    0.436388] rtc_cmos 00:00: registered as rtc0
[    0.436969] rtc_cmos 00:00: setting system clock to 2022-11-05T16:51:00 UTC (1667667060)
[    0.437438] rtc_cmos 00:00: alarms up to one month, 114 bytes nvram
[    0.438097] device-mapper: ioctl: 4.45.0-ioctl (2021-03-22) initialised: dm-devel@redhat.com
[    0.439114] device-mapper: raid: Loading target version 1.15.1
[    0.439649] usbcore: registered new interface driver usbhid
[    0.439916] usbhid: USB HID core driver
[    0.440179] hv_utils: Registering HyperV Utility Driver
[    0.440488] hv_vmbus: registering driver hv_utils
[    0.440791] hv_vmbus: registering driver hv_balloon
[    0.441171] hv_vmbus: registering driver dxgkrnl
[    0.441276] hv_utils: TimeSync IC version 4.0
[    0.442124] hv_balloon: Using Dynamic Memory protocol version 2.0
[    0.442366] drop_monitor: Initializing network drop monitor service
[    0.443231] Mirror/redirect action on
[    0.443533] u32 classifier
[    0.443610] Free page reporting enabled
[    0.443731]     Performance counters on
[    0.443978] hv_balloon: Cold memory discard hint enabled
[    0.444199]     input device check on
[    0.444696]     Actions configured
[    0.445679] IPVS: Registered protocols (TCP, UDP)
[    0.445966] IPVS: Connection hash table configured (size=4096, memory=32Kbytes)
[    0.446379] IPVS: ipvs loaded.
[    0.446574] IPVS: [rr] scheduler registered.
[    0.446835] IPVS: [wrr] scheduler registered.
[    0.447097] IPVS: [sh] scheduler registered.
[    0.447373] ipip: IPv4 and MPLS over IPv4 tunneling driver
[    0.447696] ipt_CLUSTERIP: ClusterIP Version 0.8 loaded successfully
[    0.448028] Initializing XFRM netlink socket
[    0.448322] NET: Registered PF_INET6 protocol family
[    0.448935] Segment Routing with IPv6
[    0.449149] In-situ OAM (IOAM) with IPv6
[    0.449415] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    0.449837] NET: Registered PF_PACKET protocol family
[    0.450125] Bridge firewalling registered
[    0.450323] 8021q: 802.1Q VLAN Support v1.8
[    0.450533] sctp: Hash tables configured (bind 256/256)
[    0.450828] 9pnet: Installing 9P2000 support
[    0.451094] Key type dns_resolver registered
[    0.451398] Key type ceph registered
[    0.451725] libceph: loaded (mon/osd proto 15/24)
[    0.452070] NET: Registered PF_VSOCK protocol family
[    0.452337] hv_vmbus: registering driver hv_sock
[    0.452629] IPI shorthand broadcast: enabled
[    0.452896] sched_clock: Marking stable (447816600, 4241400)->(469733900, -17675900)
[    0.453804] registered taskstats version 1
[    0.454689] Loading compiled-in X.509 certificates
[    0.455950] Btrfs loaded, crc32c=crc32c-generic, zoned=no, fsverity=no
[    0.457182] Freeing unused kernel image (initmem) memory: 2024K
[    0.501542] Write protecting the kernel read-only data: 30720k
[    0.503447] Freeing unused kernel image (text/rodata gap) memory: 2024K
[    0.504535] Freeing unused kernel image (rodata/data gap) memory: 484K
[    0.505470] Run /init as init process
[    0.505661]   with arguments:
[    0.505849]     /init
[    0.505971]   with environment:
[    0.506164]     HOME=/
[    0.506289]     TERM=linux
[    0.506443]     WSL_ROOT_INIT=1
[    1.183990] hv_vmbus: Unknown GUID: 6e382d18-3336-4f4b-acc4-2b7703d4df4a
[    1.185752] hv_pci 1ff2872b-f42c-4e96-bdf2-4bfe254623cc: PCI VMBus probing: Using version 0x10004
[    1.188123] hv_pci 1ff2872b-f42c-4e96-bdf2-4bfe254623cc: PCI host bridge to bus f42c:00
[    1.188956] pci_bus f42c:00: No busn resource found for root bus, will use [bus 00-ff]
[    1.190420] pci f42c:00:00.0: [1414:008e] type 00 class 0x030200
[    1.196369] pci_bus f42c:00: busn_res: [bus 00-ff] end is updated to 00
[    1.197344] scsi 0:0:0:0: Direct-Access     Msft     Virtual Disk     1.0  PQ: 0 ANSI: 5
[    1.198709] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    1.200082] sd 0:0:0:0: [sda] 748624 512-byte logical blocks: (383 MB/366 MiB)
[    1.200739] sd 0:0:0:0: [sda] Write Protect is on
[    1.201070] sd 0:0:0:0: [sda] Mode Sense: 0f 00 80 00
[    1.201817] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    1.261605] hv_pci f8f0300b-b17d-4f7b-a5e3-8c6d2109c936: PCI VMBus probing: Using version 0x10004
[    1.263443] hv_pci f8f0300b-b17d-4f7b-a5e3-8c6d2109c936: PCI host bridge to bus b17d:00
[    1.264321] pci_bus b17d:00: root bus resource [mem 0x9ffe04000-0x9ffe06fff window]
[    1.264802] pci_bus b17d:00: No busn resource found for root bus, will use [bus 00-ff]
[    1.266132] pci b17d:00:00.0: [1af4:1049] type 00 class 0x010000
[    1.267311] pci b17d:00:00.0: reg 0x10: [mem 0x9ffe04000-0x9ffe04fff 64bit]
[    1.268216] pci b17d:00:00.0: reg 0x18: [mem 0x9ffe05000-0x9ffe05fff 64bit]
[    1.269193] pci b17d:00:00.0: reg 0x20: [mem 0x9ffe06000-0x9ffe06fff 64bit]
[    1.273689] pci_bus b17d:00: busn_res: [bus 00-ff] end is updated to 00
[    1.274086] pci b17d:00:00.0: BAR 0: assigned [mem 0x9ffe04000-0x9ffe04fff 64bit]
[    1.274882] pci b17d:00:00.0: BAR 2: assigned [mem 0x9ffe05000-0x9ffe05fff 64bit]
[    1.275677] pci b17d:00:00.0: BAR 4: assigned [mem 0x9ffe06000-0x9ffe06fff 64bit]
[    1.802595] EXT4-fs (sda): mounted filesystem without journal. Opts: (null). Quota mode: none.
[    1.955362] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[    2.001823] sd 0:0:0:0: [sda] Attached SCSI disk
[    2.018905] hv_pci d4e13326-1169-42a2-b12c-af42fe8ee5ff: PCI VMBus probing: Using version 0x10004
[    2.023345] hv_pci d4e13326-1169-42a2-b12c-af42fe8ee5ff: PCI host bridge to bus 1169:00
[    2.024541] pci_bus 1169:00: root bus resource [mem 0xc00000000-0xe00001fff window]
[    2.025263] pci_bus 1169:00: No busn resource found for root bus, will use [bus 00-ff]
[    2.026902] pci 1169:00:00.0: [1af4:105a] type 00 class 0x088000
[    2.029477] pci 1169:00:00.0: reg 0x10: [mem 0xe00000000-0xe00000fff 64bit]
[    2.032176] pci 1169:00:00.0: reg 0x18: [mem 0xe00001000-0xe00001fff 64bit]
[    2.034606] pci 1169:00:00.0: reg 0x20: [mem 0xc00000000-0xdffffffff 64bit]
[    2.040361] pci_bus 1169:00: busn_res: [bus 00-ff] end is updated to 00
[    2.040944] pci 1169:00:00.0: BAR 4: assigned [mem 0xc00000000-0xdffffffff 64bit]
[    2.043375] pci 1169:00:00.0: BAR 0: assigned [mem 0xe00000000-0xe00000fff 64bit]
[    2.045706] pci 1169:00:00.0: BAR 2: assigned [mem 0xe00001000-0xe00001fff 64bit]
[    2.062880] virtiofs virtio2: Cache len: 0x200000000 @ 0xc00000000
[    2.146215] memmap_init_zone_device initialised 2097152 pages in 20ms
[    2.155562] FS-Cache: Duplicate cookie detected
[    2.156004] FS-Cache: O-cookie c=00000004 [p=00000002 fl=222 nc=0 na=1]
[    2.156395] FS-Cache: O-cookie d=00000000aaf64b72{9P.session} n=00000000897b4716
[    2.157365] FS-Cache: O-key=[10] '34323934393337353034'
[    2.157733] FS-Cache: N-cookie c=00000005 [p=00000002 fl=2 nc=0 na=1]
[    2.158191] FS-Cache: N-cookie d=00000000aaf64b72{9P.session} n=00000000eadf09b8
[    2.159387] FS-Cache: N-key=[10] '34323934393337353034'
[    3.261851] scsi 0:0:0:1: Direct-Access     Msft     Virtual Disk     1.0  PQ: 0 ANSI: 5
[    3.264455] sd 0:0:0:1: Attached scsi generic sg1 type 0
[    3.266175] scsi 0:0:0:2: Direct-Access     Msft     Virtual Disk     1.0  PQ: 0 ANSI: 5
[    3.266774] sd 0:0:0:1: [sdb] 8388616 512-byte logical blocks: (4.29 GB/4.00 GiB)
[    3.268653] sd 0:0:0:2: Attached scsi generic sg2 type 0
[    3.268664] sd 0:0:0:1: [sdb] 4096-byte physical blocks
[    3.269810] sd 0:0:0:2: [sdc] 536870912 512-byte logical blocks: (275 GB/256 GiB)
[    3.269994] sd 0:0:0:1: [sdb] Write Protect is off
[    3.270831] sd 0:0:0:2: [sdc] 4096-byte physical blocks
[    3.271225] sd 0:0:0:1: [sdb] Mode Sense: 0f 00 00 00
[    3.271878] sd 0:0:0:2: [sdc] Write Protect is off
[    3.272402] sd 0:0:0:1: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    3.272613] sd 0:0:0:2: [sdc] Mode Sense: 0f 00 00 00
[    3.272894] sd 0:0:0:2: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    3.276245] sd 0:0:0:1: [sdb] Attached SCSI disk
[    3.277267] sd 0:0:0:2: [sdc] Attached SCSI disk
[    3.284483] EXT4-fs (sdc): mounted filesystem with ordered data mode. Opts: discard,errors=remount-ro,data=ordered. Quota mode: none.
[    3.321229] Adding 4194304k swap on /dev/sdb.  Priority:-2 extents:1 across:4194304k
[    3.635211] /sbin/ldconfig:
[    3.635214] /usr/lib/wsl/lib/libcuda.so.1 is not a symbolic link

[    3.789083] hv_pci a5af946c-3b28-487a-9937-c964a1a3eedf: PCI VMBus probing: Using version 0x10004
[    3.791521] 9pnet_virtio: no channels available for device drvfs
[    3.791986] hv_pci a5af946c-3b28-487a-9937-c964a1a3eedf: PCI host bridge to bus 3b28:00
[    3.792422] WSL (1) WARNING: mount: waiting for virtio device drvfs
[    3.792966] pci_bus 3b28:00: root bus resource [mem 0x9ffe08000-0x9ffe0afff window]
[    3.794202] pci_bus 3b28:00: No busn resource found for root bus, will use [bus 00-ff]
[    3.795824] pci 3b28:00:00.0: [1af4:1049] type 00 class 0x010000
[    3.797303] pci 3b28:00:00.0: reg 0x10: [mem 0x9ffe08000-0x9ffe08fff 64bit]
[    3.798332] pci 3b28:00:00.0: reg 0x18: [mem 0x9ffe09000-0x9ffe09fff 64bit]
[    3.799533] pci 3b28:00:00.0: reg 0x20: [mem 0x9ffe0a000-0x9ffe0afff 64bit]
[    3.803873] pci_bus 3b28:00: busn_res: [bus 00-ff] end is updated to 00
[    3.804276] pci 3b28:00:00.0: BAR 0: assigned [mem 0x9ffe08000-0x9ffe08fff 64bit]
[    3.805181] pci 3b28:00:00.0: BAR 2: assigned [mem 0x9ffe09000-0x9ffe09fff 64bit]
[    3.806210] pci 3b28:00:00.0: BAR 4: assigned [mem 0x9ffe0a000-0x9ffe0afff 64bit]
[    3.900095] hv_pci 9de2d3aa-d16a-4b55-b1c8-c1ce232ffffa: PCI VMBus probing: Using version 0x10004
[    3.901276] WSL (1) ERROR: MountWithRetry:306: mount(drvfs, /mnt/f, 9p, 0x00000400, cache=mmap,msize=262144,trans=virtio,aname=drvfs;path=F:\;uid=1000;gid=1000;symlinkroot=/mnt/
[    3.901620] ) failed: Permission denied
[    3.904427] hv_pci 9de2d3aa-d16a-4b55-b1c8-c1ce232ffffa: PCI host bridge to bus d16a:00
[    3.905061] pci_bus d16a:00: root bus resource [mem 0x9ffe0c000-0x9ffe0efff window]
[    3.905462] pci_bus d16a:00: No busn resource found for root bus, will use [bus 00-ff]
[    3.906821] pci d16a:00:00.0: [1af4:1049] type 00 class 0x010000
[    3.908026] pci d16a:00:00.0: reg 0x10: [mem 0x9ffe0c000-0x9ffe0cfff 64bit]
[    3.908977] pci d16a:00:00.0: reg 0x18: [mem 0x9ffe0d000-0x9ffe0dfff 64bit]
[    3.909994] pci d16a:00:00.0: reg 0x20: [mem 0x9ffe0e000-0x9ffe0efff 64bit]
[    3.913599] pci_bus d16a:00: busn_res: [bus 00-ff] end is updated to 00
[    3.913920] pci d16a:00:00.0: BAR 0: assigned [mem 0x9ffe0c000-0x9ffe0cfff 64bit]
[    3.914682] pci d16a:00:00.0: BAR 2: assigned [mem 0x9ffe0d000-0x9ffe0dfff 64bit]
[    3.915454] pci d16a:00:00.0: BAR 4: assigned [mem 0x9ffe0e000-0x9ffe0efff 64bit]
[    3.992533] /sbin/ldconfig.real:
[    3.992537] /usr/lib/wsl/lib/libcuda.so.1 is not a symbolic link

[    4.070372] hv_pci 9d1623d3-c3c0-49b8-854e-97df31d9c5cc: PCI VMBus probing: Using version 0x10004
[    4.071601] WSL (1) ERROR: MountWithRetry:306: mount(drvfs, /mnt/f, 9p, 0x00000400, cache=mmap,msize=262144,trans=virtio,aname=drvfs;path=F:\;uid=1000;gid=1000;symlinkroot=/mnt/
[    4.071604] ) failed: Permission denied
[    4.114335] hv_pci 9d1623d3-c3c0-49b8-854e-97df31d9c5cc: PCI host bridge to bus c3c0:00
[    4.114909] pci_bus c3c0:00: root bus resource [mem 0xbffe10000-0xbffe12fff window]
[    4.115301] pci_bus c3c0:00: No busn resource found for root bus, will use [bus 00-ff]
[    4.116664] pci c3c0:00:00.0: [1af4:1049] type 00 class 0x010000
[    4.118087] pci c3c0:00:00.0: reg 0x10: [mem 0xbffe10000-0xbffe10fff 64bit]
[    4.119071] pci c3c0:00:00.0: reg 0x18: [mem 0xbffe11000-0xbffe11fff 64bit]
[    4.120188] pci c3c0:00:00.0: reg 0x20: [mem 0xbffe12000-0xbffe12fff 64bit]
[    4.124192] pci_bus c3c0:00: busn_res: [bus 00-ff] end is updated to 00
[    4.124553] pci c3c0:00:00.0: BAR 0: assigned [mem 0xbffe10000-0xbffe10fff 64bit]
[    4.125715] pci c3c0:00:00.0: BAR 2: assigned [mem 0xbffe11000-0xbffe11fff 64bit]
[    4.126971] pci c3c0:00:00.0: BAR 4: assigned [mem 0xbffe12000-0xbffe12fff 64bit]
[    4.179262] misc dxg: dxgk: dxgkio_query_adapter_info: Ioctl failed: -22
[    4.180053] misc dxg: dxgk: dxgkio_query_adapter_info: Ioctl failed: -22
[    4.180693] misc dxg: dxgk: dxgkio_query_adapter_info: Ioctl failed: -22
[    4.181238] misc dxg: dxgk: dxgkio_query_adapter_info: Ioctl failed: -22
[    4.181869] misc dxg: dxgk: dxgkio_query_adapter_info: Ioctl failed: -2
[    4.183250] misc dxg: dxgk: dxgkio_query_adapter_info: Ioctl failed: -22
[    4.184040] misc dxg: dxgk: dxgkio_query_adapter_info: Ioctl failed: -22
[    4.184727] misc dxg: dxgk: dxgkio_query_adapter_info: Ioctl failed: -22
[    4.185420] misc dxg: dxgk: dxgkio_query_adapter_info: Ioctl failed: -2
[    6.259135] misc dxg: dxgk: dxgkio_query_adapter_info: Ioctl failed: -2
[    6.983355] misc dxg: dxgk: dxgkio_query_adapter_info: Ioctl failed: -2
[    6.984231] misc dxg: dxgk: dxgkio_query_adapter_info: Ioctl failed: -2
[    6.984797] misc dxg: dxgk: dxgkio_query_adapter_info: Ioctl failed: -2
[    6.985215] misc dxg: dxgk: dxgkio_query_adapter_info: Ioctl failed: -2
[    6.985634] misc dxg: dxgk: dxgkio_query_adapter_info: Ioctl failed: -2
[    6.986050] misc dxg: dxgk: dxgkio_query_adapter_info: Ioctl failed: -2
[    6.986469] misc dxg: dxgk: dxgkio_query_adapter_info: Ioctl failed: -2
[    6.986886] misc dxg: dxgk: dxgkio_query_adapter_info: Ioctl failed: -2
[    6.987328] misc dxg: dxgk: dxgkio_query_adapter_info: Ioctl failed: -2
[    6.987950] misc dxg: dxgk: dxgkio_query_adapter_info: Ioctl failed: -2
[    7.424057] misc dxg: dxgk: dxgkio_query_adapter_info: Ioctl failed: -2
[   49.319923] hv_balloon: Max. dynamic memory size: 16256 MB
[  350.084633] WSL (1) ERROR: ConfigCreateResolvConfSymlink:1656: symlink(/mnt/wsl/resolv.conf
[  350.084636] , /etc/resolv.conf) failed 17

Here is the error: image

Timelessprod commented 1 year ago

I Updated WSL to kernel 5.15.74.2-microsoft-standard-WSL2 and OS Ubuntu 20.04.5 LTS on Windows 10 x86_64 but the problem is still there.

Biswa96 commented 1 year ago

Did you mount the ESP manually? Can you unmount it?

Timelessprod commented 1 year ago

Did you mount the ESP manually? Can you unmount it?

No I didn't do anything about mounting. I cannot unmount it since it failed mounting.

Biswa96 commented 1 year ago

I mean unmounting the ESP from Windows side. For example, the command should be mountvol F: /D in your case. Run wsl.exe --shutdown and that mountvol command as administrator.

Timelessprod commented 1 year ago

Is it very safe to unmount the ESP partition ? Wouldn't it break booting ?

By the way, I tried the solution suggested here : https://github.com/microsoft/WSL/issues/7565#issuecomment-1227496759 but it doesn't work for me.

Biswa96 commented 1 year ago

That might be totally different topic. But it is not required to mount ESP for any cases. Booting is handled by system.

Timelessprod commented 1 year ago

Ok I did it, looks like it fixed my problem. But as said https://github.com/microsoft/WSL/issues/8953#issuecomment-1304721429, WSL shouldn't try to mount such partitions.

Thank you for the help !

Biswa96 commented 1 year ago

WSL shouldn't try to mount such partitions.

The same thing applies to user also. Users shouldn't try to mount such partitions in normal use cases :)

Timelessprod commented 1 year ago

Note that mounting manually caused a lot of issues with my files : unable to GIT clone on the C partition as well as having GIT doubting of the owning of files. Maybe the manual mounting requires to set metadata ?

Biswa96 commented 1 year ago

Maybe the manual mounting requires to set metadata ?

That's a different topic of mounting than this issue. You are probably asking about mount Windows partition in WSL. Then you can configure those options with /etc/wsl.conf file as documented here https://learn.microsoft.com/en-us/windows/wsl/wsl-config