『笔记』linux重新安装丢失的内核笔记

linux重新安装丢失的内核
核在引导时,GRUB 列出了下列错误信息。
...
kernel /vmlinuz-2.6.32-71.el6.x86_64 ro root=LABEL=/
Error 15: File not found
Press any key to continue...
进入救援模式: boot: linux rescue
首先用chroot 命令进入他的硬盘:# chroot /mnt/sysimage
bash-4.1# ftp server1
Connected to server1 (172.16.63.242).
220 (vsFTPd 1.2.0)
Name (server1:root): anonymous
331 Please specify the password.
Password: ********
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> cd /pub/rhel6/Server
250 Directory successfully changed.
ftp> get kernel-2.6.32-71.el6.x86_64.rpm
227 Entering Passive Mode (172,16,63,242,242,147)
150 Opening BINARY mode data connection for kernel-2.6.32-71.el6.x86_64.rpm
(7159467 bytes).
226 File send OK.
7159467 bytes received in 0.624 secs (1.1e+04 Kbytes/sec)
ftp> quit
221 Goodbye
bash-4.1# rpm -ihv --force kernel-2.6.32-71.el6.x86_64.rpm
Preparing... ########################################### [100%]
1:kernel ########################################### [100%]
简单看了一下/boot 文件,确定有了新的内核。
bash-4.1# ls /boot
config-2.6.32-71.el6.x86_64 lost+found
efi symvers-2.6.32-71.el6.x86_64.gz
grub System.map-2.6.32-71.el6.x86_64
initramfs-2.6.32-71.el6.x86_64.img vmlinuz-2.6.32-71.el6.x86_64
然后退出了chroot Shell,接着退出了救援模式,重启后,GRUB 成功地找到了新内核。
参与1

0同行回答

“答”则兼济天下,请您为题主分忧!

提问者

zp_ccc
zp_ccc1615
高级技术主管国内某金融科技公司
擅长领域: 存储灾备服务器

相关问题

问题状态

  • 发布时间:2011-11-24
  • 关注会员:1 人
  • 问题浏览:2871
  • X社区推广