錯誤緣由linux
dd if=/dev/zero of=/dev/vda bs=446 count=1 reboot
須要在虛擬機shut off時,開始配置
修正bash
virt-manager 添加光驅 browse 7.0鏡像 boot options 光驅優先級最高 -->apply -->troubleshooting -->rescue a hat hat enterprise linux system -->continue -->ok -->ok sh-4.2#df sh-4.2#chroot /mnt/sysimage/ bash-4.2#grub2-install /dev/vda bash-4.2#exit sh-4.2#exit 進入硬盤啓動
兩次exit,系統會自啓動app
錯誤緣由spa
rm -rf /boot/grub2/grub.cfg reboot
修正3d
錯誤緣由
rm -rf /boot/vmlinuz-3.10.0-123.el7.x86_64
rebootcode
修正blog
錯誤緣由
rm -rf initramfs-3.10.0-123.el7.x86_64.img
reboot圖片
修正get
進入光驅啓動 chroot /mnt/sysimage/ mkinitrd /boot/initramfs-$(uname -r).img $(uname -r) 兩次exit 進入硬盤啓動 reboot
錯誤緣由:
[root@localhost Desktop]# ln -snf /usr/lib/systemd/system/poweroff.target /etc/systemd/system/default.target #默認程序軟連接到關機程序上
[root@localhost Desktop]# reboot虛擬機
修正:
上下按[e]
添加5
ctrl + x
[root@localhost Desktop]# systemctl set-default graphical.target
上下按[e]
ctrl + x
ro及後面換成rw rd.break
switch_root:/# chroot /sysroot/
echo westos | passwd --stdin root
touch /.autorelabel
exit
exit