Friday 7 December 2012

Accessing Windows file shares from Ubuntu

I've been using Ubuntu on my home laptop for about a month now with the intention of giving it a good run as my main OS before deciding whether or not I should continue on with my previous Windows XP installation.

One of the problems I've been having is with accessing Windows file shares. It's been kind of on and off for a while whether I would be able to access files on my home server or not. I've setup my fstab configuration file to connect on startup, my Samba configuration for the correct Windows workgroup and tried various other tips and tricks. But all to no avail.

However I think I've finally fixed the problem! Many thanks to the author of the blog Boinst for this tip. The solution that worked for me was a registry edit on my Windows box. I needed to change two registry keys to setup this fix:

HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\LargeSystemCache

Change this key to '1'.

HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters\Size

Change this key to '3'.

The first key tells Windows to enable enough cache memory for large file sharing and the second key tells Windows to prioritise file sharing over memory saving.

So far this has sorted my file sharing problem with Ubuntu. Hope this helps others.