LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 07-11-2008, 06:43 PM   #1
babag
Member
 
Registered: Aug 2003
Posts: 419

Rep: Reputation: 31
trying to auto mount xp share in fstab


this isn't mounting:
Code:
//192.168.1.101/Capture\ (E) /home/xfers/mnt/d200 smbfs username=username,password=password,fmask=0777,dmask=0777 0 0
getting the error:
Code:
[mntent]: line 5 in /etc/fstab is bad
if i try a 'mount -a'

what's wrong here?

i am able to log into the share via smb4k without issue.
i also am able to share a folder within the drive (this is
an entire shared drive) in fstab.

thanks,
BabaG

mandriva 2007.1

Last edited by babag; 07-11-2008 at 06:45 PM.
 
Old 07-11-2008, 06:53 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Depending on your kernel version, use cifs instead of smbfs. Smbfs is depreciated. Having spaces and evil characters in the share definition is a bad idea. Use a legal share name. The first entry should be the name of the share and not the directory being shared. I'm not sure how the mount command parses the fstab file but it seams that you are partially confusing escaping spaces in bash, but bash doesn't read the fstab file. ( I say partially because the "(" and ")" would be escaped in bash as well. You may also have the share name and comment mixed up. The first field looks more like a command than a share name.

Last edited by jschiwal; 07-11-2008 at 06:54 PM.
 
Old 07-11-2008, 06:59 PM   #3
babag
Member
 
Registered: Aug 2003
Posts: 419

Original Poster
Rep: Reputation: 31
just tried cifs and got same error.

don't know how to alter the share name. the drive is
just named 'Capture'. xp seems to be adding the ' (E)'
to the equation. in any event, i'd be hesitant to
make too many changes in this area as there's a lot
of things already hung onto this particular name.
wish i could just get a way to make the name work,
however xp is feeding it.

thanks,
BabaG
 
Old 07-12-2008, 04:48 AM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Run:
smbclient -L <xp_ip_address>
After authenticating, the services will be listed. I still think that you are using the description and not the name. Use the name of the service instead. I believe that if you didn't manually create a discription for the service, that XP is using the name but adding that extra " (E)" at the end.

Another thing you could do is browse to that host, for example, enter in konqueror:
smb:/.
 
  


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
Can't mount nfs share from fstab but can mount it manually - help Mountain Linux - Networking 1 03-30-2008 08:34 PM
Auto-mount windows share on boot - manual OK, auto not ok! erskie Linux - Newbie 2 02-12-2008 06:42 PM
devices in /etc/fstab don't auto mount at startup : jabka Linux - General 3 08-23-2006 03:28 PM
FSTAB: My Win Share Wont Mount @ Boot, but will when I sudo mount -a...please help! TruANTOlogy Ubuntu 8 06-20-2006 08:00 AM
Win share will not auto mount, inclu in Fstab ZingSter SUSE / openSUSE 4 04-06-2005 07:22 AM

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

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