<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#ffffff">
<font face="Verdana">Hi guys,<br>
<br>
I always work on the theory that most problems are caused by the lowest
common denominator .... Me! However, this time I am not so sure.<br>
<br>
There is probably a simple answer to my query but so far it has eluded
me. I have added a line to /etc/fstab which originally mounted a couple
of shares on my Netgear Duo NAS at bootup. It worked fine for a couple
of days and has now stopped working. However, if I run sudo mount -a in
terminal the shares mount as expected.<br>
<br>
It may help solve this if I outline the background to this.<br>
<br>
I am running 10.04 32bit. I have always been unable to access images
which I have stored on the NAS in shared folders from programs such as
Picasa, Gwenview or Digikam. I guess that I am not alone with that
problem. After a lot of googling I found a 'solution' that was
originally published in respect of version 7.10. I will summarise the
'solution'.<br>
<br>
1. Install smbfs<br>
2. Create a folder inside /media. In my case /media/NASmedia<br>
3. Create a credentials file in /root. (.cifscredentials) It contains
passwords and is protected by the root account.<br>
4. Edit .cifscredentials to contain username-USERNAME and
password=PASSWORD. Save and close the file.<br>
5. Edit /etc/fstab and add the following line at the end of the file:<br>
</font>
<pre>//192.168.1.15/SHARENAME /media/Storage cifs auto,iocharset=utf8,uid=USER,gid=users,credentials=/root/.cifscredentials,file_mode=0775,dir_mode=0775 0 0</pre>
<p><font face="Verdana">NB. 192.168.1.15 is the IP address of my NAS<br>
SHARENAME is the share name to mount.<br>
USER is my Ubuntu username.<br>
</font><br>
<font face="Verdana">The file_mode=0775,dir_mode=0775 part sets the
mounted directory as read/write for all users so long as the SMB
username you set in .cifscredentials has read/write access.<br>
</font></p>
<p><font face="Verdana">Once saved, the system would display a drive
icon for the mounted share and it was accessible to all programs after
running sudo mount -a or upon reboot.<br>
</font></p>
<p><font face="Verdana">Now it only works if I run sudo mount -a after
bootup.<br>
</font></p>
<p><font face="Verdana">Any ideas?<br>
</font></p>
<p><font face="Verdana">TIA<br>
</font></p>
<p><font face="Verdana">Bob Giles<br>
</font></p>
</body>
</html>