Samba share will not mount
Hello
I tried to make a mount on a samba share from ubuntu 5.10 (I entered the following in the console - I also did it with the -o user/passwrd) # mount -t smbfs //zeus/edrive /mnt/samba mount: wrong fs type, bad option, bad superblock on //zeus/edrive, missing codepage or other error In some cases useful info is found in syslog - try dmesg | tail or so Then I gave : # dmesg | tail [4304492.710000] smb_fill_super: missing data argument [4304618.252000] smb_fill_super: missing data argument [4304696.692000] smbfs: mount_data version 1919251317 is not supported [4304742.270000] smbfs: mount_data version 1919251317 is not supported [4305057.084000] smb_fill_super: missing data argument I also tried smbmount but without result. I read somewhere, that this is due to a problem in the kernel. Is this true or is there some other way to mount a samba share? Thanks in advance for all sugestions. CloudBuilder |
this does beg the question of why you want to mount a samba share from unix to unix...?
why not just use NFS or SFTP etc?? I presume "zues" isn't a windows box or the URL would be //zuess/e$ can you browse it from a windows machine? (presumably you have one or there would be no point in using samba) |
Quote:
CloudBuilder: Did you try smbclient -l //zues to see what shares are available to samba? (The message seems, however, to indicate that the share was found, so that's probably not the problem.) Again, probably not the problem, but I also notice that you don't specify any security parameters: neither domain, user, nor password. That seems to imply that your samba (or Windows) network is completely unsecured. If this is the case, do remember that any information on any network accessible shares is, potentially, available to anyone with access to your system. (That may includes, if you're using a Windows OS, anyone with an internet connection.) So, if that supposition is correct, be sure there's nothing on any of those shares that you wouldn't want everyone in the world to access. |
to be fair you can mount smb shares without using a user name and password.
however, in that case you are not authenticated and cannot do anything. But it shows up if you do a "smblist". observe: Quote:
After this i would have to do a "cifslogin" - if i did it that way (not that there is much point). the reason i thought it was unix to unix is that he said "samba" and not "windows share".... |
Samba share will not mount
Quote:
I can do anything, copy to it copy from it in krusador or another file management program. But what I want is to copy files in the background from the local machine to the sambaserver by a script. So I first made a try in the console to see if I could accomplish this with commands from the console. If I can get the share mounted then I can use normal copy commands. Ans if I can simulate this in the console, al I have to do is copy the commands. CloudBuilder |
Quote:
I want to copy files from the linux client to the samba server. So I thought, if I can mount the share then I can use the copy command ...... I could make a mount in fstab, but I just want to do everything in the background and want to login, if I need the server (and logout afterwards). I have tried a lot of suggestions but it does not work. So if you have the answer your welcome..... CloudBuilder |
Quote:
like i've said before, it's like having two people who talk english but getting them both to talk thru a chinese interpreters. and just as logical. why not use a native tool like NFS instead? with this you can just mount the other machine's files system at mount points on the client system... really i amazed you want to do this. |
Quote:
So I want one server that can be used by both systems types, where I can store files in a way, that the other type of system is able to get the neccessary files from that server. Until two years ago I had only Win machines, I am now moving to Lin, but unfortunately some programs are not available in Lin, so I have to keep some win machines........ I know in linux you can have as much servers as you want, but that is not an option. I want to keep it simple. What I want is copy some files from a lin machine to the samba server, so one of the win machines can get those files there ........ CloudBuilder |
just use nfs or scp. you can run samba and nfs at the same time.
also check out sshfs and fuse. i think you are totally misunderstanding what the point of samba is. sure you want to copy files in a mixed environment. but why make it hard on yourself when ssh and nfs are so easy to implement. just use one to copy things to where your windows machines can see it. e.g scp -pr somefiles somehost:/somesambashareddirectory how hard is that? nfs is more permanent... if you don't get what i am saying then you are going to give up on linux pretty soon and just get frustrated. linux != windows |
Play Nice
I declare it "Be Kind To Newbies Day"! His question is valid, given his level of understanding. Actually, its valid given my level of understanding - since definately I fall into the newbie category as well. It can be difficult to grasp the semantic differences between an nfs and smb connection.
All of you are right, for a linux-to-linux connection - nfs is the way to go. But you didn't answer the question. "Can I connect to a samba share from another linux box using smb?" The answer is "Yes, you can." Install smbfs: Code:
sudo apt-get install smbfs Code:
sudo mount -t smbfs -o username=dragineez, password=phillipisland,uid="whoami", gid="whoami", fmask=000,dmask=000 //dragineez_smb_server/dragineez /home/"whoami"/Network |
well ok, feel free to proceed. it will work badly and be slow though.
really there is no point in doing this... windows and unix file permissions are totally different. why translate to chineese to translate back to english? i am just trying make the poster aware that samba is the wrong tool. yes you can drive down the freeway in a combine, but it's better to use a sedan... |
Thank you for the reply Draginez. I'll try it.
The only thing I wanted to now indeed is if it is possible. Satinet: I can accept that there are better ways, but if i'm trying something I want to know why it is or isn't possible or why it is or isn't good practice.... especialy the : if you don't get what i am saying then you are going to give up on linux pretty soon and just get frustrated. is a great help. I'm enough motivated to work my way in. But you have to do that step by step that's my opinion. Don'try 3 things at one time. I built my first system from scratch in 1979. I rewrote the os in assembler, i made a course in basic and pascal and programmed a lot. I even used CPM and CPM 86. The maximum amount of ram I had was 48k and the os and the program had to do with that space...... So don't come me with motivation.......................... CloudBuilder |
knock yourself out then....
if you can't be bothered to read up on smb/cifs and samba and NFS, then you can't expect me to be too impressed can you..... it just a no no. i was on a unix course recently (hp-ux networking). we laughed at the thought of using samba for unix to unix.... http://www.ucs.ed.ac.uk/usd/scisup/faq/filesharing.html the reason it's bad is the amount of translation that is required at both ends. Lots of faults, bugs and gotcha's. It's double the trouble as you are finding out. and really pointless |
A To B
Try working at a law firm! It's a world where no one would even contemplate getting from Point A to Point B in anything like a straight line. I've become much less sensitive to inefficiency as once I was. I'll admit, that's probably a developing character flaw.
|
Just in case anyone else has got here by searching for the error message...
I had a smb mount issue, with the dmesg error:
smb_fill_super: missing data argument I solved this issue by installing the smbfs package: sudo apt-get install smbfs it then worked fine. |
All times are GMT -5. The time now is 06:09 AM. |