[作死向]如果直接把Windows的系统盘挂载在~/.wine/drive_c
Tofloor
poster avatar
SamLukeYes
deepin
2020-04-25 21:58
Author
有人试过吗?会发生什么?
警告:小白请勿尝试,虽然我也不知道会发生什么
Reply Favorite View the author
All Replies
avatar
星外之神
deepin
2020-04-25 22:26
#1
您太强啦
Reply View the author
avatar
ghostry
deepin
2020-04-25 22:41
#2
我猜不行吧,

可以拷贝文件过去试试,不会损坏现有的.
建议楼主试试.
Reply View the author
avatar
SamLukeYes
deepin
2020-04-25 22:59
#3
https://bbs.deepin.org/post/192896
我猜不行吧,

可以拷贝文件过去试试,不会损坏现有的.

我的重要数据全在C盘,占了整个硬盘大半的空间,我的home文件夹下面一堆指向C盘的链接
Reply View the author
avatar
ghostry
deepin
2020-04-25 23:57
#4
https://bbs.deepin.org/post/192896
我的重要数据全在C盘,占了整个硬盘大半的空间,我的home文件夹下面一堆指向C盘的链接 ...



可以从虚机里拷贝文件出来.
Reply View the author
avatar
SamLukeYes
deepin
2020-04-26 20:04
#5
https://bbs.deepin.org/post/192896
可以从虚机里拷贝文件出来.

受你的启发,我把winre的wim文件解压了出来,链接到drive_c,那个wineprefix立马报废了
  1. yes@Auriel ~> WINEPREFIX=~/.wine64/ winecfg
  2. 000b:fixme:winediag:__wine_start_process Wine Staging 5.5 is a testing version containing experimental patches.
  3. 000b:fixme:winediag:__wine_start_process Please mention your exact version when filing bug reports on winehq.org.
  4. 000b:err:wineboot:process_run_key Error running cmd L"C:\\windows\\system32\\winemenubuilder.exe -a -r" (2).
  5. 000d:fixme:service:scmdatabase_autostart_services Auto-start service L"PlugPlay" failed to start: 2
  6. 000d:fixme:service:scmdatabase_autostart_services Auto-start service L"winebus" failed to start: 2
  7. 000d:fixme:service:scmdatabase_autostart_services Auto-start service L"MountMgr" failed to start: 2
  8. 000b:fixme:msg:pack_message msg 14 (WM_ERASEBKGND) not supported yet
  9. 0009:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0)
  10. 0009:err:module:LdrInitializeThunk "kernelbase.dll" failed to initialize, aborting
  11. 0009:err:module:LdrInitializeThunk Initializing dlls for L"C:\\windows\\system32\\winecfg.exe" failed, status c0000005
  12. yes@Auriel ~ [5]>
Copy the Code

我的winre是64位的,等我下个32位的win10,用install.wim试一试
Reply View the author
avatar
SamLukeYes
deepin
2020-04-26 20:16
#6
https://bbs.deepin.org/post/192896
可以从虚机里拷贝文件出来.

等等,刚才操作有点问题,如果先创建drive_c再开wine就可以进winecfg。但我发现一个问题,wine默认的windows文件夹是小写的,它直接创建了另一个windows文件夹
Reply View the author
avatar
SamLukeYes
deepin
2020-04-26 20:23
#7
https://bbs.deepin.org/post/192896
可以从虚机里拷贝文件出来.

