LinuxQuestions.org
Help answer threads with 0 replies.
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 02-11-2023, 06:52 AM   #1
NvBgm
LQ Newbie
 
Registered: Feb 2023
Posts: 2

Rep: Reputation: 0
Question Error mount CIFS through fstab


Hi,
I would like to mount a map on my NAS to a raspberry PI4
For reboot i would use fstab to mount again.

In fstab i use this code:
Code:
//192.168.2.20/Backups/Backup_Rasp /mnt/backup cifs comment=systemd.automount,defaults,rw,username=xxxx,password=xxxx,uid=1000, gid=46 0 0
Afther command:
Code:
sudo mount -a
mount: /etc/fstab: parse error at line 4 -- ignored
When i manual set the mount:
Code:
sudo mount.cifs //192.168.2.20/Backups/Backup_Rasp /mnt/backup -o user=xxxx,pass=xxxx,sec=ntlmssp,uid=1000,gid=46
No error en df -h

Code:
Filesystem                          Size  Used Avail Use% Mounted on
/dev/root                            29G  1.4G   26G   6% /
devtmpfs                            1.8G     0  1.8G   0% /dev
tmpfs                               768M  1.2M  767M   1% /run
tmpfs                               384M     0  384M   0% /run/user/1000
//192.168.2.91/Backups/Backup_Rasp  1.8T  708G  1.1T  40% /mnt/backup
/dev/sda1                           255M   50M  206M  20% /boot
Why is there a error in the fstab ????
 
Old 02-11-2023, 06:55 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,876

Rep: Reputation: 7315Reputation: 7315Reputation: 7315Reputation: 7315Reputation: 7315Reputation: 7315Reputation: 7315Reputation: 7315Reputation: 7315Reputation: 7315Reputation: 7315
you have a space before gid, that is incorrect
 
Old 02-11-2023, 07:03 AM   #3
NvBgm
LQ Newbie
 
Registered: Feb 2023
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by pan64 View Post
you have a space before gid, that is incorrect
Of course and I did know don't use spaces and yet you overlook 1

Sorry and thanks...
 
Old 02-11-2023, 07:04 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,876

Rep: Reputation: 7315Reputation: 7315Reputation: 7315Reputation: 7315Reputation: 7315Reputation: 7315Reputation: 7315Reputation: 7315Reputation: 7315Reputation: 7315Reputation: 7315
no problem, just mark the thread solved. thanks.
 
  


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
mount error 111 = Connection refused Refer to the mount.cifs(8) manual page (e.g.man mount.cifs) vonyango Linux - Newbie 1 10-22-2021 03:56 AM
Cifs "mount error 13 = Permission denied" CIFS SUCKS humbletech99 Linux - Networking 45 04-06-2020 05:31 AM
manual mount cifs works but srcipt mount cifs has mount error (13): Permission denied CADIT Linux - Newbie 6 11-20-2009 02:48 PM

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

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