Chinaunix首页 | 论坛 | 博客
  • 博客访问: 717625
  • 博文数量: 235
  • 博客积分: 4309
  • 博客等级: 中校
  • 技术积分: 2325
  • 用 户 组: 普通用户
  • 注册时间: 2011-01-17 11:25
个人简介

If you don\\\\\\\\\\\\\\\'t wanna do it, you find an EXCUSE; if you do, you\\\\\\\\\\\\\\\'ll find a WAY :-)

文章分类

全部博文(235)

文章存档

2014年(3)

2013年(2)

2012年(31)

2011年(199)

分类: LINUX

2011-02-17 18:23:39

【Troubleshooting】:故障排除
『Things to Check: X』(检查图形界面故障)
Never debud X while in runlevel 5
Reboot the system to runlevel 3
[root@rhel5 ~]# vi /etc/inittab →→  首先编辑配置文件修改runlevel 为:3 
Id 3:initdefault
.............
[root@rhel5 ~]# reboot →→  重启
[root@rhel5 ~]# system-config-display →→  看看能不能开启图形界面显示配置工具, 如果没

成功开启表示问题可能出在显示卡。
[root@rhel5 ~]# X -probeonly →→  检查显卡,如果显卡没有问题的话接下来查看/home 和
/var
这两个目录空间是否占满。
[root@rhel5 ~]# df -h /home
[root@rhel5 ~]# df -h /var →→  如果没有占满, 接下来查看xfs 服务是否运行正常
[root@rhel5 ~]# service xfs status
Xfs (pid 2535) is running . .
『Things to Check: Networking』(检查网络问题)
Hostname resolution
Dig hostname
IP configuration
Ifconfig
Default gateway
Route -n
Correct kernel modules for NIC?
[root@rhel5 ~]# cat /etc/modprobe.conf →→  查看网卡驱动模组是否载入成功
Device activation →→  重启看看是否正常
[root@rhel5 ~]# ifdown eth0
[root@rhel5 ~]# ifup eth0
【Order of the Boot Process】:
Bootloader configuration
GRUB
Kernel
Panic
/sbin/init
/etc/inittab
is the root filesystem damaged?
/etc/rc.d/rc.sysinit
/bin/bash
/etc/fstab
/etc/rc.d/rc
/etc/rc.d/rc?.d/
【Filesystem Corruption】: (当机、非正常关机造成)
Umount the filesystem
fsck -y
Mount the filesystem
[root@rhel5 ~]# umount /home
[root@rhel5 ~]# ls /home →→  目录中为空说明目录真的被卸载掉了
[root@rhel5 ~]# fsck -y /dev/sda2 →→  测试并修复指定的档案系统
[root@rhel5 ~]# mount /dev/sda2 /home →→  挂载到/home 目录上
[root@rhel5 ~]# ls /home →→  查看是否修复成功
【Recovery Run-levels】: (修复Run-level)
Single user mode
Runlevel 1 → init → /etc/rc.sysinit → /etc/rc1.d→→ 
Runlevel S → init → /etc/rc.sysinit
Runlevel emergency → init → some /etc/rc.sysinit (sulogin)
【Rescue Mode】: (救援模式)
Boot from CD-ROM / USB
[root@rhel5 ~]# dd if=/dev/zero of=/dev/sda bs=446 count=1 →→  破坏开机管理程序MBR

光碟开机后输入: linux rescue
boot: : linux rescue
因为系统被挂载到了: /mnt/sysimage/ 所以:
Sh-3.00# chroot /mnt/sysimage/ →→  我们需要更改root 目录所在位置
Sh-3.00# grub-install /dev/sda →→  修复GRUB 
Sh-3.00# exit →→  exit change root 
Sh-3.00# exit →→  exit rescue mode 
[root@rhel5 ~]# vi /boot/grub/grub.conf
Kernel /vmlinuz-2.6.9-5.EL ro root=LABEL= →→  系统会找不到根目录! 
~

~:wq

阅读(272) | 评论(0) | 转发(0) |
0

上一篇:RHEL 5.4 DNS

下一篇:RHEL5.4.tutorial.tips.1st

给主人留下些什么吧!~~