#11 2008-12-14 16:02:01
Re: SAMBA 進階應用 - smbmount / smbumount
嘗試掛載 mount:
$ smbmount //wl-500g/Share /opt/share/wl-500g -o username=admin,password=你的密碼
接下來可用 df 指令檢視 mount 結果
$ df
......
我的[admin@WL-500gp etc]$ smbclient -L //192.168.1.2
Enter admin's password:
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.0.23c]
Sharename Type Comment
--------- ---- -------
Share Disk
IPC$ IPC IPC Service (MyBookWorld)
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.0.23c]
Server Comment
--------- -------
ASUS_500GP ASUS_500GP
MYBOOKWORLD MyBookWorld
Workgroup Master
--------- -------
WORKGROUP ASUS_500GP
[admin@WL-500gp etc]$ smbclient //192.168.1.2/shares/
Enter admin's password:
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.0.23c]
Server not using user level security and no password supplied.
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
[admin@WL-500gp etc]$
smbmount //192.168.1.2/Share /opt/share/wl-500g/
password
execvp of smbmnt failed. Error was No such file or directory.smbmnt failed: 1
[admin@WL-500gp etc]$ smbmount //192.168.1.2/Share /opt/share/wl-500g/ -o userna
me=mybook,password=123456
execvp of smbmnt failed. Error was No such file or directory.smbmnt failed: 1
[admin@WL-500gp etc]$ mount -t smbfs -o //192.168.1.2/Share /opt/share/wl-500g
mount: Cannot read /etc/fstab: No such file or directory
我不知道哪里错了,请大家帮帮我。
最後修改: zchwy (2008-12-14 16:09:42)
離線
#13 2008-12-14 17:24:42
Re: SAMBA 進階應用 - smbmount / smbumount
hippo 提到:
先確認核心模組
$ lsmod Module Size Used by Tainted: P smbfs 48248 1 (省略)
然後依照站長的教學, 應該就能使用.
admin@WL-500gp bt]$ lsmod
Module Size Used by Tainted: P
smbfs 48248 0
usb-storage 63928 2
sd_mod 13276 4
scsi_mod 70200 2 [usb-storage sd_mod]
videodev 8312 0
audio 50664 0 (unused)
soundcore 5288 0 [audio]
printer 12900 0 (unused)
ehci-hcd 23804 0 (unused)
usb-uhci 28580 0 (unused)
usbcore 78496 1 [usb-storage audio printer ehci-hcd usb-uhci]
ip_nat_ftp 3912 0 (unused)
ip_conntrack_ftp 5216 1
wl 892280 0 (unused)
et 31288 0 (unused)
確認核心模組没问题,而且smbclient -L //192.168.1.2
也正常,可以看到共享文件
離線
相關討論主題
主題 | 回覆 | 點閱 | 最後發表 |
---|---|---|---|
如果N13U B1刷DD-WRT下QoS,P2P,BT,架設FTP,Samba,Web+php 作者 hollowaysxp
|
1 | 12678 | 2011-11-15 20:32:59 作者 changeway |
RT-n16 DD samba 和FTP傳輸問題 作者 wchpei
|
2 | 13246 | 2011-11-11 09:28:34 作者 wchpei |
samba 3 nas 無法由主機名稱找到 只能從ip找 作者 ted_chou12
|
6 | 23515 | 2011-02-02 12:26:32 作者 hannahmo |
|
10 | 47926 | 2010-02-24 18:01:05 作者 hippo |
|
97 | 292014 | 2009-12-11 23:58:02 作者 leon.z |