LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 09-11-2008, 04:34 AM   #16
phil81
Member
 
Registered: Jun 2003
Location: France
Distribution: Lenny/sid
Posts: 141

Original Poster
Rep: Reputation: 15

Thanks jschiwal
I will find a moment to get this done and post the results
 
Old 09-21-2008, 07:53 AM   #17
phil81
Member
 
Registered: Jun 2003
Location: France
Distribution: Lenny/sid
Posts: 141

Original Poster
Rep: Reputation: 15
HI back again

I was running a i486 kernel on an AMD and I now understand that this is not very good.
SO I set up an other PC with an intel proc and installed lenny i 686


AND I have the same problem
:-)
I can only save to the samba share on the 2.6.24-1-686

This is what I have on the new PC in /proc/fs
ppayne@venus:/proc/fs/cifs$ ls
cifsFYI Experimental LookupCacheEnabled OplockEnabled traceSMB
DebugData LinuxExtensionsEnabled MultiuserMount SecurityFlags

If i check this on the samba server
(Etch 2.6.18-6-amd64)
there is no trace of cifs
root@myserver:fs# ls /proc/fs/
nfs nfsd

I tried to install on the server but there is no package available for that distrib

So that would explain maybe the problem ??
 
Old 09-21-2008, 12:32 PM   #18
phil81
Member
 
Registered: Jun 2003
Location: France
Distribution: Lenny/sid
Posts: 141

Original Poster
Rep: Reputation: 15
Found this but I cant figure it out it says its a bug ?
But it has now been fixed?

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=480995
 
Old 10-03-2008, 07:32 AM   #19
phil81
Member
 
Registered: Jun 2003
Location: France
Distribution: Lenny/sid
Posts: 141

Original Poster
Rep: Reputation: 15
Hi
Just to get back on this one I found the answer on the Ubuntu forum
here
http://ubuntuforums.org/showthread.php?t=293513

Thanks
 
Old 03-26-2009, 01:56 AM   #20
choronozon
LQ Newbie
 
Registered: Mar 2009
Distribution: Debian lenny & squeeze servers. Mint 13 and 14 desktops
Posts: 16

Rep: Reputation: 2
I've been beating my head over this one too..exactly the same..kernel..and symptoms.

I can mount a share, I can create and delete files, I can read files but I cannot write to an existing file

The curious thing is, it works fine against a MAC OSX samba server.

Against two debian etch samba servers (latest release upgrades), it doesn't work.

I tried commenting out the experimental bit in my boot configs, but still no joy.

Here's a bit of joy.

#include <stdio.h>
main()
{
FILE *fp;
fp=fopen("test","r");
if (fp)
{
printf("opened test for read OK\n");
fclose (fp);
}
else printf("failed to open test for read\n");
fp=fopen("test","w");
if(fp)
{
printf("opened file for write\n");
fclose(fp);
}
else printf("failed to open file for write\n");
}

I compiled that up, and this is what it says..
othello:/mnt# mv a.out /tmp
othello:/mnt# chmod +x /tmp/a.out
othello:/mnt# rm test
othello:/mnt# /tmp/a.out
failed to open test for read
opened file for write
othello:/mnt# /tmp/a.out
opened test for read OK
failed to open file for write
othello:/mnt#

That's as raw a test as I know how to do.

I suppose I could upgrade the etch servers to Leny, but if it ain't broke, don't fix it.

I would be happy to step back a kernel release if it fixed it and if someone can tell me how..
 
Old 03-26-2009, 02:39 AM   #21
phil81
Member
 
Registered: Jun 2003
Location: France
Distribution: Lenny/sid
Posts: 141

Original Poster
Rep: Reputation: 15
From what I saw back then was that smbfs is depreciated and it is now called cifs

Cifs did not work in Etch So I upgraded to Lenny which is now stable it works perfect.
This is my line in fstab

Quote:
//192.168.22.50/data /media/samba/data cifs auto,users,username=myname,password=mypassword,workgroup=myworkgroup 0 0

You should find an explanation on this forum on how to upgrade to Lenny from Etch using aptitude

Hope this helps
 
Old 03-26-2009, 07:18 AM   #22
choronozon
LQ Newbie
 
