Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-13-2010, 11:51 PM
|
#1
|
Member
Registered: Nov 2010
Posts: 93
Rep:
|
not able to permanently mount samba share on linux
my samba server is working properly but i want to mount it permanently on linux (red hat) client.i have tried /etc/fstab and also autofs service but both are not working for me.
1. /etc/fstab
i made the following entry in it
//192.168.0.254/myshare /temp smbfs credentials=/root/pass 0 0
and when i use comman mount -a it shows "unknown filesystem smbfs"
why this is so?
2. using autofs
my auto.master file is shown 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).
#
misc /etc/auto.misc
/net -hosts
#
# Include central master map if it can be found using
# nsswitch sources.
#
# Note that if there are entries for /net or /misc (as
# above) in the included master map any keys that are the
# same will not be seen as the first read key seen takes
# precedence.
#
+auto.master
/rhome /etc/auto.misc
~
~
"/etc/auto.master" 21L, 587C
my auto.misc file is shown below
#
# $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
# 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
nis1 -rw,soft,intr 192.168.0.254:/rhome/nis1
samba -fstype=smbfs,username=vinita,password=redhat ://192.168.0.254/myshare
please tell me where i am wrong?
|
|
|
11-14-2010, 02:01 AM
|
#2
|
LQ Guru
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211
Rep: 
|
|
|
1 members found this post helpful.
|
11-15-2010, 01:39 AM
|
#3
|
Member
Registered: Nov 2010
Posts: 93
Original Poster
Rep:
|
thax alot
it works.
|
|
|
11-15-2010, 02:17 AM
|
#4
|
Member
Registered: Nov 2010
Posts: 93
Original Poster
Rep:
|
i have mounted successfully using autofs.but i umount it using command umount.cifs /misc/samba now how to remount it?
|
|
|
11-15-2010, 06:17 AM
|
#5
|
LQ Guru
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211
Rep: 
|
mount -a
|
|
|
11-15-2010, 11:48 AM
|
#6
|
Member
Registered: Jun 2007
Distribution: Fedora, RHEL, Centos
Posts: 294
Rep:
|
if you mounted using autofs, then to remount it, just try and reaccess the share - `cd /misc/samba`
|
|
|
All times are GMT -5. The time now is 11:50 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|