堪萨斯服务还是不错的 附带一下win的方法

85次阅读

共计 3154 个字符,预计需要花费 8 分钟才能阅读完成。

10 刀的机器 之前没有 Debian 和 pve
今天加上了 Debian10 和 pve6
系统都是自动化安装的

关于 DD win   可以参考一下方法

先使用原来的系统或者救援模式

这里建议使用 NAT.EE 大佬的包
wget -O- http:// 你自己 vps 做的直链 ip/ 系统包 |gunzip -dc |dd of=/dev/sda

之后再次安装救援模式

执行
ntfsfix /dev/sda1
ntfs-3g /dev/sda1 /mnt/windows

之后挂载 sftp  

打开 windows 文件夹,有一个 nat.cmd

编辑 setmode  = on

IP 设置你登陆的 IP
掩码 255.255.255.248
网关 , 你 IP 的 的前一位  如:ip 是 192.168.2.222  网关就是 192.168.2.221

之后保存,reboot 就行了

网友回复:

注册 那么问题来了,去哪里买?

weiai 没有 10 刀的机器

yanaxiao 啥机子

zxxx 看看 15 刀的有没有,应该也加了

天行九歌 选择哪一个?

weiai Debian10 不就可以安装 pve 了,应该也是帮你加了,如果你说 ddwin 的话。可以用 sysrcd 就行,4.3.1

zxxx 我试试,谢谢大佬!

weiai 哪里买

zxxx nat。ee 包可以  其他包大多数都不行。DD 过 N 次其他包都失败。但是 nat.ee 包太过精简。

注册 哪有 pve6 只有 5 啊

注册 ntfsfix /dev/sda1 ntfsfix -b -d /dev/sda1 Mounting volume… Failed to read last sector (31455231): Invalid argument HINTS: Either the volume is a RAID/LDM but it wasn’t setup yet,    or it was not setup correctly (e.g. by not using mdadm –build …),    or a wrong device is tried to be mounted,    or the partition table is corrupt (partition is smaller than NTFS),    or the NTFS boot sector is corrupt (NTFS size is not valid). FAILED Attempting to correct errors… Failed to read last sector (31455231): Invalid argument HINTS: Either the volume is a RAID/LDM but it wasn’t setup yet,    or it was not setup correctly (e.g. by not using mdadm –build …),    or a wrong device is tried to be mounted,    or the partition table is corrupt (partition is smaller than NTFS),    or the NTFS boot sector is corrupt (NTFS size is not valid). FAILED Failed to startup volume: Invalid argument Failed to read last sector (31455231): Invalid argument HINTS: Either the volume is a RAID/LDM but it wasn’t setup yet,    or it was not setup correctly (e.g. by not using mdadm –build …),    or a wrong device is tried to be mounted,    or the partition table is corrupt (partition is smaller than NTFS),    or the NTFS boot sector is corrupt (NTFS size is not valid). Trying the alternate boot sector $MFT LCN (786432) or $MFTMirr LCN (2752383) is greater than the number of clusters (124671). Unrecoverable error Volume is corrupt. You should run chkdsk. 复制代码

OPlin ntfs-3g /dev/sda1 /mnt/windows ntfs-3g /dev/sda1 /mnt/windows Failed to read last sector (31455231): Invalid argument HINTS: Either the volume is a RAID/LDM but it wasn’t setup yet,    or it was not setup correctly (e.g. by not using mdadm –build …),    or a wrong device is tried to be mounted,    or the partition table is corrupt (partition is smaller than NTFS),    or the NTFS boot sector is corrupt (NTFS size is not valid). Failed to mount ‘/dev/sda1’: Invalid argument The device ‘/dev/sda1’ doesn’t seem to have a valid NTFS. Maybe the wrong device is used? Or the whole disk instead of a partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around? 复制代码

zxxx 这一步是要先 dd 包跑完之后再做的

zxxx 是的,感谢大佬提醒!

wlz 为什么要先 DD 完之后再安装救援模式啊,那之前 DD 的不就没了么?为什么要挂载 sftp 啊,这个怎么操作?

zxxx 救援模式相当于 U 盘 / 光盘启动之类的,不会破坏硬盘的文件。不挂载 sftp 的话,通过 vi/nano 等编辑器直接修改也是可以的

superneed 谢谢大佬,我的 windows 文件夹下面没有 nat.cmd 这个文件咋办

zxxx 你用的不是 natee 的包么?

superneed 以前 lite 文件夹的包是这样在 windows 文件夹下有个 nat.cmd,但是新版的挂机宝系列 (guajibao) 我改变了这个自定义静态 ip 网关的方法,在 WindowsSetupScripts 目录 SetupComplete.cmd 脚本里修改就行,记得把前面的“:”去点,这个是注释。去掉后才能生效!

注册 20 刀随便安 win

注册 哇,感谢作者大佬

maro666 原来是这样,感谢大佬!

superneed 大佬,给个 nat.ee 2012 的 DD 包吧,实在难找,最好不是 lite 版本的,谢谢啦

zxxx 大佬新版的包放哪里了,找不到呀

superneed 我用救援模式 dd 完,就是 exfat 格式的,可以不用 ntfs-3g 挂载直接修改,进系统还是 ntfs 格式

superneed http://vps0.net/d/natee/win/guajibao/guajibao-winsrv2012r2-data-x64-cn/guajibao-winsrv2012r2-data-x64-cn.vhd.gz

chxin 那个包这么神奇?

zxxx 就 natee 大佬的 win10ltsc2021,难道我这个是个例,好像所有包 D 完都是 exfat

zxxx 有的包 DD 后无法挂载,有的可挂载。但是通过 fdisk 查看,都是 NTFS 的。如果是 UEFI 的包,可能会有一个 FAT 分区存在。

注册 感谢神仙大佬,完美 D 成功!

注册 15 刀地址是啥呢?求

正文完
 0