LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   Samba share will not mount (https://www.linuxquestions.org/questions/ubuntu-63/samba-share-will-not-mount-421056/)

CloudBuilder 03-02-2006 04:48 PM

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

satinet 03-03-2006 07:32 AM

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)

PTrenholme 03-03-2006 07:56 AM

Quote:

Originally Posted by satinet
[snip]
I presume "zues" isn't a windows box or the URL would be //zuess/e$
[/snip]

I'd assume that //zues/e was the share name of the directory to which access was requested. Generally //zues/e$ would be an attempt to use the default share name on physical drive "E" on the Windows box, which should only be available to an administrative account. (And, I think, it can be accessed by a Windows OS, but with Windows, perhaps anyone can access the default shares.)

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.

satinet 03-03-2006 08:04 AM

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:

bd-live:/scripts # /sbin/mount -F cifs -r dc-live-it021:/ /mnt/ict
bd-live:/scripts # cifslist
=========================================================================
server dc-live-it021:
=========================================================================
No users currently logged in.

Share: \\DC-LIVE-IT021\
ro /mnt/ict
althogh this is hp-ux's "cifsclient" i am assuming (perhaps wrongly) that's it's the same.

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"....

CloudBuilder 03-03-2006 10:17 AM

Samba share will not mount
 
Quote:

Originally Posted by satinet
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)


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

CloudBuilder 03-03-2006 10:22 AM

Quote:

Originally Posted by satinet
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:


althogh this is hp-ux's "cifsclient" i am assuming (perhaps wrongly) that's it's the same.

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"....

I have a linux client and a linux samba server.
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

satinet 03-03-2006 11:04 AM

Quote:

I have a linux client and a linux samba server
:confused: why would you want to do this? samba is for windows interoperability. is there some specific reason that you want to do this?

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.

CloudBuilder 03-03-2006 06:34 PM

Quote:

Originally Posted by satinet
:confused: why would you want to do this? samba is for windows interoperability. is there some specific reason that you want to do this?

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.

Unfortunately I live in a mixed environment, win and linux. I have to exchange documents from win machines to lin machines and viceversa. To keep the concept simple, I have a samba sever, so I can exchange files over the samba server. The samba server is also used for backup purposes. The less servers I have the less administration tasks. I don't want to make all machines peer to peer!(in that case I didn't need the samba server)

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

satinet 03-04-2006 04:27 AM

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

Dragineez 03-06-2006 02:32 PM

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
mkdir Network
sudo mount -t smbfs -o username=[network user],password=[network pass],uid="whoami",gid="whoami",fmask=000,dmask=000  //[The really cool name I gave my Samba server]/[network user] /home/"whoami"/Network

Example:

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
Won't that work?

satinet 03-06-2006 03:25 PM

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...

CloudBuilder 03-08-2006 10:11 AM

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

satinet 03-08-2006 10:30 AM

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

Dragineez 03-08-2006 11:07 AM

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.

barratt_sab 09-19-2007 04:46 AM

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.