LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Network drives in fstab not always mounting at boot time (https://www.linuxquestions.org/questions/linux-networking-3/network-drives-in-fstab-not-always-mounting-at-boot-time-4175430240/)

DiBosco 10-03-2012 03:45 AM

Network drives in fstab not always mounting at boot time
 
For quite some time I have mapped network drives in fstab so they are always there on my desktop. However, with Mageia 2 more often than not, I have to issue mount -a command as root to force a connect.

I assume this is something to do with Linux trying to mount the drives before the network is up. Is there a way of forcing the system to wait until the network's up before trying to mount these drives on my server?

Many thanks!

Glennzo 10-03-2012 04:02 AM

Post the content of your /etc/fstab.

On my Fedora 17 boxes I use something like this:
Code:

blackhole:/script /mnt/script nfs _netdev,auto 0 0
Works well. Of course, that's an NFS share. At any rate, you do need to wait for the network to come up.

DiBosco 10-03-2012 04:14 AM

fstab as requested. :)


Code:

# Entry for /dev/sda5 :
UUID=e2bff639-3a7f-45c7-a85c-f31c53e0609a / ext4 acl,relatime 1 1
# Entry for /dev/sda1 :
UUID=ea5bd37c-e98f-457b-a6e9-8ecb83becf2c /boot ext4 acl,relatime 1 2
# Entry for /dev/sda8 :
UUID=00206516-58c3-4f78-8086-8f8a9f229212 /home ext4 acl,relatime 1 2
/dev/sr0 /media/cdrom auto umask=0,users,iocharset=utf8,noauto,ro,exec 0 0
//server/CAD /mnt/CAD cifs credentials=/etc/samba/auth.server.robertw 0 0
//server/Data /mnt/Data cifs credentials=/etc/samba/auth.server.robertw 0 0
//server/Kinnara /mnt/Kinnara cifs credentials=/etc/samba/auth.server.robertw 0 0
//server/Software /mnt/Software cifs credentials=/etc/samba/auth.server.robertw 0 0
//server/filmstv /mnt/filmstv cifs credentials=/etc/samba/auth.server.robertw 0 0
# Entry for /dev/sdb8 :
UUID=f2902d44-980d-4d71-9160-bd61f03709ca /mnt/oldhome ext4 defaults 1 2
# Entry for /dev/sda7 :
UUID=bb6b60b6-6c0a-458a-a6dc-12eacc854273 /opt ext4 acl,relatime 1 2
none /proc proc defaults 0 0
# Entry for /dev/sda6 :
UUID=0682abbc-3716-43de-9264-a8a161a97bc1 swap swap defaults 0 0



All times are GMT -5. The time now is 05:36 PM.