christopher barry on 8 Mar 2017 10:52:02 -0800

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] network drive doesn't mount on boot after update--how to check why?

On Wed, 8 Mar 2017 13:05:30 -0500
Greg Helledy <> wrote:

> We have a server that's running ClearOS 6, a specialized distro of 
> CentOS 6 to act as a server for small businesses.
> Ever since a major system update a few weeks ago (I hadn't run
> updates in about 6 months; about 250 packages were updated) the
> system no longer mounts a network drive on boot.
> The relevant line in /etc/fstab is:
> > //  /media/networkdrive     cifs
> > username=XXXXX,password=XXXXX,iocharset=utf8,sec=ntlm       0 0  
> Once the machine is up and running, I can do:
>  > mount /media/networkdrive  
> and it mounts without issue.
> Please forgive my asking basic questions, I am not an IT person by 
> profession.  I assume there's a logfile I should check to see what's 
> going on, what's it called?  Or otherwise, where would I start to get 
> this drive mounting at boot again?
> Thanks,

More than likely the network is not available when it tries to mount it.

One thing you can do as a test is edit and put the following code
in /etc/rc.local

#code begins
until [ -f "$mntpnt/$tfile" ]; do
    mount /media/networkdrive
    sleep 1
    count=$((count + 1 ))
echo "/media/networkdrive mounted in '$count' seconds"
#code ends

that will keep trying until it mounts it. it looks for a specific file
(edit tfile=yourfile) and then continues. It will say how long it took
to mount it in syslog.


Philadelphia Linux Users Group         --
Announcements -
General Discussion  --