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