在winre的文件夹里创建链接windows指向Windows,结果还是崩了:
  1. yes@Auriel ~/.wine64> WINEPREFIX=~/.wine64/ winecfg
  2. 000b:fixme:winediag:__wine_start_process Wine Staging 5.5 is a testing version containing experimental patches.
  3. 000b:fixme:winediag:__wine_start_process Please mention your exact version when filing bug reports on winehq.org.
  4. 000d:fixme:ntdll:EtwEventRegister ({db00dfb6-29f9-4a9c-9b3b-1f4f9e7d9770}, 0x1800041d0, 0x180025000, 0x180025000) stub.
  5. 0012:err:module:import_dll Library api-ms-win-core-string-l2-1-1.dll (which is needed by L"C:\\windows\\System32\\shcore.dll") not found
  6. 0012:err:module:find_forwarded_export module not found for forward 'shcore.SHCreateStreamOnFileW' used by L"C:\\windows\\System32\\shlwapi.dll"
  7. 0012:err:module:import_dll Library api-ms-win-core-string-l2-1-1.dll (which is needed by L"C:\\windows\\System32\\shcore.dll") not found
  8. 0012:err:module:find_forwarded_export module not found for forward 'shcore.SHDeleteKeyW' used by L"C:\\windows\\System32\\shlwapi.dll"
  9. 0012:err:module:import_dll Library api-ms-win-core-string-l2-1-1.dll (which is needed by L"C:\\windows\\System32\\shcore.dll") not found
  10. 0012:err:module:find_forwarded_export module not found for forward 'shcore.SHCreateMemStream' used by L"C:\\windows\\System32\\shlwapi.dll"
  11. 0012:err:module:import_dll Library api-ms-win-security-activedirectoryclient-l1-1-1.dll (which is needed by L"C:\\windows\\System32\\NTDSAPI.dll") not found
  12. 0012:err:module:import_dll Library NTDSAPI.dll (which is needed by L"C:\\windows\\System32\\aclui.dll") not found
  13. 0012:err:module:import_dll Library aclui.dll (which is needed by L"C:\\windows\\System32\\shell32.dll") not found
  14. wine: Unhandled page fault on read access to 0000000000000030 at address 000000007BC967E6 (thread 0012), starting debugger...
  15. 0012:err:seh:start_debugger Couldn't start debugger L"winedbg --auto 17 140" (2)
  16. Read the Wine Developers Guide on how to set up winedbg or another debugger
  17. 0014:err:module:import_dll Library api-ms-win-core-string-l2-1-1.dll (which is needed by L"C:\\windows\\System32\\shcore.dll") not found
  18. 0014:err:module:find_forwarded_export module not found for forward 'shcore.SHCreateStreamOnFileW' used by L"C:\\windows\\System32\\shlwapi.dll"
  19. 0014:err:module:import_dll Library api-ms-win-core-string-l2-1-1.dll (which is needed by L"C:\\windows\\System32\\shcore.dll") not found
  20. 0014:err:module:find_forwarded_export module not found for forward 'shcore.SHDeleteKeyW' used by L"C:\\windows\\System32\\shlwapi.dll"
  21. 0014:err:module:import_dll Library api-ms-win-core-string-l2-1-1.dll (which is needed by L"C:\\windows\\System32\\shcore.dll") not found
  22. 0014:err:module:find_forwarded_export module not found for forward 'shcore.SHCreateMemStream' used by L"C:\\windows\\System32\\shlwapi.dll"
  23. 0014:err:module:import_dll Library api-ms-win-security-activedirectoryclient-l1-1-1.dll (which is needed by L"C:\\windows\\System32\\NTDSAPI.dll") not found
  24. 0014:err:module:import_dll Library NTDSAPI.dll (which is needed by L"C:\\windows\\System32\\aclui.dll") not found
  25. 0014:err:module:import_dll Library aclui.dll (which is needed by L"C:\\windows\\System32\\shell32.dll") not found
  26. wine: Unhandled page fault on read access to 0000000000000030 at address 000000007BC967E6 (thread 0014), starting debugger...
  27. 0014:err:seh:start_debugger Couldn't start debugger L"winedbg --auto 19 100" (2)
  28. Read the Wine Developers Guide on how to set up winedbg or another debugger
  29. 0010:err:module:import_dll Library api-ms-win-core-string-l2-1-1.dll (which is needed by L"C:\\windows\\System32\\shcore.dll") not found
  30. 0010:err:module:find_forwarded_export module not found for forward 'shcore.SHCreateStreamOnFileW' used by L"C:\\windows\\System32\\shlwapi.dll"
  31. 0010:err:module:import_dll Library api-ms-win-core-string-l2-1-1.dll (which is needed by L"C:\\windows\\System32\\shcore.dll") not found
  32. 0010:err:module:find_forwarded_export module not found for forward 'shcore.SHDeleteKeyW' used by L"C:\\windows\\System32\\shlwapi.dll"
  33. 0010:err:module:import_dll Library api-ms-win-core-string-l2-1-1.dll (which is needed by L"C:\\windows\\System32\\shcore.dll") not found
  34. 0010:err:module:find_forwarded_export module not found for forward 'shcore.SHCreateMemStream' used by L"C:\\windows\\System32\\shlwapi.dll"
  35. 0010:err:module:import_dll Library api-ms-win-security-activedirectoryclient-l1-1-1.dll (which is needed by L"C:\\windows\\System32\\NTDSAPI.dll") not found
  36. 0010:err:module:import_dll Library NTDSAPI.dll (which is needed by L"C:\\windows\\System32\\aclui.dll") not found
  37. 0010:err:module:import_dll Library aclui.dll (which is needed by L"C:\\windows\\System32\\shell32.dll") not found
  38. wine: Unhandled page fault on read access to 0000000000000030 at address 000000007BC967E6 (thread 0010), starting debugger...
  39. 0010:err:seh:start_debugger Couldn't start debugger L"winedbg --auto 15 124" (2)
  40. Read the Wine Developers Guide on how to set up winedbg or another debugger
  41. 0017:err:module:find_forwarded_export module not found for forward 'advapi32.EventUnregister' used by L"C:\\windows\\system32\\api-ms-win-eventing-provider-l1-1-0.dll"
  42. 0017:err:module:find_forwarded_export module not found for forward 'advapi32.EventRegister' used by L"C:\\windows\\system32\\api-ms-win-eventing-provider-l1-1-0.dll"
  43. 0017:err:module:find_forwarded_export module not found for forward 'advapi32.EventActivityIdControl' used by L"C:\\windows\\system32\\api-ms-win-eventing-provider-l1-1-0.dll"
  44. 0017:err:module:find_forwarded_export module not found for forward 'advapi32.EventWriteTransfer' used by L"C:\\windows\\system32\\api-ms-win-eventing-provider-l1-1-0.dll"
  45. 0017:err:module:find_forwarded_export module not found for forward 'advapi32.EventSetInformation' used by L"C:\\windows\\system32\\api-ms-win-eventing-provider-l1-1-0.dll"
  46. 0017:err:module:import_dll Loading library user32.dll (which is needed by L"C:\\windows\\syswow64\\rundll32.exe") failed (error c000007b).
  47. 0017:err:module:import_dll Loading library ucrtbase.dll (which is needed by L"C:\\windows\\syswow64\\rundll32.exe") failed (error c000007b).
  48. 0017:err:module:LdrInitializeThunk Importing dlls for L"C:\\windows\\syswow64\\rundll32.exe" failed, status c0000135
  49. wine: Call from 0x7bc8edac to unimplemented function ntdll.dll.RtlQueryEnvironmentVariable, aborting
  50. 000b:err:rpc:I_RpcReceive we got fault packet with status 0x80000100
  51. wine: Unhandled page fault on read access to 0000000000000001 at address 00007F9545A701E5 (thread 000b), starting debugger...
  52. 000b:err:seh:start_debugger Couldn't start debugger L"winedbg --auto 10 184" (2)
  53. Read the Wine Developers Guide on how to set up winedbg or another debugger
  54. 0009:err:module:import_dll Loading library kernelbase.dll (which is needed by L"C:\\windows\\system32\\kernel32.dll") failed (error c000007b).
  55. wine: could not load kernel32.dll, status c0000135
  56. yes@Auriel ~/.wine64 [1]> 001b:err:ntdll:RtlpWaitForCriticalSection section 0x118340 "../../../wine-staging/programs/services/services.c: scmdatabase" wait timed out in thread 001b, blocked by 001a, retrying (60 sec)
