What am I doing wrong? I can access the NT-machine with smbclient,
but I cannot mount it. BTW, -c does not work for me, so I am using
echo. -Winfried
root@xxxxx:~> echo '!/usr/bin/smbmnt /.backup' \
| /usr/bin/smbmount-2.2 //gandalf/Backup mypassword -U Backup
Added interface ip=192.168.1.1 bcast=192.168.1.255 nmask=255.255.255.0
Server time is Sun Feb 21 01:27:33 1999
Timezone is UTC+1.0
Domain=[] OS=[Windows NT 4.0] Server=[NT LAN Manager 4.0]
security=user
smb: \> smb: \> root@xxxxx:~> ls -l /.backup
ls: /.backup: Input/output error
root@Hermes:~> /usr/bin/smbclient //gandalf/Backup mypassword -U Backup
Added interface ip=192.168.1.1 bcast=192.168.1.255 nmask=255.255.255.0
Domain=[TC.DE] OS=[Windows NT 4.0] Server=[NT LAN Manager 4.0]
smb: \> dir
. DA 0 Fri Feb 12 13:04:08 1999
.. DA 0 Fri Feb 12 13:04:08 1999
backup-21_01_1999.tgz 4805478 Thu Jan 21 06:44:21 1999
backup_log-01_11_1998.txt 13185 Sun Nov 1 06:43:52 1998
backup_log-15_11_1998.txt 13217 Sun Nov 15 06:42:09 1998
backup_log-18_01_1999.txt 13375 Mon Jan 18 06:42:11 1999
backup_log-19_01_1999.txt 13774 Tue Jan 19 06:43:52 1999
backup_log-19_11_1998.txt 14734 Thu Nov 19 06:47:11 1998
[..]
65514 blocks of size 32768. 7330 blocks available
Winfried Truemper <winni@xpilot.org> wrote:> What am I doing wrong? I can access the NT-machine with smbclient, > but I cannot mount it. BTW, -c does not work for me, so I am using > echo. -Winfried > > > root@xxxxx:~> echo '!/usr/bin/smbmnt /.backup' \ > | /usr/bin/smbmount-2.2 //gandalf/Backup mypassword -U Backup > Added interface ip=192.168.1.1 bcast=192.168.1.255 nmask=255.255.255.0 > Server time is Sun Feb 21 01:27:33 1999 > Timezone is UTC+1.0 > Domain=[] OS=[Windows NT 4.0] Server=[NT LAN Manager 4.0] > security=user > smb: \> smb: \> root@xxxxx:~> ls -l /.backup > ls: /.backup: Input/output errorThings to check: 1) You are running a 2.2.x kernel (or at least 2.1.x where x > 70) 2) Your kernel is compiled with smbfs support, either inside the kernel or as a module. 3) If you compiled smbfs support as a module, make sure it is loaded (run lsmod). 4) The correct syntax for what you are trying to do is: smbmount-2.2 //gandalf/Backup mypassword -c 'mount /.backup' -U Backup I don't know why you say that -c does not work for you. Probably you are doing something like "-c /usr/bin/smbmnt /.backup", which is incorrect. Hopefully when you correct the syntax everything will start working like a charm. Good luck. peloy.-