bin456789 / reinstall

一键DD/重装脚本 (One-click reinstall OS on VPS)
GNU General Public License v3.0
2.87k stars 477 forks source link

无法在windows server下使用 #179

Closed ice0625 closed 1 month ago

ice0625 commented 1 month ago

原来的系统:windows server 2022 要安装的系统:debian/windows server 遇到的问题:在有管理员权限的CMD内输入reinstall.bat xxx(debian,windows等等)后均会提示: ←[31Error: Could not detect RAM size.←[0m或Error: Could not detect RAM size.请问如何解决?

bin456789 commented 1 month ago

找到这一行 https://github.com/bin456789/reinstall/blob/508661d676c552582d238847a194b414bccd3b0d/reinstall.sh#L1709 改成 ram_size=1024 或你的内存大小

ice0625 commented 1 month ago

修改reinstall.sh 后,传回这个: /cygdrive/c/Users/Administrator/reinstall.sh: line 1709: syntax error near unexpected token `('

bin456789 commented 1 month ago

我改了点代码 删除 reinstall.sh 重新运行 reinstlal.bat 吧

ice0625 commented 1 month ago

已删除 reinstall.sh,再运行reinstall.bat提示: /usr/bin/bash: 行 1: /cygdrive/c/Users/Administrator/reinstall.sh: Permission denied

bin456789 commented 1 month ago

忘记加运行权限 删除 reinstall.bat reinstall.sh 重新运行就行了

ice0625 commented 1 month ago

已删除重新再运行,不修改会提示: ERROR Error: Could not detect RAM size., 修改ram_size后会提示: /cygdrive/c/Users/Administrator/reinstall.sh: line 1710: syntax error near unexpected token `('

bin456789 commented 1 month ago

首页上的下载方法好像有缓存的 在本地下载后再复制到远程服务器试下