linux挂载共享文件
2015-12-29 08:41
751 查看
今天为将CentOS 下mysql数据库备份至windows共享目录,挂载windows共享目录的时候总是报错,经过一翻百度之后,终于解决。
[root@www ~]# mount -t cifs -o username=domain\administrator,password=Test123 //192.168.1.10/share /databackup
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
原因:命令中关于域的格式不对,正确的是:
mount -t cifs -o domain=test.com,username=administrator,password=test123
//192.168.1.10/share /databackup
或
mount -t cifs -o username=domain/administrator,password=test123
//192.168.1.10/share
/databackup
/var/log/messages内容:
Sep 26 09:50:40 www kernel: Status code returned 0xc000006d NT_STATUS_LOGON_FAILURE
Sep 26 09:50:40 www kernel: CIFS VFS: Send error in SessSetup = -13
Sep 26 09:50:40 www kernel: CIFS VFS: cifs_mount failed w/return code = -13
[root@www ~]# mount -t cifs -o username=name,password=123 //192.168.1.10/share /databackup
mount error(127): Key has expired
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
/var/log/messages内容:
Sep 26 09:56:05 www kernel: Status code returned 0xc0000224 NT_STATUS_PASSWORD_MUST_CHANGE
Sep 26 09:56:05 www kernel: CIFS VFS: Send error in SessSetup = -127
Sep 26 09:56:05 www kernel: CIFS VFS: cifs_mount failed w/return code = -127
原因:帐号的密码过期,将windows帐号的密码改为永不过期。
[root@www /]# mount -t cifs -o username=testuser,password=123 //192.168.214.128/npwpw /databackup
mount error(5): Input/output error
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
Sep 26 11:04:18 www kernel: CIFS VFS: cifs_mount failed w/return code = -5
原因:/databackup已经挂载了,需要先umonut,再mount
让linux 启动自动挂载在/etc/fstab中增加
//192.168.1.100/test /media cifs defaults,username=manifold,password=manifolden 0 2
2008-11-05 19:03
mount: unknown filesystem type "smbfs’
今天在使用FC6时,发现mount不了windows的共享盘
mount -t smbfs -o username=xxx,password=xxx //hostname/dir /mnt/tmp
mount: unknown filesystem type ’smbfs’
系统已经不能识别smbfs文件系统了
查资料说RHE5的kernel已经不再支持smbfs,而改用Common Internet File Systemcifs(cifs)取代了原有的smbfs,猜想fc6也做了这个改动,所以命令就改为:
# mount -t cifs -o username=xxx,password=xxx //hostname/dir /mnt/tmp
很顺利地mount上了
今天为将CentOS 下mysql数据库备份至windows共享目录,挂载windows共享目录的时候总是报错,经过一翻百度之后,终于解决。
[root@www ~]# mount -t cifs -o username=domain\administrator,password=Test123 //192.168.1.10/share /databackup
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
原因:命令中关于域的格式不对,正确的是:
mount -t cifs -o domain=test.com,username=administrator,password=test123
//192.168.1.10/share /databackup
或
mount -t cifs -o username=domain/administrator,password=test123
//192.168.1.10/share
/databackup
/var/log/messages内容:
Sep 26 09:50:40 www kernel: Status code returned 0xc000006d NT_STATUS_LOGON_FAILURE
Sep 26 09:50:40 www kernel: CIFS VFS: Send error in SessSetup = -13
Sep 26 09:50:40 www kernel: CIFS VFS: cifs_mount failed w/return code = -13
[root@www ~]# mount -t cifs -o username=name,password=123 //192.168.1.10/share /databackup
mount error(127): Key has expired
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
/var/log/messages内容:
Sep 26 09:56:05 www kernel: Status code returned 0xc0000224 NT_STATUS_PASSWORD_MUST_CHANGE
Sep 26 09:56:05 www kernel: CIFS VFS: Send error in SessSetup = -127
Sep 26 09:56:05 www kernel: CIFS VFS: cifs_mount failed w/return code = -127
原因:帐号的密码过期,将windows帐号的密码改为永不过期。
[root@www /]# mount -t cifs -o username=testuser,password=123 //192.168.214.128/npwpw /databackup
mount error(5): Input/output error
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
Sep 26 11:04:18 www kernel: CIFS VFS: cifs_mount failed w/return code = -5
原因:/databackup已经挂载了,需要先umonut,再mount
让linux 启动自动挂载在/etc/fstab中增加
//192.168.1.100/test /media cifs defaults,username=manifold,password=manifolden 0 2
Linux下mount Window的共享文件夹
mount: unknown filesystem type "smbfs"2008-11-05 19:03
mount: unknown filesystem type "smbfs’
今天在使用FC6时,发现mount不了windows的共享盘
mount -t smbfs -o username=xxx,password=xxx //hostname/dir /mnt/tmp
mount: unknown filesystem type ’smbfs’
系统已经不能识别smbfs文件系统了
查资料说RHE5的kernel已经不再支持smbfs,而改用Common Internet File Systemcifs(cifs)取代了原有的smbfs,猜想fc6也做了这个改动,所以命令就改为:
# mount -t cifs -o username=xxx,password=xxx //hostname/dir /mnt/tmp
很顺利地mount上了
相关文章推荐
- Linux下yum命令详解
- Linux Grub 开机画面制作
- Linux sync命令的作用
- linux下监测命令执行结果的工具watch小结
- linux下网卡配置管理工具ifconfig小结
- Linux下面安培星际译王-Stardict
- Linux笔记 磁盘管理fdisk,mek2fs,mount&unmount,分区表fstab
- 如何在CentOS 5/6上安装EPEL源
- Dropbox 在 Linux 上终止除了 Ext4 之外所有文件系统的同步支持
- #include <linux/string.h>
- 【转】Linux搭建DNS域名服务器
- centos 6.X minimal 系列最小化安装完成后,安装mono和jexus过程小记录
- maven项目部署到linux上的奇葩问题
- 两个命令实现Linux下定时删除临时文件
- useradd添加用户无法进入可视化界面
- 后台编译linux内核代码的方法
- Hadoop实战(一) 在VMWare上搭建centos虚拟机集群
- Linux平台Makefile文件的编写基础入门(课堂作业)
- linux 中 timeval结构体
- linux命令