Copy the Code
Reply View the author
avatar
wubozh
deepin
2020-04-26 20:26
#8
https://bbs.deepin.org/post/192896
等等,刚才操作有点问题,如果先创建drive_c再开wine就可以进winecfg。但我发现一个问题,wine默认的wind ...

wine好像是用它自己的api去替换windows的api来支撑.exe程序运行。有时我们偶尔要使用一个或者几个windows的api,都在要wine里指定,这样用windows目录去替换整个wine的driver_c,只怕没办法运行吧?除非对wine整个做修改
Reply View the author
avatar
ksplite
deepin
2020-04-26 20:29
#9
我记得winehq wiki上有个页面写了不要这样做,除非你想干掉你的windows
Reply View the author
avatar
vitoland
deepin
2020-04-26 20:35
#10
wine是个api翻译器,不能这么直接挂载,因为没有api翻译。
如果能的话,20年前解决方案早就满天飞了。
Reply View the author
avatar
ghostry
deepin
2020-04-26 21:00
#11
https://bbs.deepin.org/post/192896
在winre的文件夹里创建链接windows指向Windows,结果还是崩了:

看来是不行了.wine的文件是他自己弄的,
Reply View the author
avatar
神末shenmo
deepin
Spark-App
Q&A Team
2020-04-27 00:56
#12
勇者!
这种事我一般只敢想想,感谢大佬们测试,让我的疑惑解决!
Reply View the author
avatar
ShineWay
deepin
2020-04-27 06:24
#13
https://bbs.deepin.org/user/218416 的帖子充分证明了只要你想的出来,就有人回去尝试
Reply View the author
avatar
走钢丝
deepin
2020-04-30 03:58
#14
本帖最后由 lidanger 于 2020-4-29 19:59 编辑

