Chinaunix首页 | 论坛 | 博客
  • 博客访问: 536536
  • 博文数量: 28
  • 博客积分: 150
  • 博客等级: 入伍新兵
  • 技术积分: 429
  • 用 户 组: 普通用户
  • 注册时间: 2011-01-25 12:07
个人简介

Cisco Certified Internetwork Expert(Routing and Switching) CCIE R&S 2101X, IBM Certified Advanced Technical Expert - Power Systems with AIX v2, Red Hat Certified Engineer RHCE 130-165-39X, Oracle Certified Master 10g

文章分类

全部博文(28)

文章存档

2018年(1)

2017年(2)

2016年(4)

2015年(8)

2014年(4)

2013年(2)

2011年(7)

我的朋友

分类: LINUX

2011-05-17 18:55:40

========phanx.com========
Author:   phanx
Updated: 2011-5-17
转载请保留作者信息
=========================

一台RHEL4的服务器被强制删除了glibc-2.3.4-2.36包。 所有的命令都无法执行,都报错:
 
-bash: /bin/ls: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
用RHEL4的光盘启动到linux rescue模式,准备重新安装glibc包,却发现/dev下没有scd0设备。
通过dmesg|grep -i cdrom 发现光驱设备名为sr0,只是在/dev下没有找到这个文件。
 
  1. cat /proc/devices

  2. Block devices:
  3.   1 ramdisk
  4.   7 loop
  5.   8 sd
  6.   9 md
  7.  11 sr
  8. .......
  9. mknod /dev/scd0 b 11 0
  10. mount /dev/scd0 -o loop,ro /mnt/source
  11. rpm -ih /mnt/source/Redhat/RPMS/glibc-2.3.4-2.36.i386.rpm --root=/mnt/sysimages --force
重启系统,问题解决。
阅读(2294) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~