[SLE] Can't make smbmount work
Hi folks, I recently updated my Suse 6.0 with samba 2.0.6 and I have got all the win to Linux working ok. So my problem is how to mount the win stuff so that I can see it on the linux box. I have tried every possible combination with smbmount and the closest I get is ... mbmount //192.168.244.xxx/c /thes (I'm trying to mount the hd of 192.168.244.xxx) I get prompted for a password and then no matter what I enter, I get the message `mount error: Invalid argument' If I try `smbmount //Thespia/c /thes', I get the response `Thespia: unknown host' smbclient -L with local host shows this: (note: the smb.conf is now in /usr/local/samba/lib) +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ smbclient -L Darius {big snip} This machine has a browse list: Server Comment --------- ------- DARIUS Samba 2.0.6 THESPIA Celeron This machine has a workgroup list: Workgroup Master --------- ------- SIMPLE DARIUS +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ mbclient -L Thespia (the windows box) returns this: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ smbclient -L Thespia params.c:OpenConfFile() - Unable to open configuration file "/etc/smb.conf": No such file or directory Can't load /etc/smb.conf - run testparm to debug it Added interface ip=192.168.244.1 bcast=192.168.244.255 nmask=255.255.255.0 Got a positive name query response from 192.168.244.3 ( 192.168.244.3 ) Server time is Sat Apr 22 14:35:20 2000 Timezone is UTC+3.0 security=share Server=[THESPIA] User=[] Workgroup=[SIMPLE] Domain=[SIMPLE] Sharename Type Comment --------- ---- ------- C Disk Celeron D Disk HP Printer IPC$ IPC PRINTER$ Disk +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ I thought it might have something to do with /etc/fstab but I am not certain. The man page for smbmount is surprising uninformative and I have searched for a howto but I can't find one. Any thoughts? Rod -- 100% MS FREE Absolutely no component of Microsoft was used in the generation or posting of this e-mail. -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
I mount my wife's Windows directories every night to back them up. mount -t smbfs -o sync,password=YourPassword //name/c /windoz/c You need to be root to do this though :-( "Rod C. Johnson" wrote:
Hi folks,
I recently updated my Suse 6.0 with samba 2.0.6 and I have got all the win to Linux working ok. So my problem is how to mount the win stuff so that I can see it on the linux box. I have tried every possible combination with smbmount and the closest I get is ...
smbmount //192.168.244.xxx/c /thes
(I'm trying to mount the hd of 192.168.244.xxx)
I get prompted for a password and then no matter what I enter, I get the message `mount error: Invalid argument'
If I try `smbmount //Thespia/c /thes', I get the response `Thespia: unknown host'
smbclient -L with local host shows this: (note: the smb.conf is now in /usr/local/samba/lib)
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ smbclient -L Darius
{big snip} This machine has a browse list:
Server Comment --------- ------- DARIUS Samba 2.0.6 THESPIA Celeron
This machine has a workgroup list:
Workgroup Master --------- ------- SIMPLE DARIUS
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
smbclient -L Thespia (the windows box) returns this:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
smbclient -L Thespia params.c:OpenConfFile() - Unable to open configuration file "/etc/smb.conf": No such file or directory Can't load /etc/smb.conf - run testparm to debug it Added interface ip=192.168.244.1 bcast=192.168.244.255 nmask=255.255.255.0
Got a positive name query response from 192.168.244.3 ( 192.168.244.3 ) Server time is Sat Apr 22 14:35:20 2000 Timezone is UTC+3.0 security=share
Server=[THESPIA] User=[] Workgroup=[SIMPLE] Domain=[SIMPLE]
Sharename Type Comment --------- ---- ------- C Disk Celeron D Disk HP Printer IPC$ IPC PRINTER$ Disk +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
I thought it might have something to do with /etc/fstab but I am not certain. The man page for smbmount is surprising uninformative and I have searched for a howto but I can't find one. Any thoughts?
Rod
-- 100% MS FREE Absolutely no component of Microsoft was used in the generation or posting of this e-mail.
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com
Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
--
Jerry Feldman
Rod: here is a reason why your smbmount command doesn't work. | smbmount //192.168.244.xxx/c /thes I believe it is because of the space between /c and /thes. Another thing which you may want to consider. When sharing a folder on a Windows machine, you need not specify the hard drive letter unless it is the entire hard drive itself you are sharing on the windows machine. For instance If I were to allow on my windows machine the c:\shared directory (folder) to be shared, I can set a username and password for it as well. Then on the linux box to mount the shared windows folder I would type: mbmount //192.168.244.xxx/shared /thes | If I try `smbmount //Thespia/c /thes', I get the response `Thespia: | unknown host' You have to specify an entry in /etc/hosts so that your linux system will be able to resolve the server name to an ip address such as: 192.168.244.xxx Thespia Otherwise your system has no way to query a DNS server to resolve the Thespia name to an ip address. Hope this helps! Mark -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
Oops. I made a mistake here. Your space after the /c is correct. The smbclient needs a mount point as an arguement. I am, however in question as to weather you are offering your entire hard drive (windows) as a shared drive or a folder? Mark On Sat, 22 Apr 2000, Mark B Withers wrote: | Rod: | | here is a reason why your smbmount command doesn't work. | | | smbmount //192.168.244.xxx/c /thes | | I believe it is because of the space between /c and /thes. | | Another thing which you may want to consider. When sharing a folder on | a Windows machine, you need not specify the hard drive letter unless | it is the entire hard drive itself you are sharing on the windows | machine. For instance If I were to allow on my windows machine the | c:\shared directory (folder) to be shared, I can set a username and | password for it as well. Then on the linux box to mount the shared | windows folder I would type: | | smbmount //192.168.244.xxx/shared /thes | | | If I try `smbmount //Thespia/c /thes', I get the response `Thespia: | | unknown host' | | You have to specify an entry in /etc/hosts so that your linux system | will be able to resolve the server name to an ip address such as: | | 192.168.244.xxx Thespia | | Otherwise your system has no way to query a DNS server to resolve the | Thespia name to an ip address. | | Hope this helps! | | Mark | | | -- | To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com | For additional commands send e-mail to suse-linux-e-help@suse.com | Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/ | | -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
Rod, It seems to be the goal of the maintainers of smbmount to drive us crazy. They keep changing the syntax. Here's what I get when I simply type smbmount: bash-2.03# smbmount Usage: mount.smbfs service mountpoint [-o options,...] Version 2.0.6 Options: username=<arg> SMB username password=<arg> SMB password netbiosname=<arg> source NetBIOS name uid=<arg> mount uid or username gid=<arg> mount gid or groupname port=<arg> remote SMB port number fmask=<arg> file umask dmask=<arg> directory umask debug=<arg> debug level ip=<arg> destination host or IP address workgroup=<arg> workgroup on destination sockopt=<arg> TCP socket options scope=<arg> NetBIOS scope guest don't prompt for a password ro mount read-only rw mount read-write This command is designed to be run from within /bin/mount by giving the option '-t smbfs'. For example: mount -t smbfs -o username=tridge,password=foobar //fjall/test /data/test ############################################################## I just dumped this so you could compare what I get, so as to verify we are using the same versions. This works for me: mount -t smbfs -o username=administrator //sita/download /sita/download I perfer this to Jerry's answer because I am paranoid and think someone is watching me type my password in. HTH, Steve -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
Hi Steve First off, I'm using smbmount 2.0.2 and the -h output didn't look at bit like yours. I tried your suggestions and I kept getting the following: mount: wrong fs type, bad option, bad superblock on //thespia/c, or too many mounted file systems I think I will try downloading some of the `other' options for loading smb shares (Lineighborhood and Sharity) to see if they are any easier to handle. Thanks for the suggestions. Rod -- 100% MS FREE Absolutely no component of Microsoft was used in the generation or posting of this e-mail. -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
Rod, mbmount //sita/download /sita/download -Uadministroator Used to work with the last version of smbmount. If you pick through the mailing list archives, you may find more suggestions. I believe there are some suggestions for older smbmounts out there. HTH, Steve "Rod C. Johnson" wrote: Hi Steve
First off, I'm using smbmount 2.0.2 and the -h output didn't look at bit like yours. I tried your suggestions and I kept getting the following:
mount: wrong fs type, bad option, bad superblock on //thespia/c, or too many mounted file systems
I think I will try downloading some of the `other' options for loading smb shares (Lineighborhood and Sharity) to see if they are any easier to handle.
Thanks for the suggestions.
Rod
-- 100% MS FREE Absolutely no component of Microsoft was used in the generation or posting of this e-mail.
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
participants (4)
-
Anonymous User
-
gaf@gaf.ne.mediaone.net
-
hattons@cpkwebser5.ncr.disa.mil
-
rjohns@otenet.gr