My Blog List

Thursday, June 24, 2010

Autofs (auto mount partition)

###################### AUTOFS #######################

We are install this service for automatically mount the partition.

1)To create a partition.
#fdisk /dev/sda
#partprobe /dev/sda

2)To format the partition.
#mkfs.ext3 /dev/sda9

3)To create a nested directory.
#mkdir -p /vikas/lax

4)To open the master file.
#vim /etc/auto.master
/vikas        /etc/auto.misc

5)To open the misc file.
#vim /etc/auto.misc
lax             -fstype=ext3            :/dev/sda9

6)To restart the service.
#service autofs restart

7)To check.
#cd /vikas/lax

or

[root@localhost lax]#
#mount
/dev/sda9 on /vikas/lax type ext3 (rw)

###################### END ###########################
By Laxman D. Kadam
Ph. No. 9967413230
email:-vikasjk3@gmail.com

No comments:

Post a Comment