Advertisement

01.06.2008 at 06:46PM PST, ID: 23062683
[x]
Attachment Details

Cannot mount CIFS share at startup

Asked by kfsmyth515 in Linux

Tags: cifs, mount, share

I'm running Ubuntu 7.10.  i'm trying to mount a CIFS share on a NAS. I can mount the nas from the command line, but i want it to automount every time i startup.  I have modified /etc/fstab, i have tried a few different lines but none seem to work. here is what i tried.

//192.168.1.15/public /media/NAS cifs auto,username=<user>,password=<pass>,uid=1000,gid=1000 0 0

//192.168.1.15/public /media/NAS cifs username=<user>,password=<pass>,uid=1000,gid=1000 0 0

//192.168.1.15/public /media/NAS cifs rw,_netdev,username=<user>,password=<pass>,uid=1000,gid=1000 0 0

none of the above successfully mount the NAS at startup. But if i run the command 'sudo mount -a', and it will mount correctly.

As i am writing this, it just hit me that maybe the network hasn't started at the time /etc/fstab is loaded.  maybe i'll look down that path as well.

any help would be great. Thanks in advanceStart Free Trial
[+][-]01.06.2008 at 07:26PM PST, ID: 20596947

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.07.2008 at 12:08AM PST, ID: 20597600

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.15.2008 at 03:11AM PST, ID: 20661520

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Linux
Tags: cifs, mount, share
Sign Up Now!
Solution Provided By: Tomun
Participating Experts: 3
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628