problems with smbfs on 2.4.18 kernel (ppc)

8 messages, 4 authors, 2002-05-03 · open the first message on its own page

problems with smbfs on 2.4.18 kernel (ppc)

From: Bastien Nocera <hadess@hadess.net>
Date: 2002-03-01 17:11:42

Hi,

I'm having some problems with smbfs on ppc.
The attached file contains all the details. Am I doing something wrong ?

Hope you can help.

Cheers

-- 
/Bastien Nocera
http://hadess.net

Re: problems with smbfs on 2.4.18 kernel (ppc)

From: Urban Widmark <hidden>
Date: 2002-03-03 17:28:03

On 1 Mar 2002, Bastien Nocera wrote:
Hi,

I'm having some problems with smbfs on ppc.
The attached file contains all the details. Am I doing something wrong ?
Has smbfs worked for you with previous versions? A patch was added late to
2.4.18 and it has caused a lot of crashes for people. I don't think it is
related, but since you mention 2.4.18 ...

mount only prints the contents of /etc/mtab. What does /proc/mounts say?
Do you have any kernel messages? (dmesg).

The entry in mtab is written by smbmnt and one way to get this would be if
the mount fails, but after smbmnt has written and then for some reason it
fails to cleanup.

/Urban


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

Re: problems with smbfs on 2.4.18 kernel (ppc)

From: benh@kernel.crashing.org
Date: 2002-03-04 21:03:41

quoted
Has smbfs worked for you with previous versions? A patch was added late to
2.4.18 and it has caused a lot of crashes for people. I don't think it is
related, but since you mention 2.4.18 ...
I never tried the previous versions of it.
Yes, smbfs used to work with recent version.

Ben.


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

Re: problems with smbfs on 2.4.18 kernel (ppc)

From: Bastien Nocera <hadess@hadess.net>
Date: 2002-03-05 01:51:18

On Sun, 2002-03-03 at 17:28, Urban Widmark wrote:
On 1 Mar 2002, Bastien Nocera wrote:
quoted
I'm having some problems with smbfs on ppc.
The attached file contains all the details. Am I doing something wrong?
Has smbfs worked for you with previous versions? A patch was added late to
2.4.18 and it has caused a lot of crashes for people. I don't think it is
related, but since you mention 2.4.18 ...
I never tried the previous versions of it.
mount only prints the contents of /etc/mtab. What does /proc/mounts say?
Do you have any kernel messages? (dmesg).
$ cat /proc/mounts  | grep smb
//kara/Backup1 /mnt/backup smbfs rw,file_mode=0755,dir_mode=0755 0 0

It seems to be mounted. dmesg says:
smbfs: Unrecognized mount option noexec
The entry in mtab is written by smbmnt and one way to get this would be if
the mount fails, but after smbmnt has written and then for some reason it
fails to cleanup.
smb definetaly works, as I can browse it with the smb gnome-vfs module,
as well as smbclient. I'm failing to see why the /mnt/backup directory
just "disappears from there".

$ file /mnt/backup
/mnt/backup: can't stat `/mnt/backup' (No such file or directory).

This is weird. Do you have any more things I could try ?

Cheers

--
/Bastien Nocera
http://hadess.net

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

Re: problems with smbfs on 2.4.18 kernel (ppc)

From: Urban Widmark <hidden>
Date: 2002-03-05 09:12:09

On 5 Mar 2002, Bastien Nocera wrote:
On Sun, 2002-03-03 at 17:28, Urban Widmark wrote:
quoted
Has smbfs worked for you with previous versions? A patch was added late to
2.4.18 and it has caused a lot of crashes for people. I don't think it is
related, but since you mention 2.4.18 ...
I never tried the previous versions of it.
Maybe you should.
$ cat /proc/mounts  | grep smb
//kara/Backup1 /mnt/backup smbfs rw,file_mode=0755,dir_mode=0755 0 0

It seems to be mounted. dmesg says:
smbfs: Unrecognized mount option noexec
Does it make any difference if you mount it like:
mount -t smbfs -o username=...,password=... //kara/Backup1 /mnt/backup

(should stop the "Unrecognized mount option" error)

quoted
The entry in mtab is written by smbmnt and one way to get this would be if
the mount fails, but after smbmnt has written and then for some reason it
fails to cleanup.
smb definetaly works, as I can browse it with the smb gnome-vfs module,
as well as smbclient. I'm failing to see why the /mnt/backup directory
just "disappears from there".
It can disappear if the request for attributes on that directory fails.
Try getting a network trace with ethereal and see what the response to the
QUERY_PATH_INFORMATION request is.

