注意 arm机器可直接按流程救砖,amd请看后面部分AMD救砖说明 前期准备打开出问题的机器,左侧找到并打开 “控制台连接”
等待 shell 终端加载完成后重新引导系统,并在 shell 空白后按键盘上的 Esc 键进入 BIOS
依次选择 Boot Manager —-> EFI Internal Shell - FS0:
- ifconfig -s eth0 dhcp
- ping 1.1.1.1
复制代码
TFTP拉取netboot镜像(多节点分流) 东京
- #AMD
- tftp 168.138.192.92 amd.efi amd.efi
- #ARM
- tftp 168.138.192.92 arm.efi arm.efi
复制代码
凤凰城
- #AMD
- tftp 129.146.9.206 amd.efi amd.efi
- #ARM
- tftp 129.146.9.206 arm.efi arm.efi
复制代码
引导镜像下载好 netboot 的镜像包之后,输入exit并按 Esc 进入 BIOS 中
Boot Maintenance Manager –> Boot from File–> 选择硬盘回车–> 选择镜像文件回车–> 成功进入 netboot.xyz
netboot.xyz 中选择相应的系统安装
以Debain为例
至此流程完毕。
AMD救砖说明amd机器内存较小,因此需要通过apline中转救砖
首先,选择alpine系统
- setup-alpine
- Enter system hostname (fully qualified form,e.g.'foo.example.org')[localhost] 回车
- #直接一路回车
- Changing password for root:
- #输入密码,重复密码
- Allow root ssh login? ('?' for help) [prohibit-password] yes
- Which disk(s) would you like to use? (or '?' for help or 'none')[none] sda
- How would you like to use it? ('sys','data','crypt','lvm'or '?'for help)[?] sys
- WARNING:Erase the above disk(s) and continue?(y/n) [n] y
- #等2分钟
- reboot
- apk update
- apk add bash wget
- sed -i 's/root:\/bin\/ash/root:\/bin\/bash/g' /etc/passwd
- wget--no-check-certificate-qOInstallNET.sh 'https://raw.githubusercontent.com/leitbogioro/Tools/master/Linux_reinstall/lnstallNET.sh' && chmod a+x InstallNET.sh
- bash InstallNET.sh -debian 11 -pwd '密码'
复制代码
等待10-20分钟,安装完毕 手动dd
- wget "https://cloud.debian.org/images/cloud/bullseye/latest/debian-11-nocloud-amd64.tar.xz" -O - | xz -d | tar -xv
- dd if=./disk.raw of=/dev/sdb bs=1M
复制代码
需要在cloudshell中设置root登录
用户名root,无密码,直接回车 - #重装ssh
- sudo apt update -y
- sudo apt remove -y --purge openssh-server
- sudo apt install -y openssh-server
- #设置root密码和root登录
- echo root:密码 |sudo chpasswd root
- sudo sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/g' /etc/ssh/sshd_config;
- sudo sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/g' /etc/ssh/sshd_config;
- sudo service sshd restart
复制代码
|