centos6.5系统bash损坏之救援模式修复
2016-05-12 21:36
716 查看
1.模拟bash被损坏的情况
# mv /bin/bash /tmp
[root@localhost ~]# sync
[root@localhost ~]# shutdown -r now
2.挂载光盘,设置从光盘启动
![](http://img.blog.csdn.net/20160512213639932)
选择并进入系统修复模式
![](http://img.blog.csdn.net/20160512213652416)
![](http://img.blog.csdn.net/20160512213709827)
![](http://img.blog.csdn.net/20160512213715359)
![](http://img.blog.csdn.net/20160512213728448)
创建
# mkdir /media
# mount /dev/dvd /media
# cd /media/Packages
# rpm -ivh bash-4.1.2-15.el6_4.x86_64.rpm --replacepkgs --root /mnt/sysimage
# chroot /mnt/sysimage
![](http://img.blog.csdn.net/20160512213755922)
完成修复
# mv /bin/bash /tmp
[root@localhost ~]# sync
[root@localhost ~]# shutdown -r now
2.挂载光盘,设置从光盘启动
选择并进入系统修复模式
创建
# mkdir /media
# mount /dev/dvd /media
# cd /media/Packages
# rpm -ivh bash-4.1.2-15.el6_4.x86_64.rpm --replacepkgs --root /mnt/sysimage
# chroot /mnt/sysimage
完成修复
相关文章推荐
- 15分钟熟悉HBase Shell命令
- Shell编程练习
- tensorflow之使用shell脚本定义自己的图片标签
- spark-shell出错_解决方法
- shell浅谈之六字符串和文件处理
- 【转】【Android测试技巧】01. root后adb shell默认不是root用户时,如何将文件放入手机系统中
- python 调用shell 命令 方式
- shell浅谈之五文本处理工具Vim
- shell-1.shell注释
- 使用expect实现shell自动交互
- java 过滤掉特殊字符以及sql、shell命令
- nohup-真正的Shell后台运行
- Spark Shell & Spark submit
- 写shell脚本速查笔记
- Shell编程实现随机函数
- 第 13 章 学习shell script
- adb shell
- adb shell
- adb shell
- adb shell