https://bugs.winehq.org/show_bug.cgi?id=54157
Bug ID: 54157 Summary: dir command of cmd fails on Z: on Ubuntu under WSL Product: Wine Version: 8.0-rc1 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: mterrisse@free.fr Distribution: ---
Wine 8.0 rc1, Ubuntu 22.10 under WSL (Windows SubSystem for Linux, Windows 11 22H2)
Hello,
You will probably think it is a weird idea running Wine in Ubuntu under WSL. I tried it to avoid copying many files with my program to test it under Wine.
I noticed this: wine64 cmd.exe dir This works fine on C: But if I do Z: dir I receive Invalid function. I tried this WINEDEBUG=warn+file wine64 cmd.exe Z: dir and there is something more explicit 0108:warn:file:get_mountmgr_fs_info failed to retrieve filesystem type from mountmgr, status 0xc000000e Invalid function.
Do you know what is wrong?
Regards,
Michel Terrisse
https://bugs.winehq.org/show_bug.cgi?id=54157
--- Comment #1 from Michel Terrisse mterrisse@free.fr --- I had a look at the source code, dlls/ntdll/unix/file.c It seams that NtDeviceIoControlFile has failed.
https://bugs.winehq.org/show_bug.cgi?id=54157
Michel Terrisse mterrisse@free.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |ntdll
https://bugs.winehq.org/show_bug.cgi?id=54157
Zeb Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |z.figura12@gmail.com
--- Comment #2 from Zeb Figura z.figura12@gmail.com --- Is wine compiled with dbus support?
https://bugs.winehq.org/show_bug.cgi?id=54157
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |austinenglish@gmail.com
--- Comment #3 from Austin English austinenglish@gmail.com --- (In reply to Zeb Figura from comment #2)
Is wine compiled with dbus support?
Curious for myself, but how would one check that on a binary package (assuming the user used one)?
https://bugs.winehq.org/show_bug.cgi?id=54157
--- Comment #4 from Michel Terrisse mterrisse@free.fr --- I installed wine (winehq-devel) using this procedure: https://wiki.winehq.org/Ubuntu I don't know if it was compiled with dbus support.
https://bugs.winehq.org/show_bug.cgi?id=54157
--- Comment #5 from Zeb Figura z.figura12@gmail.com --- Probably WINEDEBUG=+mountmgr and look for dbus traces. If compiled without dbus, you'll see a single message to that effect; if dbus was present at compile time but missing at runtime, you should see a message to that effect too.
In this case... can you please attach a log with WINEDEBUG=+mountmgr,+file,+seh,+pid?
https://bugs.winehq.org/show_bug.cgi?id=54157
--- Comment #6 from Michel Terrisse mterrisse@free.fr --- Indeed dbus is not loaded. 0054:trace:mountmgr:add_mount_point created L"\DosDevices\Z:" id (null) for L"\Device\HarddiskVolume2" 0064:trace:mountmgr:run_diskarbitration_loop Skipping, Disk Arbitration support not compiled in 0064:warn:mountmgr:run_dbus_loop failed to get system dbus connection: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
When I run "dir" on Z: I get 0058:trace:mountmgr:mountmgr_ioctl ioctl 6d4084 insize 32 outsize 512
https://bugs.winehq.org/show_bug.cgi?id=54157
Michel Terrisse mterrisse@free.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mterrisse@free.fr
--- Comment #7 from Michel Terrisse mterrisse@free.fr --- Created attachment 73721 --> https://bugs.winehq.org/attachment.cgi?id=73721 Trace for dir command in cmd.exe
Trace obtained with WINEDEBUG=+mountmgr,+file,+seh,+pid wine64 cmd.exe &> 54157.log and the commands dir and exit
https://bugs.winehq.org/show_bug.cgi?id=54157
--- Comment #8 from Michel Terrisse mterrisse@free.fr --- I tried this: sudo service dbus start * Starting system message bus dbus [ OK ]
Now if I run WINEDEBUG=+mountmgr wine64 cmd.exe I get this: 005c:trace:mountmgr:add_mount_point created L"\DosDevices\Z:" id (null) for L"\Device\HarddiskVolume2" 006c:trace:mountmgr:run_diskarbitration_loop Skipping, Disk Arbitration support not compiled in 0084:fixme:wineusb:query_id Unhandled ID query type 0x5. 006c:trace:mountmgr:udisks_filter ignoring message type=4 path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameAcquired
and when I run dir on Z: I still have 0060:trace:mountmgr:mountmgr_ioctl ioctl 6d4084 insize 32 outsize 512
I hope this can help.
Regards,
Michel Terrisse
https://bugs.winehq.org/show_bug.cgi?id=54157
--- Comment #9 from Michel Terrisse mterrisse@free.fr --- Created attachment 73722 --> https://bugs.winehq.org/attachment.cgi?id=73722 Same as before with dbus service strated
With dbus service started I have run the command WINEDEBUG=+mountmgr,+file,+seh,+pid wine64 cmd.exe /c dir &> 54157.log
https://bugs.winehq.org/show_bug.cgi?id=54157
--- Comment #10 from Zeb Figura z.figura12@gmail.com --- There's dbus but no udisks2, so we can't detect volumes.
We should probably fix the fallback in that case, though. We should be creating volumes for any the user has manually assigned.
https://bugs.winehq.org/show_bug.cgi?id=54157
--- Comment #11 from Michel Terrisse mterrisse@free.fr --- Hello,
You said There's dbus but no udisks2 So I tried sudo apt install udisks2, and I received udisks2 is already the newest version (2.9.4-3).
Do I need to start something?
Regards,
Michel Terrisse
https://bugs.winehq.org/show_bug.cgi?id=54157
Zeb Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|ntdll |mountmgr.sys
--- Comment #12 from Zeb Figura z.figura12@gmail.com --- (In reply to Michel Terrisse from comment #11)
Do I need to start something?
I don't know at what point we start running into weird WSL limitations, but you'll probably need to start udisks2.service (e.g. `sudo systemctl start udisks2`).
https://bugs.winehq.org/show_bug.cgi?id=54157
--- Comment #13 from Michel Terrisse mterrisse@free.fr --- Hello,
Thank you for your answer. I tried sudo systemctl start udisks2: System has not been booted with systemd as init system (PID 1). Can't operate. Failed to connect to bus: Host is down
Regards,
Michel Terrisse