"init_redirects cannot open L"C:\\windows" (c000000f)"

Questions about Wine on Linux
Locked
rlaggren
Level 1
Level 1
Posts: 9
Joined: Mon Apr 11, 2016 10:25 pm

"init_redirects cannot open L"C:\\windows" (c000000f)"

Post by rlaggren »

After a disk problem and restoring the home dir(s) from a recovered image, everything works as before except... wine. Wine throws the title error; also winetricks, ditto. The restore involved some moving of some files (after the bulk copy completed), running as root. As part of the clean up, I chown'd the home dirs to make the relevant user the owner of all content; I also made all content the group "users". This is how it was before the disk problem. Here is an example of trying to run a previously working CAD program:

Code: Select all

rufus@Air-PC:~/.wine/SmartSketch> env WINEPREFIX="/home/rufus/.wine/SmartSketch" wine start /unix "/home/rufus/.wine/SmartSketch/drive_c/Program Files (x86)/SmartSketch/Program/SmartSketch.exe"
0009:err:file:init_redirects cannot open L"C:\\windows" (c000000f)
0009:err:process:init_windows_dirs directory L"C:\\windows" could not be created, error 2
0009:err:process:init_windows_dirs directory L"C:\\windows\\system32" could not be created, error 3
0009:err:process:init_windows_dirs directory L"C:\\windows\\syswow64" could not be created, error 3
000b:err:process:init_windows_dirs directory L"C:\\windows" could not be created, error 2
000b:err:process:init_windows_dirs directory L"C:\\windows\\system32" could not be created, error 3
000b:err:process:init_windows_dirs directory L"C:\\windows\\syswow64" could not be created, error 3
000b:err:wineboot:main Cannot set the dir to L"C:\\windows" (2)
000b:err:wineboot:ProcessRunKeys Error running cmd L"C:\\windows\\system32\\winemenubuilder.exe -a -r" (2)
000d:err:process:init_windows_dirs directory L"C:\\windows" could not be created, error 2
000d:err:process:init_windows_dirs directory L"C:\\windows\\system32" could not be created, error 3
000d:err:process:init_windows_dirs directory L"C:\\windows\\syswow64" could not be created, error 3
000d:fixme:service:scmdatabase_autostart_services Auto-start service L"MountMgr" failed to start: 3
000d:fixme:service:scmdatabase_autostart_services Auto-start service L"PlugPlay" failed to start: 2
000d:fixme:service:scmdatabase_autostart_services Auto-start service L"WineBus" failed to start: 3
0009:fixme:file:GetLongPathNameW UNC pathname L"\\\\?\\unix\\home\\rufus\\.wine\\SmartSketch\\drive_c\\Program Files (x86)\\SmartSketch\\Program\\SmartSketch.exe"
0010:err:file:init_redirects cannot open L"C:\\windows" (c000000f)
0010:err:process:init_windows_dirs directory L"C:\\windows" could not be created, error 2
0010:err:process:init_windows_dirs directory L"C:\\windows\\system32" could not be created, error 3
0010:err:process:init_windows_dirs directory L"C:\\windows\\syswow64" could not be created, error 3
0010:err:module:import_dll Library MSVBVM60.DLL (which is needed by L"unix\\home\\rufus\\.wine\\SmartSketch\\drive_c\\Program Files (x86)\\SmartSketch\\Program\\SmartSketch.exe") not found
0010:err:module:attach_dlls Importing dlls for L"unix\\home\\rufus\\.wine\\SmartSketch\\drive_c\\Program Files (x86)\\SmartSketch\\Program\\SmartSketch.exe" failed, status c0000135
rufus@Air-PC:~/.wine/SmartSketch> 
Here is winetricks:

Code: Select all

rufus@Air-PC:~/.wine/SmartSketch> env WINEPREFIX="/home/rufus/.wine/SmartSketch" winetricks
------------------------------------------------------
Your version of wine 3.7 is no longer supported upstream. You should upgrade to 4.x
------------------------------------------------------
Executing mkdir -p /home/rufus/.wine
------------------------------------------------------
WINEPREFIX INFO:
Drive C: total 32
drwxr-xr-x  7 rufus users 4096 Apr  8 07:39 .
drwxr-xr-x  4 rufus users 4096 May  1 09:48 ..
drwxr-xr-x  2 rufus users 4096 Jul 25  2018 Drawing Files
drwxr-xr-x  6 rufus users 4096 Jul 25  2018 Program Files
drwxr-xr-x  7 rufus users 4096 Jul 25  2018 Program Files (x86)
drwxr-xr-x  4 rufus users 4096 Jul 25  2018 users
drwxr-xr-x 19 rufus users 4096 Apr 10 08:50 windows
-rw-r--r--  1 rufus users    9 Apr  8 07:39 .windows-serial

Registry info:
/home/rufus/.wine/SmartSketch/system.reg:#arch=win64
/home/rufus/.wine/SmartSketch/userdef.reg:#arch=win64
/home/rufus/.wine/SmartSketch/user.reg:#arch=win64
------------------------------------------------------
------------------------------------------------------
wine cmd.exe /c echo '%AppData%' returned unexpanded string 'C:\windows\system32\unknown' ... this can be caused by a corrupt wineprefix (`wineboot -u` may help), by an old wine, or by not owning /home/rufus/.wine/SmartSketch
------------------------------------------------------
rufus@Air-PC:~/.wine/SmartSketch> 
I'm running opensuse 15.1. using the versions provided by the distro. As noted above, "it worked before...". I have checked all the dirs and spot checked all the files involved and all return owner:rufus and group:users as expected. Checking the UID and GID yield 1000:100 as expected. Eg:

Code: Select all

rufus@Air-PC:~/.wine/SmartSketch> dir -n -a
total 4072
drwxr-xr-x 4 1000 100    4096 May  1 09:57 .
drwxr-xr-x 7 1000 100    4096 May  1 09:09 ..
drwxr-xr-x 2 1000 100    4096 Apr 10 12:25 dosdevices
drwxr-xr-x 7 1000 100    4096 Apr  8 07:39 drive_c
-rw-r--r-- 1 1000 100 4039605 May  1 09:57 system.reg
-rw-r--r-- 1 1000 100      11 Apr 10 08:13 .update-timestamp
-rw-r--r-- 1 1000 100    3254 Jul 25  2018 userdef.reg
-rw-r--r-- 1 1000 100  102245 May  1 09:57 user.reg
rufus@Air-PC:~/.wine/SmartSketch> 
The relevant line from passwd in /etc:

Code: Select all

rufus:x:1000:100:Rufus:/home/rufus:/bin/bash

Thanks for any thoughts.
Rufus
Locked