Networking Forums

Networking Forums > Computer Networking > Linux Networking > trying to mount SMB

Reply
Thread Tools Display Modes

trying to mount SMB

 
 
Hactar
Guest
Posts: n/a

 
      09-10-2007, 12:07 AM
Hi, I'm trying to mount SMB shares exported from my desktop onto my laptop,
and running into a codepage problem. Actually, I don't have to use SMB for
this but it has to be on there anyhow for other computers on the LAN.
autofs logs this whenever it tries to mount a share:

kernel: CIFS VFS: cifs_mount failed w/return code = -22
automount[16596]: >> mount: wrong fs type, bad option, bad superblock on //pc/tmp,
automount[16596]: >> missing codepage or other error
automount[16596]: >> In some cases useful info is found in syslog - try
automount[16596]: >> dmesg | tail or so
automount[16596]: mount(generic): failed to mount //pc/tmp (type cifs) on /smb/pc/tmp

I assume that's caused by a mismatch between what the server uses and
what my client has. But how do I find out what the server (a Linux box
with Samba) uses? I grepped likely terms in smb.conf but came up dry.
"dmesg | tail" only returns repeated lines saying "CIFS VFS: cifs_mount
failed w/return code = -22". Not very helpful.

I've got modules loaded for smbfs and cifs:

eben@kong:~$ grep -e smbfs -e cifs /proc/filesystems
nodev cifs
nodev smbfs

Help?

--
-eben (E-Mail Removed)P http://royalty.mine.nu:81
SAGITTARIUS: All your friends are laughing behind your back... kill
them. Take down all those naked pictures of Ernest Borgnine you've
got hanging in your den. -- Weird Al, _Your Horoscope for Today_
 
Reply With Quote
 
 
 
 
Dances With Crows
Guest
Posts: n/a

 
      09-10-2007, 02:36 AM
["Followup-To:" header set to comp.os.linux.misc.]
Hactar staggered into the Black Sun and said:
> mount: wrong fs type, bad option, bad superblock on //pc/tmp,
> missing codepage or other error
> In some cases useful info is found in syslog - try dmesg | tail


What, if anything, is in /var/log/samba/ or /var/log/*smb* ?

> I assume that's caused by a mismatch between what the server uses and
> what my client has. But how do I find out what the server (a Linux
> box with Samba) uses? I grepped likely terms in smb.conf but came up
> dry. "dmesg | tail" only returns repeated lines saying "CIFS VFS:
> cifs_mount failed w/return code = -22". Not very helpful.


What was the exact mount command you used? It should be something like
so:

mount -t cifs //pc/tmp /mnt/somewhere -o user=USER,domain=DOMAIN

....error 22 is apparently either "invalid device state" or "unknown
command". Which version of Samba is the server running? Which version
of Samba is the laptop running? The only time I've seen errors like
this are when I've tried to mount SMB shares from a pretty recent smbd
while using a very old version of mount.smbfs.

--
"We should have a policy against using personal resources for company
business." "The Company didn't pay for these pants, so I'm taking
them off at the door!" --J. Moore and A. DeBoer, the Monastery
Matt G|There is no Darkness in Eternity/But only Light too dim for us to see
 
Reply With Quote
 
Hactar
Guest
Posts: n/a

 
      09-16-2007, 01:07 AM
In article <tmcer4-(E-Mail Removed)>,
Hactar <(E-Mail Removed)> wrote:
> Hi, I'm trying to mount SMB shares exported from my desktop onto my laptop,
> and running into a codepage problem.


Well that was weird. I solved it by installing the "smbfs" package.
Despite its name, it provides lots of other stuff (too? I have smbfs
already). The filesystem is "smbfs" not "cifs", at least in my case.
Got automount working, on to rsync...

--
-eben (E-Mail Removed)P http://royalty.mine.nu:81
CAPRICORN: The stars say you're an exciting and wonderful person... but
you know they're lying. If I were you, I'd lock my doors and windows
and never never never never never leave my house again. -- Weird Al
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
mount mount file system using nfs Jim Anderson Linux Networking 2 07-16-2008 09:19 PM
HELP with autofs and NIS: How to override mount options on all mount points? theosib@gmail.com Linux Networking 0 03-04-2006 09:12 PM
NFS mount won't mount at boot, but mount -a works fine. BT Linux Networking 2 09-23-2004 09:37 PM
Cannot mount via NFS Jeff Krimmel Linux Networking 22 06-27-2004 06:35 PM
NFS mount and cp Michael C. Linux Networking 6 11-30-2003 07:11 PM



1 2 3 4 5 6 7 8 9 10 11