LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-31-2014, 09:03 AM   #1
aagaag
Member
 
Registered: Aug 2014
Posts: 42

Rep: Reputation: Disabled
strange fstab cifs automount issue


I want a windows drive to automount at boot (archlinux), so I entered this line into fstab:
Code:
//10.10.10.16/kellerpcroot      /data/www/webdav        cifs credentials=/home/aag/.smbcredentials,rw,user,_netdev,UID=1000,iocharset=utf8 0 0
However, no mount occurs. The command
Code:
sudo mount -a
results in the following error:

Code:
mount error(22): Invalid argument
However, I can mount the same drive from the command line, and that works fine with the folllowing command:

Code:
1730/199sudo mount -t cifs -o username=user,password=secret //10.10.10.16/kellerpcroot  /data/www/webdav
Now, after having mounted manually, the
Code:
sudo mount -a
command works just fine, which I think means that there is no syntactical error in the fstab.

What might be going on here? This issue is driving me crazy!
 
Old 08-31-2014, 11:29 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,698

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
You have uppercase UID in your fstab entry which is a syntax error.
 
1 members found this post helpful.
Old 08-31-2014, 11:45 AM   #3
aagaag
Member
 
Registered: Aug 2014
Posts: 42

Original Poster
Rep: Reputation: Disabled
Thanks Michael, you are brilliant! The issue is resolved.
 
Old 08-31-2014, 11:56 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,698

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Your welcome.
 
  


Reply

Tags
cifs, fstab, mount



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 not mount cifs via fstab punt Fedora 5 05-31-2011 08:28 PM
cifs automount not happening -- and an incomplete workaround pwabrahams Linux - Networking 5 07-31-2009 04:39 PM
CentOS 5.2 Automount isos in fstab \other methods that work?automount iso Frankly3D Linux - General 6 07-13-2008 12:34 PM
Can't automount CIFS as normal user SlowCoder Linux - General 4 05-14-2007 03:43 PM
cifs mount in fstab help nitrohuffer2001 Linux - Software 1 04-22-2007 05:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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