LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-26-2004, 08:56 PM   #1
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Rep: Reputation: 30
fstab and samba?


I am not having any luck mounting my samba share by using my fstab file
below is what I have in my fstab
Code:
//marsala/My\ Documents  /home/shane/samba  smbfs   username=root,password=<password>,users,noauto    0 0
when I type mount test , I get this output
Code:
shane@mainbox shane $ mount samba
[mntent]: line 18 in /etc/fstab is bad
mount: can't find /home/shane/samba in /etc/fstab or /etc/mtab
/home/shane/samba is in my fstab, according to the error lmessage, it is not in there.

I am able to mount my share manually using this command
Code:
mount -t smbfs //marsala/My\ Documents /home/shane/samba
 
Old 12-27-2004, 04:36 PM   #2
twsnnva
Member
 
Registered: Oct 2003
Location: Newport News, Va
Distribution: Debian
Posts: 246

Rep: Reputation: 30
You can't mount samba shares via fstab when the exported name contains spaces. The best way to fix this would be to share the folder with an underscore in place of the space. I guess, alternatively, you could create a startup script and mount the share with it. I'm not sure about gentoo but for debian I would create a script(chmod +x) called "S99mountshare", containing:
Code:
#!/bin/sh
/sbin/mount -t smbfs //marsala/My\ Documents /home/shane/samba -o username="user",password="pass"
and place it in the /etc/rcS.d/ directory.
 
Old 12-27-2004, 04:52 PM   #3
Ateo
Member
 
Registered: Sep 2004
Location: Long Beach, CA
Distribution: FreeBSD,Ubuntu,Gentoo,MacOS
Posts: 139

Rep: Reputation: 15
I've never been able to mount an fstab defined mountpoint that contains a space. Best bet, use an underscore.
 
  


Reply



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
samba fstab gunnix Debian 4 07-02-2005 08:16 AM
samba mounts in fstab Zurvan Linux - Networking 5 04-17-2005 10:13 AM
Samba in fstab, problem hraposo Debian 9 12-16-2004 06:36 AM
Fstab problem with Samba jalperin Linux - Newbie 6 08-28-2004 03:25 PM
Samba and fstab Celettu Linux - Networking 2 07-13-2004 12:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:39 PM.

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