Mount /etc/fstab – How to Mount at Startup

fstabmount

I already added the remote directories I want mounted at startup in /etc/fstab, but when I reboot, they don't get mounted.

If I run mount -a it all works, but it appears that mount -a doesn't get executed at boot. Is there something I need to enable in order to have them mounted by default?

My fstab looks like this:

/dev/sda1 / ext3 defaults 1 1
none /dev/pts devpts gid=5,mode=620 0 0
none /dev/shm tmpfs defaults 0 0
none /proc proc defaults 0 0
none /sys sysfs defaults 0 0
10.46.7.232:/var/www/html/images /var/www/html/images nfs rw 0 0
10.46.7.232:/var/www/html/files /var/www/html/sites/default/files nfs rw 0 0
10.190.53.183:/var/www/thumbnails/uploads /var/www/html/uploads nfs rw 0 0
10.46.7.232:/var/www/html/vizbox /var/www/html/vizbox nfs rw 0 0

and I am running CentOS 5.8

Best Answer

Ensure that the netfs service is enabled. Use either ntsysv or chkconfig to enable it.