Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 11-26-2002, 08:18 PM   #1
Registered: Mar 2002
Location: Sydney, Australia
Distribution: RHEL, Fedora, Yellow Dog
Posts: 43

Rep: Reputation: 15
SMB mounting with /etc/fstab

Hi There,

I am having problems mounting a SMB share with my fstab file.

I can mount it manually with

mount -t smbfs //servername/sharename /mnt/servername -o uid=500,gid=500,username=username,password=xxxxx,rw

This works lovelly, RH8.0 even puts a icon on my desktop for the drive.

However I've added this line to my fstab
//servername/sharename /mnt/servername smbfs uid=500,gid=500,username=username,password=xxxxxx,rw 0 0

and it doesnt mount at boot time, I get the error;
Mounting SMB filesystems: error 591, Connecting to servername failed.

However after bootup when I do a mount -a it reads this same config line from the fstab and mounts the drive fine.

Does anyone have any ideas as to why this might be, I thought you could test /etc/fstab configs by unmounting the drives in question and running a mount -a.
Old 11-26-2002, 10:11 PM   #2
Registered: Feb 2001
Location: Colorado Springs, CO
Distribution: Redhat v8.0 (soon to be Fedora? or maybe I will just go back to Slackware)
Posts: 857

Rep: Reputation: 30
it may be that its trying to mount the drive before the network or dependent services for smb have started? Not sure.

you could just put a "mount -a" in your rc.local to get around this for now.

Old 01-15-2003, 04:37 AM   #3
LQ Newbie
Registered: Jan 2003
Location: Austria
Distribution: Suse, Debian, RH, WinXP, Win2kServer
Posts: 1

Rep: Reputation: 0
maybe an "auto" helps

you can try
//servername/sharename /mnt/servername smbfs auto,uid=500,gid=500,username=username,password=xxxxxx,rw 0 0



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
SMB mount through fstab Zero-0-Effect Linux - General 2 10-13-2005 11:13 PM
smb mount fstab Redouane Benkad Linux - Networking 11 11-27-2004 10:41 PM
automounters, smb, and fstab bardinjw Linux - Networking 0 03-23-2004 01:21 PM
SMB shares and fstab sfagundes Fedora 1 12-30-2003 12:47 PM
SMB shares in fstab gargamel237 Red Hat 3 08-30-2003 09:46 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:44 PM.

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