LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-14-2007, 10:08 AM   #1
qeny
LQ Newbie
 
Registered: Jan 2007
Posts: 4

Rep: Reputation: Disabled
fstab smbfs mount question.


Hi.
When I type "sudo mount -t smbfs //canyon/shareddocs /home/qeny/canyon -o guest", shareddocs is successfully mounted.. but when I put it in /etc/fstab, it isn't.

Code:
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
/dev/sda1       /               ext3    defaults,errors=remount-ro 0       1
/dev/sda5       none            swap    sw              0       0
/dev/hda        /media/cdrom0   udf,iso9660 user,noauto     0       0
//canyon/shareddocs	/home/qeny/canyon	smbfs	guest	0	0
What reasons are there that this might be happening? How should I try to fix this?
 
Old 02-14-2007, 10:41 AM   #2
nightshade_1977
Member
 
Registered: Nov 2006
Location: Clarksville, VA
Distribution: Linux Mint, Ubuntu Server
Posts: 114

Rep: Reputation: 15
try 'mount -a' after boot to test if your fstab entries are correct, if that works then the issue is that fstab is processed before SMBFS loads
if that is the case then look around a a bit on the site I have seen a thread relating to that issue just not sure where

_________________________________________________________________________________________
'ladies and Gentlemen take my advise let down your pants and slide on the ice' --M*A*S*H* --Sydnie (the shrink)
 
Old 02-14-2007, 10:48 AM   #3
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
You need to add a line to fstab, after the smbfs line, that includes the username and password for the share. Here is a discussion, with examples.

http://www.justlinux.com/nhf/Filesys...rmanently.html
 
Old 02-14-2007, 11:02 AM   #4
qeny
LQ Newbie
 
Registered: Jan 2007
Posts: 4

Original Poster
Rep: Reputation: Disabled
"mount -a" does successfully mount the share, so I guess I'll look for that thread.

I don't think that the share actually has a password-- I can mount it without specifying username/password and without the option "guest".
 
Old 02-14-2007, 11:27 PM   #5
qeny
LQ Newbie
 
Registered: Jan 2007
Posts: 4

Original Poster
Rep: Reputation: Disabled
So, the solution used in the related thread was to create an init script that ran at the end of runlevel S. Although I don't really understand what runlevel S is, I made a script /etc/init.d/mountall2.sh which contained
Code:
#!/bin/sh
mount -a
which is what I think MarkSide did. Then I ran "sudo update-rc.d mountall2.sh start 99 S .", which seemed successful.

However, that's apparently not working. I've tried doing a few other things, like making the script mount only the share with smbmount or mount -t smbfs, or doing "update-rc.d .. defaults .."; those didn't work.

Anyway, maybe I'm missing something. Any ideas?

Last edited by qeny; 02-14-2007 at 11:29 PM.
 
  


Reply


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
Why fstab doesn't mount smbfs rjkfsm Linux - Newbie 3 12-16-2011 01:23 PM
Delay fstab mount of smbfs during boot Iron City Linux - General 7 01-21-2009 03:58 PM
smbfs, fstab, spaces in the folder i want to mount. Problems! JapanFred Linux - Networking 1 12-29-2005 04:27 PM
mounting an smbfs share using mount vs /etc/fstab sichen Linux - Networking 4 08-13-2004 07:40 PM
can anyone with rh9 mount multiple shares with smbfs in fstab? Falafel Linux - Networking 2 11-15-2003 09:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:18 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