登陆正常了,显示如下:
五、/etc/fstab文件错误
[root@51cto ~]# cat /etc/fstab //查看该文件
LABEL=/ / ext3 defaults 1 1 LABEL=/home /home ext3 defaults 1 2 LABEL=/boot /boot ext3 defaults 1 2 tmpfs /dev/shm tmpfs defaults 0 0 devpts /dev/pts devpts gid=5,mode=620 0 0 sysfs /sys sysfs defaults 0 0 proc /proc proc defaults 0 0 LABEL=SWAP-sda5 swap swap defaults 0 0 /dev/sdb1 /51cto ext3 ro,noexec 0 0 如果把该文件删掉重启系统: [root@51cto ~]# rm /etc/fstab
rm:是否删除 一般文件 “/etc/fstab”? y [root@51cto ~]# ll /etc/fstab ls: /etc/fstab: 没有那个文件或目录 [root@51cto ~]# reboot
Broadcast message from root (pts/0) (Sun Oct 10 08:42:43 2010): The system is going down for reboot NOW!
由于该文件的丢失,所以系统硬盘无法使用了,只有重新把/etc/fstab恢复,必须手写进去
然后重启系统查看:
六、/etc/inittab文件错误 [root@51cto ~]# cat /etc/inittab # # inittab
This file describes how the INIT process should set up #
the system in a certain run-level. # # Author:
Miquel van Smoorenburg,
Modified for RHS Linux by Marc Ewing and Donnie Barnes #
# Default runlevel. The runlevels used by RHS are: #
0 - halt (Do NOT set initdefault to this) #
1 - Single user mode #
2 - Multiuser, without NFS (The same as 3, if you do not have networking) #
3 - Full multiuser mode #
4 - unused # 5 - X11 #
6 - reboot (Do NOT set initdefault to this) #
id:3:initdefault:
# System initialization. si::sysinit:/etc/rc.d/rc.sysinit