LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 11-01-2019, 03:04 PM   #1
Basssment
LQ Newbie
 
Registered: Nov 2019
Posts: 2

Rep: Reputation: Disabled
mount parse error


Hello all,

I'm trying to mount a folder on my Nas to my Rpi 3+

I created a folder /mnt/Backup
I put the folowing line in /etc/fstab

Code:
//Nas IP Adress/Backup/Rpi /mnt/backup cifs comment=systemd.automount,defaults,rw,username=User,password=Password,uid=1000, gid=46 0 0
if I try to mount with $ sudo mount -a
I get an error:
mount: /etc/fstab: parse error at line 10 -- ignored

What have I done wrong?
 
Old 11-01-2019, 05:01 PM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
There is a space before gid=46. Remove it and everything should be fine.
 
Old 11-01-2019, 05:03 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,717

Rep: Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899
In addition,

Quote:
comment=systemd.automount
There is no comment option as far as I know... If you want to setup the share to mount on demand the correct syntax is.

Code:
//Nas IP Adress/Backup/Rpi /mnt/backup cifs noauto,x-systemd.automount,_netdev,defaults,username=User,password=Password,uid=1000,gid=46 0 0
 
Old 11-02-2019, 09:08 AM   #4
Basssment
LQ Newbie
 
Registered: Nov 2019
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by berndbausch View Post
There is a space before gid=46. Remove it and everything should be fine.
Thank you This did the trick,
overlooked it completely!
 
  


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
Parse error: parse error, unexpected '/' - can anyone see the error in this code? v@ny@ Programming 8 04-03-2010 04:07 PM
What's the meaning of "PHP Parse error: parse error, unexpected $ in..." frandalla Programming 23 03-04-2009 12:34 PM
PHP Error Parse error: parse error, unexpected $ in /home/content/S/k/i/SkinCare4U/h CowanServices Programming 2 12-09-2008 08:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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