In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
CentOS7 delete boot directory to play.
Grub2-install can resume the stage1-stage2 phase
1. Delete / boot
[root@localhost ~] # rm / boot-rf
Second, can't get up.
Grub, all the started img images are gone.
Third, CD-ROM rescue
Reference: https://blog.51cto.com/14012942/2426097
Sh-4.2# chroot / mnt/sysimage # cut root bash-4.2# mount / dev/cdrom / mnt # bash-4.2# rpm-ivh / mnt/Packages/kernel-3.10.0-957.el7.x86_64.rpm # install kernel bash-4.2# grub2-install / dev/sda # to restore stag1-stage2 Phase bash-4.2# grub2-mkconfig-o / boot/grub2/grub.cfg # generates grub.cfgbash-4.2# sync
Take a look at the file generated by kernel-3.10.0-957.el7.x86_64.rpm in the boot directory
[root@localhost ~] # rpm-ql kernel-3.10.0-957.el7.x86_64 | grep ^ / boot/boot/.vmlinuz-3.10.0-957.el7.x86_64.hmac/boot/System.map-3.10.0-957.el7.x86_64/boot/config-3.10.0-957.el7.x86_64/boot/initramfs-3.10.0-957.el7.x86cm 64.img bank bootbank symversMe 3.10.0- 957.el7.x86_64.gz/boot/vmlinuz-3.10.0-957.el7.x86_64
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.