Autofs is an automount tool for mounting file systems. When you start Linux system, Autofs will also run automatically. The following small series will introduce you to RHEL5 using Autofs. The method of loading the file.
disk /dev /sdb with the mount autofs /data /abc directory.
Add a disk and reboot.
[root@localhost~]# reboot
To implement a trigger mount, you need to edit two files. Edit the /etc/auto.master file, you can refer to the system default trigger mount editing in the file. First write the parent directory of the mounted directory, /data and then write another file name to be edited. This file name is created by yourself. It is usually stored in the /etc directory. The file name is defined according to your needs.
[root@localhost~]# vim /etc/auto.master
/misc /etc/auto.misc
/mytest /etc/auto.mytest
Edit /etc/auto.mytest. This file does not exist and needs to be created by yourself. The format is first written to the subdirectory of the disk mount, just write the subdirectory file name, this subdirectory does not need to be created by itself. Followed by the file system type. Finally write: /dev/sdb, that is: plus the name of the mounted device.
[root@localhost~]# vim /etc/auto.mytest
abc -fstype=ext3 :/dev/sdb
View the /mytest file with no content , but continue to enter the abc directory to enter, then switch back to the /mytest directory to see the abc directory. By default, the system automatically uninstalls the directory if it does not operate for 300 seconds.
[root@localhostdata]# cd /mytest/
[root@localhostmytest]# ls
[root@localhostmytest]# cd abc
[ Root@localhostmytest]# ls
abc
The above is how RHEL5 uses Autofs to mount files. Once Autofs is run, the file system can be mounted and unloaded automatically. Start up automatically.
Ubuntu system installed Nvidia driver, you can switch dual graphics in the settings. The performance
Linux system may not start properly due to NAS storage failure. In this case, you must start with Li
There are many ways to add a Linux string. One is to add a string at the beginning and end of the te
for Linux installation using Telnet Using Telnet under Linux system can realize remote control of W
Ubuntu/Mint can't add a solution for PPA source
Steps to configure Ganglia in CentOS 5.5
How do old computers install open source Linux systems?
Linux terminal view public IP skills
The difference between hardware processing and software processing in Linux system
Steps to install Kali system on a virtual machine
How does UNIX set the user ID bit?
Linux steps to send mail through the command line
CentOS system Lighttpd installation skills
How to use the grep command to search multiple words in Linux
Win8 notebook FN+F5 can not open wireless how to solve?
WINDOWS SERVER 2008 open desktop theme
How to change the default boot system
The first intimate contact with the Windows service
Win7 computer can not install the patch how to do
Win7 can not uninstall /reinstall IE11 solution
A little bit of using Win to install Win7/Win8 system
Detailed analysis of the Linux kernel compilation process in the VMware environment
Webshell and Serv-u combined to obtain the highest authority of the system