制作好的U盘启动

PVE | PVE忘记密码如何重置 – Vedio Talk - VLOG、科技、生活、乐分享| PVE忘记密码如何重置 – Vedio Talk - VLOG、科技、生活、乐分享" class="wp-image-52412" srcset="https://vt.wooomooo.com/wp-content/uploads/2022/02/image.png 808w, https://vt.wooomooo.com/wp-content/uploads/2022/02/image-300x190.png 300w, https://vt.wooomooo.com/wp-content/uploads/2022/02/image-768x488.png 768w, https://vt.wooomooo.com/wp-content/uploads/2022/02/image-150x95.png 150w, https://vt.wooomooo.com/wp-content/uploads/2022/02/image-600x381.png 600w, https://vt.wooomooo.com/wp-content/uploads/2022/02/image-60x38.png 60w" sizes="(max-width: 808px) 100vw, 808px" style="-webkit-tap-highlight-color: transparent; box-sizing: border-box; border: 0px; max-width: 100%; display: block; margin: 12px auto; height: auto;"/>

三、进入命令模式

启动这个界面之后,继续按CTRL D

PVE | PVE忘记密码如何重置 – Vedio Talk - VLOG、科技、生活、乐分享| PVE忘记密码如何重置 – Vedio Talk - VLOG、科技、生活、乐分享" class="wp-image-52413" srcset="https://vt.wooomooo.com/wp-content/uploads/2022/02/image-1-1024x517-1.png 1024w, https://vt.wooomooo.com/wp-content/uploads/2022/02/image-1-1024x517-1-300x151.png 300w, https://vt.wooomooo.com/wp-content/uploads/2022/02/image-1-1024x517-1-768x388.png 768w, https://vt.wooomooo.com/wp-content/uploads/2022/02/image-1-1024x517-1-150x76.png 150w, https://vt.wooomooo.com/wp-content/uploads/2022/02/image-1-1024x517-1-600x303.png 600w, https://vt.wooomooo.com/wp-content/uploads/2022/02/image-1-1024x517-1-60x30.png 60w" sizes="(max-width: 1024px) 100vw, 1024px" style="-webkit-tap-highlight-color: transparent; box-sizing: border-box; border: 0px; max-width: 100%; display: block; margin: 12px auto; height: auto;"/>

成功进入

PVE | PVE忘记密码如何重置 – Vedio Talk - VLOG、科技、生活、乐分享| PVE忘记密码如何重置 – Vedio Talk - VLOG、科技、生活、乐分享" class="wp-image-52414" srcset="https://vt.wooomooo.com/wp-content/uploads/2022/02/image-2-1024x601-1.png 1024w, https://vt.wooomooo.com/wp-content/uploads/2022/02/image-2-1024x601-1-300x176.png 300w, https://vt.wooomooo.com/wp-content/uploads/2022/02/image-2-1024x601-1-768x451.png 768w, https://vt.wooomooo.com/wp-content/uploads/2022/02/image-2-1024x601-1-150x88.png 150w, https://vt.wooomooo.com/wp-content/uploads/2022/02/image-2-1024x601-1-600x352.png 600w, https://vt.wooomooo.com/wp-content/uploads/2022/02/image-2-1024x601-1-60x35.png 60w" sizes="(max-width: 1024px) 100vw, 1024px" style="-webkit-tap-highlight-color: transparent; box-sizing: border-box; border: 0px; max-width: 100%; display: block; margin: 12px auto; height: auto;"/>

四、验证LVM并挂载

通过命令,验证LVM是否是完整的

vgs      #查看VG,输出应该是有VG PVE
lvs      #查看LV,可以看到 data root
PVE | PVE忘记密码如何重置 – Vedio Talk - VLOG、科技、生活、乐分享| PVE忘记密码如何重置 – Vedio Talk - VLOG、科技、生活、乐分享" class="wp-image-52415" srcset="https://vt.wooomooo.com/wp-content/uploads/2022/02/image-3.png 956w, https://vt.wooomooo.com/wp-content/uploads/2022/02/image-3-300x67.png 300w, https://vt.wooomooo.com/wp-content/uploads/2022/02/image-3-768x171.png 768w, https://vt.wooomooo.com/wp-content/uploads/2022/02/image-3-150x33.png 150w, https://vt.wooomooo.com/wp-content/uploads/2022/02/image-3-600x134.png 600w, https://vt.wooomooo.com/wp-content/uploads/2022/02/image-3-60x13.png 60w" sizes="(max-width: 956px) 100vw, 956px" style="-webkit-tap-highlight-color: transparent; box-sizing: border-box; border: 0px; max-width: 100%; display: block; margin: 12px auto; height: auto;"/>
vgchange -a y    #激活VG
PVE | PVE忘记密码如何重置 – Vedio Talk - VLOG、科技、生活、乐分享| PVE忘记密码如何重置 – Vedio Talk - VLOG、科技、生活、乐分享" class="wp-image-52416" srcset="https://vt.wooomooo.com/wp-content/uploads/2022/02/image-4.png 1021w, https://vt.wooomooo.com/wp-content/uploads/2022/02/image-4-300x50.png 300w, https://vt.wooomooo.com/wp-content/uploads/2022/02/image-4-768x127.png 768w, https://vt.wooomooo.com/wp-content/uploads/2022/02/image-4-150x25.png 150w, https://vt.wooomooo.com/wp-content/uploads/2022/02/image-4-600x99.png 600w, https://vt.wooomooo.com/wp-content/uploads/2022/02/image-4-60x10.png 60w" sizes="(max-width: 1021px) 100vw, 1021px" style="-webkit-tap-highlight-color: transparent; box-sizing: border-box; border: 0px; max-width: 100%; display: block; margin: 12px auto; height: auto;"/>

挂载lvm

mount /dev/mapper/pve-root /mnt

chroot

chroot /mnt

五、使用命令修改密码

passwd root
PVE | PVE忘记密码如何重置 – Vedio Talk - VLOG、科技、生活、乐分享| PVE忘记密码如何重置 – Vedio Talk - VLOG、科技、生活、乐分享" class="wp-image-52417" srcset="https://vt.wooomooo.com/wp-content/uploads/2022/02/image-5-1024x472-1.png 1024w, https://vt.wooomooo.com/wp-content/uploads/2022/02/image-5-1024x472-1-300x138.png 300w, https://vt.wooomooo.com/wp-content/uploads/2022/02/image-5-1024x472-1-768x354.png 768w, https://vt.wooomooo.com/wp-content/uploads/2022/02/image-5-1024x472-1-150x69.png 150w, https://vt.wooomooo.com/wp-content/uploads/2022/02/image-5-1024x472-1-600x277.png 600w, https://vt.wooomooo.com/wp-content/uploads/2022/02/image-5-1024x472-1-60x28.png 60w" sizes="(max-width: 1024px) 100vw, 1024px" style="-webkit-tap-highlight-color: transparent; box-sizing: border-box; border: 0px; max-width: 100%; display: block; margin: 12px auto; height: auto;"/>