How To Automount Localnetwork Share Files?
hello everyone.
i'm new in ubuntu, please help me to solve this problem.
here is my auto.master file below
#
# $Id: auto.master,v 1.4 2005/01/04 14:36:54 raven Exp $
#
# Sample auto.master file
# This is an automounter map and it has the following format
# key [ -mount-options-separated-by-comma ] location
# For details of the format look at autofs(5).
#/smb /etc/auto.smb
#/misc /etc/auto.misc
#/net /etc/auto.net
/misc /etc/auto.misc --timeout=60
and this one is auto.misc file
# $Id: auto.misc,v 1.2 2003/09/29 08:22:35 raven Exp $
#
# This is an automounter map and it has the following format
# key [ -mount-options-separated-by-comma ] location
# Details may be found in the autofs(5) manpage
cd -fstype=iso9660,ro,nosuid,nodev :/dev/cdrom
share01 -fstype=cifs,username=liyi%19851108 ://192.168.0.1/share1
share02 -fstype=cifs,username=liyi%19851108 ://192.168.0.1/share2
# the following entries are 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
but when i type command $ sudo ls /misc/share01
system shows a error message NO SUCH FILES OR DIRECTORY
i've tried to use cifs and smbfs both in auto.misc file,,but it still doesn't work.
is there anyone know what's wrong with it, and how to automount windows localnetwork share in the right way?,,,thanks very much!
Last edited by linzz; 04-25-2007 at 05:44 PM.
|