LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 03-02-2006, 04:48 PM   #1
CloudBuilder
Member
 
Registered: May 2003
Location: Netherlands
Distribution: Ubuntu, Puppy
Posts: 386

Rep: Reputation: 30
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
 
Old 03-03-2006, 07:32 AM   #2
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 11, Sabayon 3.1
Posts: 1,464

Rep: Reputation: 46
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)
 
Old 03-03-2006, 07:56 AM   #3
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,141

Rep: Reputation: 329Reputation: 329Reputation: 329Reputation: 329
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.

Last edited by PTrenholme; 03-03-2006 at 07:57 AM.
 
Old 03-03-2006, 08:04 AM   #4
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 11, Sabayon 3.1
Posts: 1,464

Rep: Reputation: 46
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"....
 
Old 03-03-2006, 10:17 AM   #5
CloudBuilder
Member
 
Registered: May 2003
Location: Netherlands
Distribution: Ubuntu, Puppy
Posts: 386

Original Poster
Rep: Reputation: 30
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
 
Old 03-03-2006, 10:22 AM   #6
CloudBuilder
Member
 
Registered: May 2003
Location: Netherlands
Distribution: Ubuntu, Puppy
Posts: 386

Original Poster
Rep: Reputation: 30
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
 
Old 03-03-2006, 11:04 AM   #7
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 11, Sabayon 3.1
Posts: 1,464

Rep: Reputation: 46
Quote:
I have a linux client and a linux samba server
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.
 
Old 03-03-2006, 06:34 PM   #8
CloudBuilder
Member
 
Registered: May 2003
Location: Netherlands
Distribution: Ubuntu, Puppy
Posts: 386

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by satinet
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
 
Old 03-04-2006, 04:27 AM   #9
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 11, Sabayon 3.1
Posts: 1,464

Rep: Reputation: 46
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
 
Old 03-06-2006, 02:32 PM   #10
Dragineez
Member
 
Registered: Oct 2005
Location: Annapolis
Distribution: Ubuntu
Posts: 275

Rep: Reputation: 32
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?
 
Old 03-06-2006, 03:25 PM   #11
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 11, Sabayon 3.1
Posts: 1,464

Rep: Reputation: 46
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...
 
Old 03-08-2006, 10:11 AM   #12
CloudBuilder
Member
 
Registered: May 2003
Location: Netherlands
Distribution: Ubuntu, Puppy
Posts: 386

Original Poster
Rep: Reputation: 30
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
 
Old 03-08-2006, 10:30 AM   #13
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 11, Sabayon 3.1
Posts: 1,464

Rep: Reputation: 46
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

Last edited by satinet; 03-08-2006 at 10:37 AM.
 
Old 03-08-2006, 11:07 AM   #14
Dragineez
Member
 
Registered: Oct 2005
Location: Annapolis
Distribution: Ubuntu
Posts: 275

Rep: Reputation: 32
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.
 
Old 09-19-2007, 04:46 AM   #15
barratt_sab
LQ Newbie
 
Registered: Aug 2006
Posts: 1

Rep: Reputation: 0
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
can't mount samba share and then write to the share calbazon Linux - Software 8 10-10-2010 01:35 AM
mount a samba share? trey85stang DamnSmallLinux 2 05-16-2005 06:58 AM
Cannot mount samba share from windows XP Astro Linux - Software 2 12-18-2004 11:26 AM
samba share mount on boot anthjaz Linux - Software 4 11-04-2003 04:56 PM
XP not able to mount Linux share through SAMBA Peter2003 Linux - Software 2 06-04-2003 11:05 PM


All times are GMT -5. The time now is 03:25 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration