Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
02-11-2014, 01:19 PM
|
#16
|
LQ Newbie
Registered: Feb 2014
Posts: 27
Original Poster
Rep:
|
Quote:
Originally Posted by nini09
|
I have disabled time stamps and increased TCP windows previously with no change in throughput. I don't think it is a TCP setting issue, at least I hope not. Maybe the RTT is large enough I didn't set them properly.
|
|
|
02-11-2014, 02:00 PM
|
#17
|
Moderator
Registered: Aug 2002
Posts: 26,352
|
Have you check the transfer speed with the share mounted yet?
|
|
|
02-11-2014, 03:25 PM
|
#18
|
LQ Newbie
Registered: Feb 2014
Posts: 27
Original Poster
Rep:
|
Quote:
Originally Posted by michaelk
Have you check the transfer speed with the share mounted yet?
|
I have not. My spare time at home has been greatly limited lately but I'm hoping to by this weekend at the latest.
|
|
|
02-11-2014, 03:41 PM
|
#19
|
Senior Member
Registered: Apr 2009
Posts: 1,889
Rep:
|
On Linux, you mentioned CPU usage is low. Is this per thread/core number or entire CPU number? Is all core used during transmission?
|
|
|
02-12-2014, 10:06 AM
|
#20
|
LQ Newbie
Registered: Feb 2014
Posts: 27
Original Poster
Rep:
|
Quote:
Originally Posted by nini09
On Linux, you mentioned CPU usage is low. Is this per thread/core number or entire CPU number? Is all core used during transmission?
|
It tops out around 15% total but I'm not sure if that is at lowest or highest speed. Either way, CPU is nowhere near getting tested.
|
|
|
02-12-2014, 10:12 AM
|
#21
|
LQ Newbie
Registered: Feb 2014
Posts: 27
Original Poster
Rep:
|
Quote:
Originally Posted by michaelk
]
mount -t cifs //windows/share /media/windows_mountpoint (create a mount point of your own choosing)
P.S I believe that Thunar also uses gvfs which could be the same reason why it is slow.
|
Ok, i'm working on this now. My linux box isn't resolving shares by name right now since it is on bcast. is it ok to use IP such as "//ip of windows machine/share"?
EDIT: I'm trying to use IP instead of computer name but it isn't letting me access the folder. the windows share requires user/pw and I think the terminal is trying to use "root" as the username instead of the correct username. ARg...
Last edited by badtlc; 02-12-2014 at 10:16 AM.
|
|
|
02-12-2014, 10:24 AM
|
#22
|
Moderator
Registered: Aug 2002
Posts: 26,352
|
try:
mount -t cifs //windows/share /media/windows_mountpoint -o username=my_user_name,password=my_password
|
|
|
02-12-2014, 10:37 AM
|
#23
|
LQ Newbie
Registered: Feb 2014
Posts: 27
Original Poster
Rep:
|
Quote:
Originally Posted by michaelk
try:
mount -t cifs //windows/share /media/windows_mountpoint -o username=my_user_name,password=my_password
|
OK, mount command worked. Now how do I test the file transfer? Can I use Thunar for the transfer or does it need to be command line?
|
|
|
02-12-2014, 10:38 AM
|
#24
|
LQ Newbie
Registered: Feb 2014
Posts: 27
Original Poster
Rep:
|
YES! Used thunar and transfer speeds are 10.8 MB/s+!!! Thank you so much.
Now what the heck did this do in a nutshell? Mount as CIFS instead of whatever is default?
|
|
|
02-12-2014, 11:00 AM
|
#25
|
LQ Newbie
Registered: Feb 2014
Posts: 27
Original Poster
Rep:
|
Also, what is the best way to setup this network? Do I need to setup the linux box as a WINS server and direct all windows machines to it? Does it matter?
My machines are DHCP so this mount command I'm using right now is only temporary. The windows machine also goes on and off a lot so I don't want the mount always connected. Is there a way to set cifs as the default method when mounting a network share through Thunar or something? I'd like to not have to do the command line mount every time I need to send files.
Also, this command only gives me read access to the windows share. how do i get write access?
|
|
|
02-12-2014, 12:53 PM
|
#26
|
Moderator
Registered: Aug 2002
Posts: 26,352
|
WINS in a nutshell is a centralized netbios "DNS". linux can not automatically map netbios names to IP addresses so it would be the easiest method vs using a real DNS. Assuming you are using a typical home/SOHO router you could always configure it's DHCP server to provide the same IP for a particular MAC assuming it has that capability.
I do not know if you can change the built in smb client to use mount.cifs.
Check out autofs. It is designed to automatically mount shares on demand.
Try using the options file_mode=0777,dir_mode=0777 for read/write access.
If you want to hide the username,password from world view you can use a credentials file.
As I tried to describe in my other posts you are using two different clients to talk to the windows box i.e. mount.cifs vs the file browsers gvfs. gvfs it appears has some bugs.
Last edited by michaelk; 02-12-2014 at 12:58 PM.
|
|
|
02-12-2014, 02:34 PM
|
#27
|
LQ Newbie
Registered: Feb 2014
Posts: 27
Original Poster
Rep:
|
With WINS setup properly, I should be able to ping a PC by name instead of IP, correct? I know this is possible but not sure what all I need to do so that linux resolves by name instead of IP. My router DHCP is configurable, but I prefer not having static IPs for my own silly reasons.
|
|
|
02-12-2014, 03:54 PM
|
#29
|
LQ Newbie
Registered: Feb 2014
Posts: 27
Original Poster
Rep:
|
Quote:
Originally Posted by michaelk
|
I have done all that. The win7 box shows up in my wins.dat file. So my WINS server appears to be working but i cannot ping the win7 machine by name, just IP. I have searched and can't figure out what setting I'm missing.
|
|
|
02-12-2014, 04:37 PM
|
#30
|
Senior Member
Registered: Apr 2009
Posts: 1,889
Rep:
|
Just make sure all core/thread be involved.
|
|
|
All times are GMT -5. The time now is 01:06 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|