Operating System - Linux
1752583 Members
4898 Online
108788 Solutions
New Discussion юеВ

mount after server reboot

 
SOLVED
Go to solution
haeman
Frequent Advisor

mount after server reboot

In my system , it mount to another server , can advise if I want it will be auto mount after server reboot , what can i do ? thx
5 REPLIES 5
Ivan Ferreira
Honored Contributor

Re: mount after server reboot

Probably you are talking about an nfs mount. Add a line like this in your /etc/fstab file:


nfs_server:/export /mount_point nfs rw,hard,intr,rsize=8192,wsize=8192 0 0
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Ivan Ferreira
Honored Contributor

Re: mount after server reboot

Please remember to assign points. I see in your profile:

I have assigned points to 1 of 75 responses to my questions.

Take a time to review your questions and answer and assign points to them.

http://forums11.itrc.hp.com/service/forums/pageList.do?userId=WW20733&listType=unassigned&forumId=1

Cheers.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
haeman
Frequent Advisor

Re: mount after server reboot

thx reply ,

how about another method --> add a mount script to /etc/inittab or /etc/rc3.d/init.d , is it OK ? thx
Matti_Kurkela
Honored Contributor
Solution

Re: mount after server reboot

Adding a script to /etc/inittab is generally not recommended, as errors in that file can make the server inaccessible after a reboot. Of course you can do it if you insist.

Using a mount script (either in inittab or in /etc/init.d) is technically possible, but it is a non-standard solution which might confuse anyone else who might be administering that machine. It usually means that the junior sysadmin will call you when you're supposed to be relaxing on your hard-earned vacation...

MK
MK
Steven E. Protter
Exalted Contributor

Re: mount after server reboot

Shalom,

Yes, you can use autofs.

http://www.greenfly.org/talks/autofs/autofs.html\
http://freespace.sourceforge.net/guidod/howto/autofs.html
http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch30_:_Configuring_NIS

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com