auto-mount cifs partition via samba

John Hubbard ender8282 at yahoo.com
Mon Mar 23 15:02:11 UTC 2009


Derek Broughton wrote:
> Noah wrote:
>
>   
>> Hi there,
>>
>> I have a cifs partition that is exported via samba from another server.
>>   From time to time I need to reboot that server.
>>
>> I have to manually remount the cifs partition on my ubuntu server.  is
>> there something that can automount the cifs partition when the server
>> comes back after reboot?
>>     
>
> Cron?  I suppose a Windows machine must broadcast _something_ when it comes
> up, and it could be caught, but even Windows machines don't automount
> shares when a server comes online.  (However, I just have to click on
> them).
>   
If the cifs mount is listed in /etc/fstab and set to mount on boot, then 
whenever the client reboots it will try to mount. It might delay the 
boot for a while if the server is not available. The other option would 
be to use autofs (apt-get autofs). Auto-fs waits until you try to read 
the remote mount to mount it. If you have a fast network it is pretty 
quick. My home directory is automounted on the other machines at work 
and I can ssh in pretty quickly. Let me know if you have questions about 
autofs and I can give you better advice.

-- 
-john

To be or not to be, that is the question
                2b || !2b
(0b10)*(0b1100010) || !(0b10)*(0b1100010)
        0b11000100 || !0b11000100
        0b11000100 || 0b00111011
               0b11111111
        255, that is the answer.






More information about the ubuntu-users mailing list