• 模拟/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误删

    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

  • 相关阅读:
    OpenGL学习之路(四)
    OpenGL学习之路(三)
    ajax请求成功后新开窗口window.open()被拦截解决方法
    Mysql日志解析
    Kibana+Logstash+Elasticsearch 日志查询系统
    谈谈Redis的SETNX
    常用前端开发工具合集
    Media Queries 详解
    启动mysql时显示:/tmp/mysql.sock 不存在的解决方法
    找不到mysql.sock,mysql.sock丢失问题解决方法
  • 原文地址:https://www.cnblogs.com/elin989898/p/11332341.html
Copyright © 2020-2023  润新知