Link to home
Start Free TrialLog in
Avatar of CAB_123
CAB_123Flag for United States of America

asked on

fstab not mounting cifs share at boot


I'm getting very frustrated and need a little help. I'm using Fedora 16 and can't seem to get a Samba share to mount at boot with fstab.

Here is my line in fstab.

//192.168.2.x/RAID  /gateway            cifs    username=xxxxx,password=,_netdev        0 0

yet if I run 'mount -av' it mounts.

bash-4.2# mount -av
mount: UUID=9f47b0b5-7b59-4183-9372-ebe52b7833ed already mounted on /boot
mount: /dev/mapper/VolGroup-lv_home already mounted on /home
//192.168.2.x/RAID on /gateway type cifs (rw,_netdev,username=xxxxx,password=)

I'm using _netdev so it should not be mounting until after the network is up so I am clueless.....

Thank you for any insight you can give.
Avatar of Duncan Roe
Duncan Roe
Flag of Australia image

You need to ensure there is a second _netdev mount during the boot sequence, which must be done after samba has started.
There may or may not be a standard script for this. If not, your script should issue mount -a -O _netdev for the start option, and the same except umount for the stop option.
Avatar of Daniel McAllister
Daniel McAllister
Flag of United States of America image

Link to home
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You could also try adding the noauto option to mount it during login instead of during boot.  It might just be timing out during boot if the network hadn't fully started yet.