how to auto mount a file system on reboot
Hi,
I am a newbie using Oracle Enterprise Linux (flavor of Red Hat Linux). I have added a new disk and created a mount point /u02. How can I get it auto mount on reboot of the server? # uname -a Linux rac11g 2.6.18-92.1.17.0.2.el5xen #1 SMP Tue Nov 18 04:11:19 EST 2008 i686 i686 i386 GNU/Linux #cat /etc/redhat-release Enterprise Linux Enterprise Linux Server release 5.2 (Carthage) right now, after mounting the file system manually, # mount -l /dev/xvdb on /u02 type ext3 (rw) I have mounted the file system manually using: mount /dev/xvdb /u02 I appreciate your help. Thanks and Regards, Badri. |
add the following to the end of your /etc/fstab --
Code:
/dev/xvdb /u02 ext3 defaults 0 2 |
The above Solution works for you.
|
Badri, just have a look at
Code:
/etc/fstab |
Quote:
Code:
#vi /etc/fstab |
Thanks a lot for your help. I will try and update you.
I appreciate your help. Regards, Badri |
If this does not work for you, you can create a mount script and place it within /etc/rc5.d. Things here take place in a specific order, so make sure you give it a name that is towards the end of the list.
Quote:
|
All times are GMT -5. The time now is 11:39 PM. |