I'm trying to automatically mount a windows share in a Fedora 12 instance (FC12).

When I manually mount things work:

mount -t cifs //nas01/servers -o username=guest,password=myPassword /mnt/nas01/servers

If I update /etc/fstab with the following:

//nas01/servers /mnt/nas01/servers cifs username=guest,password=myPassword 0 0

Nothing happens after reboot.

The thing that has me baffled is after a reboot if I run:

mount -a

The share is mounted.

Any ideas on this?

Thank you,

Martin

link|improve this question
feedback

3 Answers

up vote 1 down vote accepted

It could be that when your fstab is processed all required prerequisites aren't in place to mount the network share.

You can try adding the mount command to your rc.local startup script.

link|improve this answer
feedback

From man 8 mount:

FILESYSTEM INDEPENDENT MOUNT OPTIONS
_netdev
The filesystem resides on a device that requires network access (used to prevent the system from attempting to mount these filesystems until the network has been enabled on the system).

link|improve this answer
feedback

Fedora has a script netfs that parses fstab a second time during boot once the network is up to mount shares:

chkconfig netfs on

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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