[ubuntu-uk] mount and fstab query

Bob Giles thecorfiot at gmail.com
Thu Jul 15 07:36:24 BST 2010


Hi guys,

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.

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.

It may help solve this if I outline the background to this.

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'.

1. Install smbfs
2. Create a folder inside /media. In my case /media/NASmedia
3. Create a credentials file in /root. (.cifscredentials) It contains 
passwords and is protected by the root account.
4. Edit .cifscredentials to contain username-USERNAME and 
password=PASSWORD. Save and close the file.
5. Edit /etc/fstab and add the following line at the end of the file:

//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

NB. 192.168.1.15 is the IP address of my NAS
        SHARENAME is the share name to mount.
        USER is my Ubuntu username.

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.

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.

Now it only works if I run sudo mount -a after bootup.

Any ideas?

TIA

Bob Giles

-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/ubuntu-uk/attachments/20100715/a8dd0471/attachment.htm 


More information about the ubuntu-uk mailing list