- 论坛徽章:
- 0
|
[root@HH-27 root]# mount -t smbfs -o username=adminstrator,password=ZGFYzgfy//192.168.0.4/game /mnt/game
Usage: mount -V : print version
mount -h : print this help
mount : list mounted filesystems
mount -l : idem, including volume labels
So far the informational part. Next the mounting.
The command is `mount [-t fstype] something somewhere'.
Details found in /etc/fstab may be omitted.
mount -a [-t|-O] ... : mount all stuff from /etc/fstab
mount device : mount device at the known place
mount directory : mount known device here
mount -t type dev dir : ordinary mount command
Note that one does not really mount a device, one mounts
a filesystem (of the given type) found on the device.
One can also mount an already visible directory tree elsewhere:
mount --bind olddir newdir
or move a subtree:
mount --move olddir newdir
A device can be given by name, say /dev/hda1 or /dev/cdrom,
or by label, using -L label or by uuid, using -U uuid .
Other options: [-nfFrsvw] [-o options].
For many more details, say man 8 mount .
[root@HH-27 root]# mount -t smbfs -o username=adminstrator,password=ZGFYzgfy //1
92.168.0.4/game /mnt/game
Could not resolve mount point /mnt/game
[root@HH-27 root]# mount -t smbfs -o username=guest,password= //192.168.0.4/game /mnt/game
Could not resolve mount point /mnt/game
[root@HH-27 root]# smbclient //192.168.0.4/game -U administrator
added interface ip=192.168.45.27 bcast=192.168.255.255 nmask=255.255.0.0
session request to 192.168.0.4 failed (Called name not present)
session request to 192 failed (Called name not present)
Password:
Domain=[WORKGROUP] OS=[Windows 5.0] Server=[Windows 2000 LAN Manager]
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
[root@HH-27 root]# smbclient //192.168.0.4/game -U guest
added interface ip=192.168.45.27 bcast=192.168.255.255 nmask=255.255.0.0
session request to 192.168.0.4 failed (Called name not present)
session request to 192 failed (Called name not present)
Password:
Domain=[WORKGROUP] OS=[Windows 5.0] Server=[Windows 2000 LAN Manager]
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
[root@HH-27 root]# smbclient //192.168.45.26/F -U HH-26
added interface ip=192.168.45.27 bcast=192.168.255.255 nmask=255.255.0.0
session request to 192.168.45.26 failed (Called name not present)
session request to 192 failed (Called name not present)
session request to *SMBSERVER failed (Called name not present)
[root@HH-27 root]# smbclient //192.168.45.14/Download -U administrator
added interface ip=192.168.45.27 bcast=192.168.255.255 nmask=255.255.0.0
session request to 192.168.45.14 failed (Called name not present)
session request to 192 failed (Called name not present)
Password:
Domain=[WORKGROUP] OS=[Windows 5.0] Server=[Windows 2000 LAN Manager]
smb: \>; ls
. D 0 Tue May 11 20:48:24 2004
.. D 0 Tue May 11 20:48:24 2004
wangzhi.txt A 15 Mon Oct 25 20:53:56 2004
__CS D 0 Sun Aug 29 17:26:34 2004
Temporary Internet Files DS 0 Sun Aug 29 20:54:20 2004
2K_XP D 0 Thu Sep 2 13:13:28 2004
tiantang.txt A 819 Fri Oct 22 04:06:20 2004
Thumbs.db HS 23040 Tue Aug 31 20:27:12 2004
isa2000 D 0 Sat Sep 4 23:55:16 2004
Linux____ D 0 Sun Oct 24 20:25:46 2004
Swf2Gif_v1.33-kYiNG D 0 Sun Oct 24 21:58:02 2004
18293X57165.mp3 A 5403382 Mon Oct 25 21:00:44 2004
pmlx35 D 0 Thu Sep 16 21:36:56 2004
subversion.wmv A 24589260 Tue Oct 26 11:25:34 2004
34321 blocks of size 65536. 28176 blocks available
smb: \>; cp Linux____ /home/zhazha/hh-14
cp: command not found
smb: \>; cp Linux____/*.* /home/zhazha/hh-14
cp: command not found
smb: \>; man cp
man: command not found
smb: \>; cd Linux____
cd \Linux____\: NT_STATUS_OBJECT_NAME_NOT_FOUND
smb: \>; ls
. D 0 Tue May 11 20:48:24 2004
.. D 0 Tue May 11 20:48:24 2004
wangzhi.txt A 15 Mon Oct 25 20:53:56 2004
__CS D 0 Sun Aug 29 17:26:34 2004
Temporary Internet Files DS 0 Sun Aug 29 20:54:20 2004
2K_XP D 0 Thu Sep 2 13:13:28 2004
tiantang.txt A 819 Fri Oct 22 04:06:20 2004
Thumbs.db HS 23040 Tue Aug 31 20:27:12 2004
isa2000 D 0 Sat Sep 4 23:55:16 2004
Linux____ D 0 Sun Oct 24 20:25:46 2004
Swf2Gif_v1.33-kYiNG D 0 Sun Oct 24 21:58:02 2004
18293X57165.mp3 A 5403382 Mon Oct 25 21:00:44 2004
pmlx35 D 0 Thu Sep 16 21:36:56 2004
subversion.wmv A 24589260 Tue Oct 26 11:25:34 2004
34321 blocks of size 65536. 28176 blocks available
smb: \>; cp wangzhi.txt /home/zhazha/hh-14
cp: command not found
smb: \>;
各位大哥大姐帮我看看这是什么问题呢?谢谢!
在出现这些问题之前,我在LINUX系统上什么也没装,好象都是RH9.0自带的吧
因为RH9好象自带了很多东西,比如chinput等,samba好象也是自带的!!!
192.168.0.4是局域网内的服务器(电影、歌曲、工具)
192.168.45.27是LINUX RH9
192.168.45.14是局域网内的一普通的WIN2000和WINXP机器
192.168.45.26是局域网内的一台普通的WIN98机器
因为局域网很大,所以网段最高是192.168.100.* |
|