Linux排错troubleshooting(5)

2019-03-09 23:14

登陆正常了,显示如下:

五、/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


Linux排错troubleshooting(5).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:大学生宿舍晚归管理办法

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: