LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-13-2010, 11:51 PM   #1
piyusharora420
Member
 
Registered: Nov 2010
Posts: 93

Rep: Reputation: 0
Question 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?
 
Old 11-14-2010, 02:01 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
You use cifs to mount samba shares, not smbfs.
http://www.samba.org/samba/docs/man/...nt.cifs.8.html
http://wiki.samba.org/index.php/Moun..._a_unix_client
 
1 members found this post helpful.
Old 11-15-2010, 01:39 AM   #3
piyusharora420
Member
 
Registered: Nov 2010
Posts: 93

Original Poster
Rep: Reputation: 0
thax alot
it works.
 
Old 11-15-2010, 02:17 AM   #4
piyusharora420
Member
 
Registered: Nov 2010
Posts: 93

Original Poster
Rep: Reputation: 0
i have mounted successfully using autofs.but i umount it using command umount.cifs /misc/samba now how to remount it?
 
Old 11-15-2010, 06:17 AM   #5
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
mount -a
 
Old 11-15-2010, 11:48 AM   #6
zQUEz
Member
 
Registered: Jun 2007
Distribution: Fedora, RHEL, Centos
Posts: 294

Rep: Reputation: 54
if you mounted using autofs, then to remount it, just try and reaccess the share - `cd /misc/samba`
 
  


Reply

Tags
samba, smbclient, smbfs


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mount samba share on windows permanently hhh123 Linux - Server 4 07-08-2010 01:32 AM
Permanently Delete/Shred a samba share GaijinPunch Linux - Software 2 06-13-2009 09:15 PM
Windows 98SE not able to mount Linux SAMBA share patrick295767 Linux - Software 6 11-12-2006 11:25 AM
Mount Samba Share on Linux RH9 ja_nch Linux - General 5 10-17-2003 01:32 PM
XP not able to mount Linux share through SAMBA Peter2003 Linux - Software 2 06-04-2003 11:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration