LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 12-25-2012, 08:46 AM   #1
miros84
Member
 
Registered: Aug 2009
Location: Spain
Distribution: Debian stable, squeeze
Posts: 501

Rep: Reputation: 31
Mount with FSTAb error


I tried to mount a NAS to my FSTAB and when I type
Code:
mount -a
it tells me Line 12 has un error. And line 12 is the line I just added

Code:
//mirosred2/volume_1/COPSEG	/mnt/COPSEG	cifs	user=admin	password=djfuri5675 user,auto,rw    0    0
Is there something wrong with this line?

I just installed samba and cifs from synaptic.
 
Old 12-25-2012, 09:11 AM   #2
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,209

Rep: Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845
At a minimum you have syntax errors. After the 'cifs' ( fstype ) starting at user= should be a comma separated list. You have user twice, should only be once.

Other problems, not sure.

Here is a link to a how to, with several examples.

-->http://opensuse.swerdna.org/susesambacifs.html

Hope this helps.
 
Old 12-25-2012, 09:45 AM   #3
gdejonge
Member
 
Registered: Aug 2010
Location: Netherlands
Distribution: Kubuntu, Debian, Suse, Slackware
Posts: 317

Rep: Reputation: 73
The user and password are part of the mount-options, which is a comma separated list. You're missing some comma's.

A few notes aside.
Next time also show us the error message that you got. It makes it easier to diagnose the problem.
I hope you didn't show us the real username and password for the nas box. That seems to be a very bad habit, I've been told.
Normally you would only name the host-machine and the share name as the mount source. Like this
Code:
//sirius/samba   /data/samba   cifs   cred=/etc/cred.gdj   0   0
As you see I use a credentials file to store the user/password information and which is only accessible by root.
 
Old 12-25-2012, 11:42 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,592

Rep: Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880
In addition to the previous comments
Quote:
user=admin
Should be
Quote:
username=admin
 
Old 12-25-2012, 11:46 AM   #5
miros84
Member
 
Registered: Aug 2009
Location: Spain
Distribution: Debian stable, squeeze
Posts: 501

Original Poster
Rep: Reputation: 31
Well, I changed password and username.
Problem is the comma separatted list as you told me. I fix it and it works.
Thank you very much.

What credential file? Give me an example of that file please.

---------- Post added 12-25-12 at 12:46 PM ----------

Well, I changed password and username.
Problem is the comma separatted list as you told me. I fix it and it works.
Thank you very much.

What credential file? Give me an example of that file please.
 
Old 12-25-2012, 03:53 PM   #6
gdejonge
Member
 
Registered: Aug 2010
Location: Netherlands
Distribution: Kubuntu, Debian, Suse, Slackware
Posts: 317

Rep: Reputation: 73
It's just text file with the following information:
Code:
username=name
password=password
domain=domain
You can also look at
Code:
man mount.cifs
For the specific mount options for cifs.
 
  


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
Redhat Linux 4.8 error -mount: mount point /oracle does not exist for new /etc/fstab entries bellnarm Linux - Server 1 11-23-2011 05:09 AM
Why unable to mount my nas in fstab get "mount error(5) Input/output error fi5ban Linux - Networking 0 04-01-2009 10:42 AM
Need Help, Error in /etc/fstab and mount. system is read-only. ord Red Hat 9 10-09-2007 03:54 PM

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

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