/Urban


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

Re: problems with smbfs on 2.4.18 kernel (ppc)

From: Derrik Pates <hidden>
Date: 2002-03-05 16:50:58

On Mon, Mar 04, 2002 at 10:03:41PM +0100, benh@kernel.crashing.org wrote:
Yes, smbfs used to work with recent version.
I've mounted SMB filesystems exported via Samba (on an x86 Linux box)
since upgrading to 2.4.18 with this iBook, so I can say that it Works
for Me(TM).

--
Derrik Pates      |   Sysadmin, Douglas School   |    #linuxOS on EFnet
dpates@dsdk12.net |     District (dsdk12.net)    |    #linuxOS on OPN

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

Re: problems with smbfs on 2.4.18 kernel (ppc)

From: Bastien Nocera <hadess@hadess.net>
Date: 2002-05-01 15:49:08

Hello,

I'm quite ashamed of the time it took me to gather the info, been
busy...

On Tue, 2002-03-05 at 09:12, Urban Widmark wrote:
On 5 Mar 2002, Bastien Nocera wrote:
quoted
On Sun, 2002-03-03 at 17:28, Urban Widmark wrote:
quoted
Has smbfs worked for you with previous versions? A patch was added late to
2.4.18 and it has caused a lot of crashes for people. I don't think it is
related, but since you mention 2.4.18 ...
I never tried the previous versions of it.
Maybe you should.
quoted
$ cat /proc/mounts  | grep smb
//kara/Backup1 /mnt/backup smbfs rw,file_mode=0755,dir_mode=0755 0 0

It seems to be mounted. dmesg says:
smbfs: Unrecognized mount option noexec
Does it make any difference if you mount it like:
mount -t smbfs -o username=...,password=... //kara/Backup1 /mnt/backup

(should stop the "Unrecognized mount option" error)
It did, the error doesn't appear anymore
quoted
quoted
The entry in mtab is written by smbmnt and one way to get this would be if
the mount fails, but after smbmnt has written and then for some reason it
fails to cleanup.
smb definetaly works, as I can browse it with the smb gnome-vfs module,
as well as smbclient. I'm failing to see why the /mnt/backup directory
just "disappears from there".
It can disappear if the request for attributes on that directory fails.
Try getting a network trace with ethereal and see what the response to the
QUERY_PATH_INFORMATION request is.
I'm seeing this in ethereal:
from laptop to SMB server: Transaction2 Request QUERY_PATH_INFORMATION,
Path: \
from SMB server back to laptop: Transaction2 Response
QUERY_PATH_INFORMATION, Error: Directory not found

However, smbclient seems to find it:

smbclient //kara/backup1 -U hadess
added interface ip=192.168.1.2 bcast=192.168.1.255 nmask=255.255.255.0
Password:
Domain=[IDORU] OS=[Unix] Server=[Samba 2.2.2]
smb: \> ls
  mp3s                                D        0  Wed Apr  3 06:38:08
2002

I'm running out of things to test...

Cheers

--
/Bastien Nocera
http://hadess.net

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

Re: problems with smbfs on 2.4.18 kernel (ppc)

From: Bastien Nocera <hadess@hadess.net>
Date: 2002-05-03 02:06:25

Dammit,

I feel stupid now. The SAMBA version I grabbed off some MacOS X site
came with a borked smb.conf. There was a rule to veto some files only
used by MacOS X (resource forks). Here was the rule:

veto files = .*/Temporary Items/Desktop
*/TheFindByContentFolder/TheVolumeSettingsFolder/Network */

And the last bit actually vetoed all the directories, beginning with the
one at the bottom of the share. I still don't understand why smbclient
and the smb gnome-vfs method actually worked just fine with this share.

Urban, is this actually a bug ? I'll take this off linuxppc-dev now.

Cheers

On Wed, 2002-05-01 at 16:49, Bastien Nocera wrote:
<snip>
I'm seeing this in ethereal:
from laptop to SMB server: Transaction2 Request QUERY_PATH_INFORMATION,
Path: \
from SMB server back to laptop: Transaction2 Response
QUERY_PATH_INFORMATION, Error: Directory not found

However, smbclient seems to find it:

smbclient //kara/backup1 -U hadess
added interface ip=192.168.1.2 bcast=192.168.1.255 nmask=255.255.255.0
Password:
Domain=[IDORU] OS=[Unix] Server=[Samba 2.2.2]
smb: \> ls
  mp3s                                D        0  Wed Apr  3 06:38:08
2002
--
/Bastien Nocera
http://hadess.net

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help