kernel-2.6.27 Fn 键的问题 xfce4下terminal和xorg-x11-7.3的冲突问题
Sep 12

公司发存新程序由专人负责的。我需要讲war包上传到一个windws共享目录。由于现在换成Gentoo + xfce4环境了。Thunar又不支持 smb://协议。所以只有自己手动mount了。由于之前已经装过samba了。所以就直接mount一把。

gentoo ~ # mount -t smbfs -o username=aaa,password=aaa //10.200.106.252/updatepack release
ERROR: smbfs filesystem not supported by the kernel
Please refer to the smbmnt(8) manual page
smbmnt failed: 255

发现内核不支持smbfs.就重新编译了一下内核。

< >   SMB file system support (OBSOLETE, please use CIFS)
<M>   CIFS support (advanced network filesystem, SMBFS successor)
  [*]     CIFS statistics
  [*]       Extended statistics
  [*]     Support legacy servers which use weaker LANMAN security
  [*]     CIFS extended attributes
  [*]       CIFS POSIX Extensions
  [*]     Enable additional CIFS debugging routines
  [ ]     CIFS Experimental Features (EXPERIMENTAL)  

当看到SMB file system的时候看到OBSOLETE了,看来不建议使用了。建议使用CIFS,所以就把CIFS选上了。看起来是 SMBFS的继承者。

编译替换内核重启,再mount一把。郁闷的是还提示不行。但是选择CIFS的时候自己想当然的以为CIFS肯定支持SMBFS的。没想到就不是这么回事。如果要mount -t smbfs就必须要选择 SMB file system support 才行。当时就只好用vbox里的windows去访问共享目录了。不过不知道为什么出奇的慢。100M的局域网拷贝十几M的包要20分钟(Orz)。

后来意识到自己的想法是错误的。又不想用废弃的SMB file system support。所以在gentoo-wiki.com中找到了答案。

gentoo ~ # mount -t cifs //10.200.106.252/updatepack /home/rory/release -o "username=aaa,password=aaa,uid=1000,isocharset=cp936"

一切搞定。再把这命令写到启动脚本里。

rory@gentoo ~ $ more /etc/conf.d/local.start
# /etc/conf.d/local.start

# This is a good place to load any misc programs
# on startup (use &>/dev/null to hide output)

############## smbmount release from dual ################
mount -t cifs //10.200.106.252/updatepack /home/rory/release -o "username=aaa,password=aaa,uid=1000,isocharset=
cp936"

##########################################################

如果你没有local.start 应该有 local 文件。感谢 druggo 的帮忙。


Like others

4 Responses to “在gentoo中挂载windows共享文件夹”

  1. r Says:

    其实Nautilus与xfce不冲突,

    我就也是用着Gentoo+xfce4,但文件管理器还是打开Nautilus去用smb://协议、nfs协议、和ssh://协议。Nautilus功能太强了,Thunar在这方面还差一点。

  2. 莫多(somebody) Says:

    是啊。以前也用Nautilus + gnomevfs 来实现的。
    不过需要gnome相关的包。
    我是不想装那些。这次才没有用nautilus.

  3. fred Says:

    gentoo已经有两年没有发版了。。。

  4. 莫多(somebody) Says:

    没有吧。最新的2008.0才发布没几个月。

    不过用gentoo不在乎发行新版本啊。

    从内核到所有软件都事实在更新。根本用不着等新发行版本重装啊。

    虽然ubuntu也提供发行版本的upgrade.

    可是从我用来7.04 -> 7.10 -> 8.04  升级下来启动速度就成问题了。不知道都有哪些残留的东西需要清理。。

    用了gentoo就不用担心这个了。大不了 --depclean一下 修复一下依赖。 干干净净。

    ps:slack 也是这样的吧? 没有用过。

Leave a Reply

Identifying Code