五千年(敝帚自珍)

主题:【求助】谁对Unix比较熟?来教教我怎么mount啊(备有鲜花答谢) -- wsxx

共:💬8 🌺6
全看树展主题 · 分页首页 上页
/ 1
下页 末页
家园 【求助】谁对Unix比较熟?来教教我怎么mount啊(备有鲜花答谢)

我有一个SunOS 5.9的帐号,我把一个c程序送上去编译好,可以运行了。但是这个帐号上的磁盘容量有限,我不能运行大的数据。

我在另外一个服务器上还有较大的空间,我通过SAMBA把数据送到上面了。

我希望用SunOS 5.9上的程序去读取SAMBA上的数据,我在SunOS 5.9上应该怎么写SAMBA上相当于PC上的盘符和路径之类的东西呢?

家园 这样看看

smbmount //servername/sharename /mountdirectory -o username=myusername,password=mypassword

不过可能需要运行smbmount的权限。

关键词(Tags): #samba#mount
家园 谢!看来我没有权限

%smbmount

smbmount: Command not found.

家园 试试这个

mount -t smbfs //servername/sharename /mountdirectory -o username=myusername,password=mypassword

这样呢?具体参数不同版本的UNIX有不同的用法,可以用man mount或者man mount_smbfs查看一下具体的用法。

家园 mount要root权限的

2台机在同一subnet的话不用mount,Solaris早就支持samba了,你先df看一下那台机的samba连在上面没有,没有的话试试看

cd /net/sambaServerName

家园 确实,我没有mount的权限。我找到了/net/sambaServerName,但是

没有找到里面我想要的目录,只有一些其他的目录(我也进不去)。

我是不是需要向管理员提出要求,让他们增加那个目录到/net/sambaServerName下面?

家园 【建议】use NFS

Assume machine A needs to access the disk space of machine B, and A and B are networked.

Requirement: You need the root access on the machine B. Root access on machine A is not required. However, you have make the user ID and group ID on B the same as yours on A. You need to configure and run NFS daemon on B, and some network file system mount daemon (such as autofs or amd) on A. SUN servers usuall run such a daemon.

Issues: Not secure. You won't input password to access the disk on B from A.

Note:

1. In case there is no network file system daemon on A, you can contact your system adm. It should be very easy to do so on a SUN server. Once it is set up, you do not have bother the adm every time.

2. "Export" a directory where there is no sensitive data for NFS. When you do not need to use your disk space, you can stop NFS server on B, and this, to a certain degree, guards against unintended access of your data.

3. Better use NFS on LAN for performance and security sake.

关键词(Tags): #NFS
家园 More info

Since you can see /net/../ on the sun server, I am certain the server has run some network file system daemon, most likely, autofs.

So what you need to do is to set up your own machine. And you can access the disk space on your machine as /net/B/dir.

Bingo.

关键词(Tags): #NFS
全看树展主题 · 分页首页 上页
/ 1
下页 末页


有趣有益,互惠互利;开阔视野,博采众长。
虚拟的网络,真实的人。天南地北客,相逢皆朋友

Copyright © cchere 西西河