我是把 win7 所在分区挂在虚拟机里,然后虚拟机和物理机都能启动。挂 wine 下是真没试过。

其实刚开始 win7 我是装在 vb 虚拟机的,后来才复制到物理分区。一种新的装机方法。
Reply View the author
avatar
lflflf
deepin
2020-04-30 07:32
#15
我以为就我一个人这样干过哈哈,事实证明不行,很多原生dll无法加载
Reply View the author
avatar
ghostry
deepin
2020-04-30 14:23
#16
https://bbs.deepin.org/post/192896
我是把 win7 所在分区挂在虚拟机里,然后虚拟机和物理机都能启动。挂 wine 下是真没试过。

其实刚开始 win ...

deepin也可以这么装.

复制后修改 /etc/fstab 和 /boot/grub/grub.cfg

Reply View the author
avatar
178******28
deepin
2024-04-19 09:21
#17

正在疯狂试探。

除了 kernel32.dll, gdi32.dll, user32.dll, and ntdll.dll 必须要用 buildin 版本外,还有一些 exe/dll 需要换成 buildin 版本。

用的是 win7 32位,目前暂时还没有跑起来。

Reply View the author
avatar
178******28
deepin
2024-04-21 14:15
#18

我用的是 wine 7.8 i386,龙芯3A6000,ArchLinux。第一步是运行 win7 32位自带的 notepad.exe

目前卡在这里:

454458.716:0020:0024:Call user32.LoadAcceleratorsW(01000000,0100237c L"MainAcc") ret=01001f06
454458.716:0020:0024:trace:module:FindResourceExW 01000000 #0009 L"MainAcc" 0000
454458.716:0020:0024:Call ntdll.RtlCreateUnicodeString(7f10f9b4,0100237c L"MainAcc") ret=7b0262d5
454458.716:0020:0024:Ret  ntdll.RtlCreateUnicodeString() retval=00000001 ret=7b0262d5
454458.716:0020:0024:Call ntdll.RtlUpcaseUnicodeString(7f10f9b4,7f10f9b4,00000000) ret=7b0262ed
454458.716:0020:0024:Ret  ntdll.RtlUpcaseUnicodeString() retval=00000000 ret=7b0262ed
454458.716:0020:0024:Call ntdll.LdrFindResource_U(01000000,7f10f9c4,00000003,7f10f9ac) ret=7b02a149
454458.716:0020:0024:trace:resource:LdrFindResource_U module 01000000 type #0009 name L"MAINACC" lang 0000 level 3
454458.716:0020:0024:trace:resource:find_entry_by_id root 0100F000 dir 0100F000 id 0009 not found
454458.716:0020:0024:Ret  ntdll.LdrFindResource_U() retval=c000008a ret=7b02a149
454458.716:0020:0024:Call ntdll.RtlNtStatusToDosError(c000008a) ret=7b02a037
454458.716:0020:0024:Ret  ntdll.RtlNtStatusToDosError() retval=00000715 ret=7b02a037
454458.716:0020:0024:Call ntdll.RtlFreeHeap(7f220000,00000000,7f248c90) ret=7b029ff2
454458.716:0020:0024:Ret  ntdll.RtlFreeHeap() retval=00000001 ret=7b029ff2
454458.716:0020:0024:Ret  user32.LoadAcceleratorsW() retval=00000000 ret=01001f06

LoadAcceleratorsW “MainAcc” 失败,失败的原因是,Accelerators resource 不在 notepad.exe 中,而是在 notepad.mui 文件中,而 wine 7.8 不支持加载 mui 文件。

还好有人做了补丁,但是没有被上游吸收。

目前的进度是在 wine 7.8 源码上打 mui 补丁后,重新编译。

Reply View the author