码迷,mamicode.com
首页 > 系统相关 > 详细

Linux一直启动不了的解决方法

时间:2015-12-18 22:40:08      阅读:1419      评论:0      收藏:0      [点我收藏+]

标签:

Linux一直启动不了的解决方法

 

虚拟机里的Linux启动不起来

决定开机 按住esc键,看一下到底启动到哪一步出错

技术分享

 

从图中可以看出是挂载文件系统的时候出错,文件系统是CIFS, 是samba,Unable to find suitable address

说明机器找不到samba服务器的地址

 

先用单用户模式启动,编辑/etc/fstab文件

vi  /etc/fstab

技术分享

注释掉挂载samba那一行

 

然后重启机器,发现还是不行,

技术分享

 

发现这次轮到挂载NFS出问题

再次注释掉NFS那一行重新启动机器

 

这次启动成功,马上ping 一下服务器地址是否能通

技术分享

 

手工挂载NFS,发现有问题

# mount -t nfs -o nolock,nfsvers=3 192.168.1.106:/tmp/ /tmp/nfs/
mount.nfs: requested NFS version or transport protocol is not supported
# showmount -e 192.168.1.106
clnt_create: RPC: Program not registered

 

 

在服务器端执行exportfs -arv 

exportfs -arv
exporting 192.168.1.0/24:/tmp
exporting 192.168.1.109:/tmp to kernel
exportfs: internal: no supported addresses in nfs_client
exportfs: 192.168.1.109:/tmp: No such file or directory

 

 

最后用ps命令 发现nfs服务和rpcbind服务都没有启动

#启动服务
service nfs  start
service rpcbind  start


#加入启动服务列表
chkconfig --add rpcbind
chkconfig rpcbind on


chkconfig --add nfs
chkconfig nfs on


#检查
chkconfig --list |grep -E nfs|rpcbind

 

Linux一直启动不了的解决方法

标签:

原文地址:http://www.cnblogs.com/MYSQLZOUQI/p/5058333.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!