LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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, 10: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, 12:29 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,477

Rep: Reputation: 6218Reputation: 6218Reputation: 6218Reputation: 6218Reputation: 6218Reputation: 6218Reputation: 6218Reputation: 6218Reputation: 6218Reputation: 6218Reputation: 6218
You have uppercase UID in your fstab entry which is a syntax error.
 
1 members found this post helpful.
Old 08-31-2014, 12:45 PM   #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, 12:56 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,477

Rep: Reputation: 6218Reputation: 6218Reputation: 6218Reputation: 6218Reputation: 6218Reputation: 6218Reputation: 6218Reputation: 6218Reputation: 6218Reputation: 6218Reputation: 6218
Your welcome.
 
  


Reply

Tags
cifs, fstab, mount


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

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

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