腾讯轻量 Windows 2022 系统 DD Debian 11

1. 下载 EasyBCD 和 mfslinux

https://sm.myapp.com/original/System/EasyBCD_v2.3.exe
https://mfsbsd.vx.sk/files/iso/mfslinux/mfslinux-0.1.10-f9c75a4.iso

2. 安装 EasyBCD 添加 mfslinux 启动菜单并设置为默认选项

腾讯轻量 Windows 2022 系统 DD Debian 11

腾讯轻量 Windows 2022 系统 DD Debian 11

3. 重新启动

腾讯轻量 Windows 2022 系统 DD Debian 11

腾讯轻量 Windows 2022 系统 DD Debian 11

4. 通过 SSH 连接

username: root
password: mfsroot

5. 开始 DD

fdisk -l
Disk /dev/vda: 30 GiB, 32212254720 bytes, 62914560 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xf8c3d85e

Device     Boot Start      End  Sectors Size Id Type
/dev/vda1  *     2048 62910463 62908416  30G  7 HPFS/NTFS/exFAT

——————————————————————————————-
使用此镜像无法登陆,必须通过VNC修改密码才行
https://cloud.debian.org/images/cloud/bullseye/latest/debian-11-genericcloud-amd64.raw
——————————————————————————————-

wget -O- "https://cloud.debian.org/images/cloud/bullseye/latest/debian-11-genericcloud-amd64.raw" | dd of=/dev/vda

Download completed (2147483648 bytes)
4189053+9690 records in
4189053+9690 records out

6. mount

fdisk -l
GPT PMBR size mismatch (4194303 != 62914559) will be corrected by write. <=== 错误?

The backup GPT table is not on the end of the device.
Disk /dev/vda: 30 GiB, 32212254720 bytes, 62914560 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 2AC9A341-47CF-F740-B3FA-A9FF9D45F89A

Device      Start     End Sectors  Size Type
/dev/vda1  262144 4194270 3932127  1.9G Linux filesystem
/dev/vda14   2048    8191    6144    3M BIOS boot
/dev/vda15   8192  262143  253952  124M EFI System

Partition table entries are not in disk order.

无法 mount

mkdir /mnt/vda1
mount /dev/vda1 /mnt/vda1

NTFS signature is missing.
Failed to mount '/dev/vda1': Invalid argument
The device '/dev/vda1' 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?
mount: mounting /dev/vda1 on /mnt/vda1 failed: Invalid argument

修复

fdisk /dev/vda

Welcome to fdisk (util-linux 2.36.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.

GPT PMBR size mismatch (4194303 != 62914559) will be corrected by write.
The backup GPT table is not on the end of the device. This problem will be corrected by write.

Command (m for help): w

The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.

重新 mount

mount /dev/vda1 /mnt/vda1
ls /mnt/vda1/usr/local

 

bin      etc      games    include  lib      man      sbin     share    src

此时并没有 /usr/local/qcloud 这个文件夹

7. 配置 SSH

允许 root 使用密码登录

sed -i 's/.*PermitRootLogin.*/PermitRootLogin yes/' /mnt/vda1/etc/ssh/sshd_config
sed -i 's/.*PasswordAuthentication.*/PasswordAuthentication yes/' /mnt/vda1/etc/ssh/sshd_config

修改 root 密码

chroot /mnt/vda1/

passwd root
********
********

passwd -S root
root P 04/24/2022 0 99999 7 -1

cat /etc/shadow | grep root
root:$y$j9T$onpHR5WOJnsR2/G8ChkaH0$2vtxjM/PIMbULsMWQnfPwF/TKLT8gPDFjyESjlRz2E4:19106:0:99999:7:::

exit
umount /mnt/vda1/

8. 重启到 Debian 11

reboot

 

给TA打赏
共{{data.count}}人
人已打赏
网络随笔

一款精美的kangle模板,并且自带多种防CC方式 CDN搭建 kangleCDN 利用kangle搭建CDN

2022-5-20 18:43:07

网络随笔

腾讯云轻量一键DDwindows10 win10系统

2022-5-21 17:11:01

0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索