interesting. here's what I would do (and I would do it this way anyway) Either add to the startup script for your app or to a wrapper script you write that is called from the startup script add the mount call there. Better still, check for existing mount, if not, check for server nfs availability and mount if available.
Otherwise, I wonder if the defaults is robbing you the ability to mount at boot for some reason. I take it there's no log message or output on the console mentioning failure of the nfs mount. Either that or nfs needs something else to be started during init prior to mounting. On Fri, Oct 26, 2001 at 01:23:29PM -0500, Dustin Puryear wrote: > [EMAIL PROTECTED] /root]# cat /etc/fstab > non /dev/pts devpts gid=5,mode=620 0 0 > none /proc proc defaults 0 0 > /dev/cdrom /mnt/cdrom auto defaults,ro,noauto 0 0 > /dev/fd0 /mnt/floppy auto defaults,noauto 0 0 > > /dev/hda5 / ext2 defaults 1 1 > /dev/hda6 swap swap defaults 0 0 > /dev/hda7 /scratch ext2 defaults 0 0 > snap1:/apps /apps/snap nfs auto,defaults 0 0 > > After a reboot: > > [EMAIL PROTECTED] /root]# mount > /dev/hda5 on / type ext2 (rw) > none on /proc type proc (rw) > non on /dev/pts type devpts (rw,gid=5,mode=620) > /dev/hda7 on /scratch type ext2 (rw) > > After a manual mount: > > [EMAIL PROTECTED] /root]# mount -a -t nfs > [EMAIL PROTECTED] /root]# mount > /dev/hda5 on / type ext2 (rw) > none on /proc type proc (rw) > non on /dev/pts type devpts (rw,gid=5,mode=620) > /dev/hda7 on /scratch type ext2 (rw) > snap1:/apps on /apps/snap type nfs (rw,addr=192.168.0.11) > > Regards, Dustin > > > > -----Original Message----- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > > Behalf Of Scott Harney > > Sent: Friday, October 26, 2001 1:04 PM > > To: [EMAIL PROTECTED] > > Subject: Re: [brluglist] mounting NFS.. > > > > > > Post your fstab. You should be able to set the "auto" mount option to > > force automatic mounting at startup (when the system runs "mount -a" to > > start filesystems from fstab) > > > > Be aware that if the nfs mount is unavailable, the system won't boot. > > > > On Fri, Oct 26, 2001 at 12:20:30PM -0500, Dustin Puryear wrote: > > > I have an application that starts at system start that runs off an NFS > > > mount. Now, I've found that NFS filesystems are not mounted at > > system start, > > > even if they are in /etc/fstab. I read somewhere that this is > > because of the > > > order in which network services are generally started. > > > > > > Obviously, if the NFS filesystem is not mounted the application will not > > > start. > > > > > > What is the fix for this? Putting: > > > > > > /bin/mount -a -t nfs > > > > > > Or even: > > > > > > /bin/mount /mnt/nfs-fs > > > > > > In /etc/rc.d/rc.local won't help because rc.local runs after most other > > > start-up scripts. But perhaps I'm wrong about rc.local not > > being helpful. > > > > > > Any ideas? > > > > > > Regards, Dustin > > > > > > --- > > > Dustin Puryear <[EMAIL PROTECTED]> > > > http://members.telocity.com/~dpuryear > > > In the beginning the Universe was created. > > > This has been widely regarded as a bad move. - Douglas Adams > > > > > > > > > ================================================ > > > BRLUG - The Baton Rouge Linux User Group > > > Visit http://www.brlug.net for more information. > > > Send email to [EMAIL PROTECTED] to change > > > your subscription information. > > > ================================================ > > > > -- > > Scott Harney<[EMAIL PROTECTED]> > > PGP Key fingerprint = 6D 31 C3 00 77 8C D1 C2 59 0A 01 E3 AF 81 94 63 > > ================================================ > > BRLUG - The Baton Rouge Linux User Group > > Visit http://www.brlug.net for more information. > > Send email to [EMAIL PROTECTED] to change > > your subscription information. > > ================================================ > > > > ================================================ > BRLUG - The Baton Rouge Linux User Group > Visit http://www.brlug.net for more information. > Send email to [EMAIL PROTECTED] to change > your subscription information. > ================================================ -- Scott Harney<[EMAIL PROTECTED]> PGP Key fingerprint = 6D 31 C3 00 77 8C D1 C2 59 0A 01 E3 AF 81 94 63 ================================================ BRLUG - The Baton Rouge Linux User Group Visit http://www.brlug.net for more information. Send email to [EMAIL PROTECTED] to change your subscription information. ================================================
