Automatic mounting of autofs Software Package (6)

Source: Internet
Author: User

Automounter automatically mounts autofs packages

Purpose: automatically mount access partitions.
Master configuration file:/etc/auto. master. format:
Mount directory ing file Parameters
Example:/MISC/etc/auto. Misc -- timeout = 60
Ing file/etc/auto. Misc format:
Keyword mount option device
Example: CD-fstype = iso9660, RO:/dev/CDROM (local)
FD-fstype = Auto:/dev/fd0
Restart the autofs service: # service autofs restart
Method to access the device: Mount directory + keywords
Example: ls/MISC/CD
[Root @ server root] # rpm-QL autofs | more
/Etc/auto. Master
/Etc/auto. Misc
/Etc/rc. d/init. d/autofs
/Misc
/Usr/lib/autofs
/Usr/lib/autofs-LDAP-auto-Master
/Usr/lib/autofs/lookup_file.so
.....

Modify the following two configuration files:
1. [root @ server root] # vi/etc/auto. Master

2. [root @ server root] # vi/etc/auto. Misc
Win-fstype = smbfs, username = RedHat % RedHat: // win2003/d

View logs: [root @ server root] # tail/var/log/message

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.