Registered: Mar 2009
Distribution: Debian lenny & squeeze servers. Mint 13 and 14 desktops
Posts: 16

Rep: Reputation: 2
Quote:
Originally Posted by phil81 View Post
From what I saw back then was that smbfs is depreciated and it is now called cifs

Cifs did not work in Etch So I upgraded to Lenny which is now stable it works perfect.
This is my line in fstab




You should find an explanation on this forum on how to upgrade to Lenny from Etch using aptitude

Hope this helps
Well. I AM running Lenny. On the work station (client).

But its the same kernel you were talking about.

Linux othello 2.6.26-1-686 #1 SMP Fri Mar 13 18:08:45 UTC 2009 i686 GNU/Linux


Can you tell me exactly what client and server architecture you had WITH the problem, (client AND server) and what was the change that 'fixed' it.

I would be enormously grateful..

My heart was in my mouth when I upgraded the server from Sarge, to Etch..last year...
 
Old 03-26-2009, 01:37 PM   #23
phil81
Member
 
Registered: Jun 2003
Location: France
Distribution: Lenny/sid
Posts: 141

Original Poster
Rep: Reputation: 15
OK
Its a while back and I hope I can give you enough info that I remember, lots of bytes gone under the bridge since then.

My server is an AMD 64 with a 64bit distrib
apache2 mysql samba cups...
at the time it was etch now its lenny

My work stations were / are still lenny

If I used the 2.6.24 kernel on the w stations it was Ok I could read and right on my mounted samba partitions if I used anything over 2.6.25 or 2.6.26 i could not write only read!

Only when I upgraded the server did I have full access, at the time it was testing but now its stable and runs like a dream so I would go for that sollution..

Note that I have alas 1 windows PC and that was never affected...?


The whole issue is related to smbfs being discontinued for cifs file system for samba
from what I gather ...

Hope this helps
 
Old 03-26-2009, 01:49 PM   #24
choronozon
LQ Newbie
 
Registered: Mar 2009
Distribution: Debian lenny & squeeze servers. Mint 13 and 14 desktops
Posts: 16

Rep: Reputation: 2
Well it would seem that on my system at least, they are all the same thing. The smbfs package contains all and smbmount is in fact mount.smbfs, mount -t cifs and mount -t smbfs all call mount.,cifs..

And CIFS is stuck in the kernel somewhere.

I have given up. Gone NFS, which is at least reliable. Doesn't double mount shares in fstab, and generally after a bit of tweaking behaves the way it should.

I did some tests..I could mount the server with a mac station, and a PeeCee with XP.. I could mount the mac with Lenny..:-)

I couldn't mount and have decent access the etch server with the lenny client. Weird or what?

Anyway NFS has solved the local area issues..Just need to see if its possible to either do NFS over the internet, or another way to transfer files to a machine I manage 60 miles away..
 
Old 03-26-2009, 02:02 PM   #25
phil81
Member
 
Registered: Jun 2003
Location: France
Distribution: Lenny/sid
Posts: 141

Original Poster
Rep: Reputation: 15
OK
It all depends what use you make of it I suppose..
Cifs works fine fore me I have up to 5 PC's connected to the file server at the same time works great.
(LINUX MAC and WIN)

Not sure if NFS will work with a windows PC though or MAC

good luck,
....?
 
Old 03-26-2009, 02:35 PM   #26
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,243
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
You can install the Microsoft Embrace and Assimilate, I mean Extend Services for Unix to get NFS support on a Windows machine.
Note: The product will not install on Windows 9x or Windows XP Home Edition or Windows Vista.

Over the internet I would use SSH or SCP to copy files..
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Debian Lenny, kernel 2.6.25-2 486 i and webcam Vimicro zc301 szamot83 Debian 0 07-17-2008 03:21 AM
Why can I not write to a SAMBA share when read/write is enabled? eric m Linux - General 4 08-21-2006 09:22 PM
SAMBA read write access desertViking Linux - Newbie 2 12-05-2005 02:06 PM
Win98 to Samba PDC write-access issue NetAX Linux - Networking 3 05-08-2004 10:42 PM
read/write remote access to fat32 via samba totococo Linux - General 2 11-06-2003 03:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 06:53 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration