Avatar of CAB_123
Flag 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.
Linux NetworkingLinuxLinux Distributions

Avatar of undefined
Last Comment

8/22/2022 - Mon
Duncan Roe

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.
Daniel McAllister

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question

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.

Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy