Re: [ubuntu-uk] mount and fstab query
On Thursday 15 July 2010 19:19:18 Bob Giles wrote: > Thank you all for your suggestions and references. This does indeed > appear to be a timing problem. > > The power supply here in Greece where I live has been particularly > tiresome lately and as a result, everything gets powered down overnight. > Tyler's suggestion seems to be the way to go. I did not realise that > networking started on bootup as opposed to login. To be exact, basic networking (localhost) starts at boot. Networking by cable MAY start at boot, but usually at login. Wireless only starts at login as it needs access to your keyring to get the key. But mounting from fstab always happens at boot. Tyler -- "He that is truly deep strives for clarity, he that wishes to appear deep to the crowd strives for obscurity, for the crowd considers deep only that which it cannot see to the bottom, the crowd is so timid and afraid of going into the water." -- Friedrich Nietzsche -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] mount and fstab query
On 15/07/10 11:27, ByteSoup wrote: On 15/07/10 07:36, Bob Giles wrote: Now it only works if I run sudo mount -a after bootup. Any ideas? == Snip == Alan, Tyler and Mark, Thank you all for your suggestions and references. This does indeed appear to be a timing problem. The power supply here in Greece where I live has been particularly tiresome lately and as a result, everything gets powered down overnight. Tyler's suggestion seems to be the way to go. I did not realise that networking started on bootup as opposed to login. Thanks again to you all for your time. Regards, Bob Giles -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] mount and fstab query
On 15/07/10 07:36, Bob Giles wrote: Now it only works if I run sudo mount -a after bootup. Any ideas? TIA Bob Giles Hi Bob, I dont think my problem is similar to yours but I made a post on the Ubuntu forums a while back using Xubuntu: http://ubuntuforums.org/showthread.php?t=915939 It might help you -Mark -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] mount and fstab query
On Thursday 15 July 2010 07:36:24 Bob Giles wrote: > 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. Is networking available at boot-time? Or only after you login? Does mountall run before networking starts? One difference since Ubuntu 7.10 is the addition of network manager and when networking starts (on bootup versus on login). The easiest solution is to script a "sudo mount /media/Storage" as part of your login. Regards, Tyler -- "If one would give me six lines written by the hand of the most honest man, I would find something in them to have him hanged." -- Armand Jean du Plessis, Cardinal Richelieu -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] mount and fstab query
On 15/07/10 07:36, Bob Giles wrote: > 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. Any errors reported in, for example, /var/log/syslog or /var/log/samba/...? My first thought was a timing issue, i.e. the cifs kernel module isn't loading quickly enough. I'm not sure if this is the right avenue at all but one I would try and check. Have you changed anything (updated s/w) on either system recently? For example I recently upgraded my home server to 10.04 and a change to the samba stack stopped my Wife's WindowsXP VM (just for iTunes) working, but didn't affect anything else. It only required a minor change (forcing Samba to be a WINS server) but just to illustrate a point. There are few pointers here that might help too: http://www.justlinux.com/nhf/Filesystems/Mounting_smbfs_Shares_Permanently.html HTH Al -- The Open Learning Centre http://www.theopenlearningcentre.com -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
[ubuntu-uk] mount and fstab query
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 -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/