Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

My CIFS volume is not mounting automatically while boot (like other partitions). This is relevant part of my /etc/fstab:

//leonidas/files    /media/photos	cifs	credentials=/etc/samba/user,rw,uid=root,gid=samba,user,auto,noexec,suid,iocharset=utf8	0	0

When I do

sudo mount -a

It is mounted properly, but I want it to be mounted while boot. Why it is not?

My system is ubuntu 9.04.

share|improve this question

1 Answer 1

up vote 2 down vote accepted

I don't believe networking is up at the time at the time the filesystems are mounted. NFS mounts are started by a script in /etc/network/if-up.d/mountnfs. The comments in mountnfs script say it should also mount CIFS shares.

You might want to try rebooting the system and then manually running the /etc/network/if-up.d/mountnfs script to see if any errors are displayed. If their are errors, add them to your question.

share|improve this answer
    
I'm getting such message: "* if-up.d/mountnfs[]: waiting for interface eth0 before doing NFS mounts" It is strange, because my only running eth interface is eth1. –  amorfis Aug 25 '09 at 21:04
    
You are going to want to alter the script to reflect the interface as eth1 and not eth0 if you want it to work. –  David Rickman Sep 6 '09 at 6:31

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.