Linux Format forums Forum Index Linux Format forums
Help, discussion, magazine feedback and more
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Connection between Windows & Linux

 
Post new topic   Reply to topic    Linux Format forums Forum Index -> Help!
View previous topic :: View next topic  
Author Message
lewkh



Joined: Tue Jun 07, 2005 9:13 am
Posts: 2

PostPosted: Tue Jun 07, 2005 9:21 am    Post subject: Connection between Windows & Linux Reply with quote

Hi,
I am running the redhat linux 9 and using the command as following to map Windows Storage 2003.
mount -t smbfs -o username=<username>,password=<passwd> //<ip address>/share /mntpoint

On Windows site, I just make the folder to be share out only.

It is successful to map between linux and Windows but recently Windows happen the refuse connection on it when I check the linux host, the mounting still there and once I restart windows then I can read/write file to the directory without remount on linux site(that time still mounting). Before I restart windows, I can't ls the file in that directory on linux, it reply the error message as LS: Stale file handle. but mounting is still there by issueing command mount.

Again the problem happens almost a week a time, it means after I restart windows then a week later I need to restart again, otherwise connection refuge by windows.

Is there any thing I can do in the windows site?Is there any service that I can restart without reboot whole windows OS?

Could anybody tell me what is the happening? Please advise me........

Is there any alternative solution?
Back to top
View user's profile Send private message
youlikeicecream
LXF regular


Joined: Fri Jun 03, 2005 12:40 pm
Posts: 721
Location: Oxford

PostPosted: Tue Jun 07, 2005 10:06 am    Post subject: RE: Connection between Windows & Linux Reply with quote

try cifs, some of my win2k3 servers at work only work with cifs (Large Filesystem support)

try putting

//servername/sharepoint /mnt/mylocaldir cifs, credentials=/home/foo/.servernamecredentials

into /etc/fstab

make the credentials file like this :
(in a console)

navigate to /home/foo (where foo is your username)

# echo username=foo > .servernamecredentials
# echo password=secret >> .servernamecredentials
# chmod 655 .servernamecredentials

bear in mind that on my network (at work) there are 10 workgroups and 2 domains, so the network is iffy to say the least.

if you are on a Domain you might find browsing the network easier by joining the domain, if i remember correctly that can be done using :
#net ads join -w workgroupname
(for active directory)
you will be asked for the password of the user logged in and then you should be joined and appear as a machine in the domain.

hope this is of help

Mike Smile
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
Guest






PostPosted: Fri Jun 10, 2005 4:41 am    Post subject: RE: Connection between Windows & Linux Reply with quote

Hi Mike,
Thanks to your helping!
Is the CIFS last for frequent read/write file accessing? because my application in Linux is highly demanding read/write file accessing to Windows Storage 2003 based NAS.
Back to top
youlikeicecream
LXF regular


Joined: Fri Jun 03, 2005 12:40 pm
Posts: 721
Location: Oxford

PostPosted: Fri Jun 10, 2005 1:00 pm    Post subject: RE: Connection between Windows & Linux Reply with quote

I bet it is, my NAS at my work takes soooooo long to access that linux timesout on the bloody thing. CIFS will work where smbfs doesn't, but have no idea what differences access demands will make to CIFS. CIFS just supports Large Filesysytems. you could also try a KDE application (if you run KDE) called smb4k, which has all the options you need to fiddle with to get logon time sharepoints mounted locally Smile
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
lewkh



Joined: Tue Jun 07, 2005 9:13 am
Posts: 2

PostPosted: Mon Jun 13, 2005 6:17 am    Post subject: RE: Connection between Windows & Linux Reply with quote

Thanks to your helping..
Is there any benchmark showing the CIFS is better than smbfs?
I m using Redhat Linux 9 with no X windows installed...
Very Happy
Back to top
View user's profile Send private message
youlikeicecream
LXF regular


Joined: Fri Jun 03, 2005 12:40 pm
Posts: 721
Location: Oxford

PostPosted: Mon Jun 13, 2005 6:34 am    Post subject: RE: Connection between Windows & Linux Reply with quote

No Xwindows, good luck, can be done but I have no idea about benefits of SMBFS over CIFS. Are you on a Domain ? If so you probably need to join it to access the NAS.

Also sounds like win2k3 is behaving badly if it needs a restart each week. I find that this can be because of Automatc Updates needing to restart or because an application is running on the server that has a memory hole that takes a week to cause a denial of service to your linux (or any other) client.

hope this is of some help
Mike Smile
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic    Linux Format forums Forum Index -> Help! All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Linux Format forums topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group


Copyright 2011 Future Publishing, all rights reserved.


Web hosting by UKFast