When using Colinux virtual Linux, some configuration of the file system is automatically mounted with the AutoFS software

Source: Internet
Author: User

This article takes the release version as CentOS6.5 as an example----->>

1) Set the mount Source:

To mount the Windows drive file system, open a CoLinux boot settings file (centos6.conf)

Add the following content:

cofs0= "c \"

cofs1= "D:\"

Cofs2= "E:\"

2) Install the AutoFS package under CoLinux virtual CentOS

Yum-y Install AutoFS


3) Edit the two configuration files of AutoFS software with VI


--------------------------------------------------------------------------

Auto.master----->

#

# Sample Auto.master File

# This was a ' master ' automounter map and it has the following format:

# mount-point [Map-type[,format]:]map [Options]

# for details of the format look at Auto.master (5).

#

/misc/etc/auto.misc--timeout=60

#

# note:mounts done from a hosts map would be mounted with the

# "Nosuid" and "Nodev" options unless the "suid" and "Dev"

# options are explicitly given.

#

/net-hosts

#

# Include Central Master Map If it can be found using

# Nsswitch sources.

#

# Note that if there is entries for/net Or/misc (as

# above) in the included master map all keys that is the

# same won't be seen as the first read key seen takes

# precedence.

#

+auto.master

---------------------------------------------------------------------------


---------------------------------------------------------------------------

Auto.misc----->



# a Automounter map and it has the following format

# key [-mount-options-separated-by-comma] Location

# Details May is found in the AutoFS (5) manpage


Cd-fstype=iso9660,ro,nosuid,nodev:/dev/cdrom


# The following entries is samples to pique your imagination

#linux-ro,soft,intr Ftp.example.org:/pub/linux

#boot-fstype=ext2:/dev/hda1

#floppy-fstype=auto:/dev/fd0

#floppy-fstype=ext2:/dev/fd0

#e2floppy-fstype=ext2:/dev/fd0

#jaz-fstype=ext2:/DEV/SDC1

#removable-fstype=ext2:/DEV/HDD

Win_c-fstype=cofs:cofs0

Win_d-fstype=cofs:cofs1

Win_e-fstype=cofs:cofs2



-------------------------------------------------------------------------


4) finally start the AutoFS service to

/etc/init.d/autofs start

This article is from the "Ask the Void Start Dust" blog, please be sure to keep this source http://svip369.blog.51cto.com/12787722/1913764

When using Colinux virtual Linux, some configuration of the file system is automatically mounted with the AutoFS software

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.