模拟/boot目录误删恢复操作

[root@localhost ~]# cp /boot/grub2/grub.cfg /tmp

[root@localhost ~]# ls /tmp/

grub.cfg                                                                 systemd-private-807b399733714e39aa4ecd0d9014050b-rtkit-daemon.service-WEUPBL

ssh-NM7UekT31xY7                                                         systemd-private-807b399733714e39aa4ecd0d9014050b-vgauthd.service-uMUtwP

systemd-private-807b399733714e39aa4ecd0d9014050b-chronyd.service-95432r  systemd-private-807b399733714e39aa4ecd0d9014050b-vmtoolsd.service-MoVII8

systemd-private-807b399733714e39aa4ecd0d9014050b-colord.service-I1oIBH   tracker-extract-files.0

systemd-private-807b399733714e39aa4ecd0d9014050b-cups.service-SG5h3q

[root@localhost ~]# rm -rf /boot/grub2/grub.cfg

[root@localhost~]#ls /boot/grub2/

device.map  fonts  grubenv  i386-pc  locale

模拟/boot目录误删恢复操作_第1张图片

模拟/boot目录误删恢复操作_第2张图片

模拟/boot目录误删恢复操作_第3张图片

模拟/boot目录误删恢复操作_第4张图片

Boot误删

 

config-3.10.0-693.el7.x86_64

efi

grub

grub2

initramfs-0-rescue-d6b1971c9cfe4d5cac8ca7357e569311.img

initramfs-3.10.0-693.el7.x86_64.img

initramfs-3.10.0-693.el7.x86_64kdump.img

initrd-plymouth.img

symvers-3.10.0-693.el7.x86_64.gz

System.map-3.10.0-693.el7.x86_64

vmlinuz-0-rescue-d6b1971c9cfe4d5cac8ca7357e569311

vmlinuz-3.10.0-693.el7.x86_64

[root@localhost ~]# ls /boot/grub2

device.map  fonts  grub.cfg  grubenv  i386-pc  locale

 

转载于:https://www.cnblogs.com/elin989898/p/11332341.html

你可能感兴趣的:(模拟/boot目录误删恢复操作)