当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 5 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : 大神来看看, fstab的问题.
帖子发表于 : 2015-11-18 13:36 

注册: 2012-03-26 10:29
帖子: 4
送出感谢: 1
接收感谢: 0 次
安装了15.10, 以后fstab里面的smaba共享服务开机无法自动挂载了, 升级到16.04也不行, cat /var/log/syslog里面可以看到有去做挂载动作,但是提示network unreachable, 启动以后手动执行sudo mount -a可以挂载上.

ps: 开机是一直连着网的; 并且我以前一直是可以开机挂载的;
下面是我的fstab, 大神帮忙看一下, 这个是什么问题(急)???:
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda7 during installation
UUID=b9705a66-0a76-4fc8-9c67-278241527129 / ext4 errors=remount-ro 0 1
# /opt was on /dev/sda9 during installation
UUID=63429130-5c9c-479c-a5b5-a616122b1e8c /opt ext4 defaults 0 2
# /usr was on /dev/sda8 during installation
UUID=bdce3933-3cec-4cee-a266-7b510c51987d /usr ext4 defaults 0 2
# /mnt/local was on /dev/sda6 during installation
UUID=f1fd4700-3e1e-d101-407c-46003e1ed101 /mnt/local ext4 defaults 0 2
# swap was on /dev/sda10 during installation
UUID=d7cf0de2-46aa-4834-aa2a-a09ad8541ba8 none swap sw 0 0


#//10.18.11.245/fileroot/ /mnt/245/ cifs username=xxx,password=xxx,iocharset=utf8 0 2
#//10.18.11.248/fileroot/ /mnt/248/ cifs username=xxx,password=xxx,iocharset=utf8 0 2
//10.18.11.246/fileroot/ /mnt/246/ cifs username=xxx,password=xxx,uid=starkli,gid=starkli,iocharset=utf8 0 0
//10.18.11.248/fileroot/ /mnt/248/ cifs username=xxx,password=xxx,uid=starkli,gid=starkli,iocharset=utf8 0 0


页首
 用户资料  
 
2 楼 
 文章标题 : Re: 大神来看看, fstab的问题.
帖子发表于 : 2015-11-18 13:51 

注册: 2012-03-26 10:29
帖子: 4
送出感谢: 1
接收感谢: 0 次
大神们帮忙看看啊, 在网上搜貌似没人遇到过这种现象? :Cry


页首
 用户资料  
 
3 楼 
 文章标题 : Re: 大神来看看, fstab的问题.
帖子发表于 : 2015-11-18 13:54 
头像

注册: 2011-03-20 13:12
帖子: 4519
地址: 山东省寿光县
系统: Debian
送出感谢: 105
接收感谢: 997
引用:
The option _netdev is always recommended for cifs mounts in fstab. Option _netdev delays mounting until the network has been enabled.

1.
尝试增加 _netdev 选项
代码:
username=xxx,password=xxx,_netdev,uid=1000,gid=1000

2.
代码:
sudo systemctl enable NetworkManager-wait-online.service


参考
http://askubuntu.com/questions/399643/cifs-mount-through-fstab-not-mounting-at-boot
https://bbs.archlinux.org/viewtopic.php?id=149830
https://forums.opensuse.org/showthread.php/494136-Issues-mounting-smb-share-at-boot-time-using-fstab-with-openSuse-13-1-(also-experienced-with-12-3)
http://ubuntuforums.org/archive/index.php/t-1132707.html


_________________
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户



_________________
评价: 3.7% stark.li
 
页首
 用户资料  
 
4 楼 
 文章标题 : Re: 大神来看看, fstab的问题.
帖子发表于 : 2015-11-18 14:04 

注册: 2012-03-26 10:29
帖子: 4
送出感谢: 1
接收感谢: 0 次
大神!!! 果然好了....:em09


页首
 用户资料  
 
5 楼 
 文章标题 : Re: 大神来看看, fstab的问题.
帖子发表于 : 2016-04-04 16:45 
头像

注册: 2008-10-31 15:28
帖子: 910
地址: 中国上海
送出感谢: 0 次
接收感谢: 4
3楼厉害。
明显感觉就是网络还没启来,就开始要挂载了。


_________________
家乡:湖南张家界


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 5 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 1 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译