Skip to content

fstab error on mounted VHD drive #13924

@tamasbencze

Description

@tamasbencze

Windows Version

Microsoft Windows [Version 10.0.26200.7462]

WSL Version

2.5.10

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

6.6.87.2-microsoft-standard-WSL2

Distro Version

RedHat 9.7

Other Software

No response

Repro Steps

wsl --mount --partition 1 --type ext4 --vhd C:\wsldata\wsldata.vhdx --name wsldata

in fstab

UUID=3a732601-db77-44f8-8149-cfede85cceb6 /mnt/wsl/wsldata ext4 defaults 0 0
/mnt/wsl/wsldata/home/developer /home/developer none bind 0 0

Expected Behavior

No error for mounted data drive

Actual Behavior

Dec 16 08:28:46 PBD-IT-WL-rOMw1 mount:
Dec 16 08:28:46 PBD-IT-WL-rOMw1 /mnt/wsl/wsldata: mount point does not exist.
Dec 16 08:28:46 PBD-IT-WL-rOMw1 unknown:
Dec 16 08:28:46 PBD-IT-WL-rOMw1 mount:
Dec 16 08:28:46 PBD-IT-WL-rOMw1 /home/developer: special device /mnt/wsl/wsldata/home/developer does not exist.
Dec 16 08:28:46 PBD-IT-WL-rOMw1 unknown:
Dec 16 08:28:46 PBD-IT-WL-rOMw1 unknown: WSL (2 - init-systemd(redhat)) ERROR: UtilCreateProcessAndWait:707: /bin/mount>
Dec 16 08:28:46 PBD-IT-WL-rOMw1 unknown: WSL (2 - init-systemd(redhat)) ERROR: ConfigMountFsTab:2172: Processing /etc/f>

plus the well know message on login:

wsl: Processing /etc/fstab with mount -a failed.

and eventually I have that drive and use it!

This is the same with 6.x. Some version doesn't print it, but journalctl has it for any WSL above 2.4

Diagnostic Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions