Содержание
- Arch Linux
- #1 2019-08-30 17:06:25
- [SOLVED] mount.cifs «mount error(2): No such file or directory»
- #2 2019-08-30 18:15:40
- Re: [SOLVED] mount.cifs «mount error(2): No such file or directory»
- #3 2019-08-30 22:17:10
- Re: [SOLVED] mount.cifs «mount error(2): No such file or directory»
- Arch Linux
- #1 2019-06-13 21:03:42
- [SOLVED]“mount error(2): No such file or directory”
- #2 2019-06-29 07:43:10
- Re: [SOLVED]“mount error(2): No such file or directory”
- #3 2019-06-29 07:47:27
- Re: [SOLVED]“mount error(2): No such file or directory”
- #4 2019-06-29 08:14:38
- Re: [SOLVED]“mount error(2): No such file or directory”
- #5 2019-06-29 09:14:15
- Re: [SOLVED]“mount error(2): No such file or directory”
- Linux Mint Forums
- fstab network share error 2?
- fstab network share error 2?
- Re: fstab network share error 2?
- Linux Mint Forums
- Linux Mint 20 NAS Drive Mounting problems. [Solved]
- Linux Mint 20 NAS Drive Mounting problems. [Solved]
- Re: Linux Mint 20 NAS Drive Mounting problems.
- Re: Linux Mint 20 NAS Drive Mounting problems.
- Re: Linux Mint 20 NAS Drive Mounting problems.
Arch Linux
You are not logged in.
#1 2019-08-30 17:06:25
[SOLVED] mount.cifs «mount error(2): No such file or directory»
I’m trying to connect to a shared drive at work (primarily a windows facility). I have no previous experience with samba, so I may be missing something obvious, but the error message I’m getting is not very informative:
(note «redacted.com» is in place of the actual domain, all else is actual command and output)
The mount point exists:
And my password is correct as I get results from smbclient with the password (first output below), but not if I intentionally use a worng password (second output):
So I can list the shares, but mounting fails with the message «No such file or directory». Adding the verbose flag doesn’t seem to provide much more:
Are there other diagnostics I could collect?
Last edited by Trilby (2019-09-03 17:45:14)
«UNIX is simple and coherent. » — Dennis Ritchie, «GNU’s Not UNIX» — Richard Stallman
#2 2019-08-30 18:15:40
Re: [SOLVED] mount.cifs «mount error(2): No such file or directory»
yield?
Did you try it’s IP address instead of the NetBIOS host name?
Edit: Did you also try to use an explicit version?
Last edited by schard (2019-08-30 18:19:16)
Солідарність з Україною
#3 2019-08-30 22:17:10
Re: [SOLVED] mount.cifs «mount error(2): No such file or directory»
Thanks for that link, I’m not sure how I missed it. I’ll have to try some of that tomorrow when I’m back on the network. I never tried `ping FILESERVER` directly, but I was able to ping the ip address that is listed in the verbose output for that server.
(edit: I didn’t bring my computer in today, so I’ll have to check back on Tuesday)
EDIT: pinging works:
Following the link above, though, I found it was the «vers» option, but in my case (discovered through trial and error) I needed to add «vers=1.0» to the mount options. Thanks!
Last edited by Trilby (2019-09-03 17:45:01)
«UNIX is simple and coherent. » — Dennis Ritchie, «GNU’s Not UNIX» — Richard Stallman
Источник
Arch Linux
You are not logged in.
#1 2019-06-13 21:03:42
[SOLVED]“mount error(2): No such file or directory”
I am attempting to mount my NAS on my Arch machine and receiving the below error:
Not seeing anything in man which helps.
Below is command I am using
I can ping the IP of the NAS. The below command:
returns the below:
Right clicking the directory on the NAS displays the path as being:
Any ideas on what to do next to troubleshoot?
Last edited by ArchArching (2019-07-06 17:37:27)
#2 2019-06-29 07:43:10
Re: [SOLVED]“mount error(2): No such file or directory”
OK I spotted a syntax error, I get little further on using the below:
On entering the NAS password I see the below:
#3 2019-06-29 07:47:27
Re: [SOLVED]“mount error(2): No such file or directory”
Paste the output of `uname -a`. If the kernel version is different to `pacman -Q linux` you have either not rebooted after an upgrade, or your /boot was not mounted for the kernel upgrade and you will need to fix that.
Registered Linux User #482438
Online
#4 2019-06-29 08:14:38
Re: [SOLVED]“mount error(2): No such file or directory”
Paste the output of `uname -a`. If the kernel version is different to `pacman -Q linux` you have either not rebooted after an upgrade, or your /boot was not mounted for the kernel upgrade
Output of uname-a is certainly different `pacman -Q linux`, so different I am left wondering if I am understanding you correctly?
and you will need to fix that.
How do I fix it? I would be surprised if my boot partition was not mounted.
#5 2019-06-29 09:14:15
Re: [SOLVED]“mount error(2): No such file or directory”
Paste the output of `uname -a`. If the kernel version is different to `pacman -Q linux` you have either not rebooted after an upgrade, or your /boot was not mounted for the kernel upgrade and you will need to fix that.
Ah, I see what you mean now. Both commands return linux 5.1.15.arch1-1.
pacman -Q linux = linux 5.1.15.arch1-1
uname -a = Linux arch 5.1.15-arch1-1-ARCH #1 SMP PREEMPT Tue Jun 25 04:49:39 UTC 2019 x86_64 GNU/Linux
Last edited by ArchArching (2019-06-29 09:15:22)
Источник
Linux Mint Forums
Welcome to the Linux Mint forums!
Post by nateman66c » Fri Dec 10, 2021 1:54 pm
Hey guys,
Having a problem mounting my network share from my Buffalo Terastation. It’s set to smb2 and I can get to it at smb://192.168.1.100 no problem. So great, lets mount it permanently in fstab. No luck, keep getting «error 2 (No such file or directory) opening credential file /home/nateman/Documents/cred.txt»
Here’s my fstab line: «//192.168.1.100/Music/ /mnt/Music cifs uid=0,credentials=/home/nateman/Documents/cred.txt,iocharset=utf8,vers=2.0,noperm,nofail 0 0»
I’ve created /mnt/Music and I’ve chown and chgrp on «/mnt/Music» it’s in nateman now
I’ve created cred.txt in the /home/nateman/Documents with username and password as it should be.
What am I missing? Thanks everyone!
Post by altair4 » Fri Dec 10, 2021 3:24 pm
That is a fairly explicit error message for cifs. My first instinct is that the cred.txt file is in an encrypted directory.
I would do a manual mount instead stating the credentals just to make sure you can connect before making multiple changes to fstab — something like this:
I changed uid=0 to uid=nateman . By default a cifs mount will make owner = root ( uid=0 ) with write permissions only to root. In order for you to write you need to make youself owner of the mount.
Doing a chown to yourself of the mount point is irrelevant. A mount always replaces the permissions of the mount point with it’s own.
Also by default cifs negotiates with the server ( NAS ) the right smb version to use between vers=2.1 and vers=3.x without you having to specify. Not familiar with the Buffalo device but are you sure it is set to SMB2 and not SMB2.1?
Источник
Linux Mint Forums
Welcome to the Linux Mint forums!
Linux Mint 20 NAS Drive Mounting problems. [Solved]
Linux Mint 20 NAS Drive Mounting problems. [Solved]
Post by uk_martin » Thu Aug 13, 2020 8:46 am
Hi. Please excuse a complete «noob» asking a question that’s probably been asked a million times in various guises, but to cut a long story short, I can’t seem to get the right syntax to establish a connection between my Synology NAS’s /Music folder and the /home/martin/Music folder on my Linux Mint 20 machine.
Different web sites I’ve looked at for this have the syntax in different orders, but basically what I went for was this:
All I got from this was a «Mount error (95): Operation not supported» error message. I’ve had a look at the Mount error (95) issue and I have to confess to it confusing the hell out of me.
Is there anyone who can suggest a string of text that I can copy and paste into the terminal, that with the addition of some fairy dust will connect the music that I have sitting on my NAS to the Music folder on my Linux Mint machine please? Sorry if this complicates things but the next stage will also be to ensure that this connection is retained at each boot up. Can that be ensured at this stage, whilst I am at it please?
Thanks in advance for any help offered.
Re: Linux Mint 20 NAS Drive Mounting problems.
Post by altair4 » Thu Aug 13, 2020 9:12 am
Re: Linux Mint 20 NAS Drive Mounting problems.
Post by AndyMH » Thu Aug 13, 2020 11:43 am
credentials is a two line text file (put it wherever you want), first line username=xxx, 2nd password=yyy, or use username and password direct in the fstab line as outlined by altair4. uid=1000 is the same as uid=martin (assuming martin is the first user on your PC).
This mounts the home folder for username=xxx (andy) on the NAS at /media/synology, you can mount locally in /home/you/music or anywhere you want.
On hols at the moment so can’t connect to my NAS, thus hampered by what I can say/show but other thoughts:
- what version of mint and what have you set in the synology — could be a mismatch in smb1/2/3?
- does the user you are logging onto the synology as have read/write access to the music folder on the NAS?
- does the folder /home/martin/Music exist?
Try and get the syntax correct with mount first, then we can guide you through editing fstab to make it permanent.
EDIT — I’d forgotten you could «quickconnect» in remotely. It’s not 192.168.0.2/music or 192.168.0.2/homes/music, it might be 192.168.0.2/Volume1/music or 192.168.0.2/volume1/music. Under control panel > file services > smb make sure «enable smb» is checked and under the advanced button that min and max smb protocol are set to 1 and 3.
Re: Linux Mint 20 NAS Drive Mounting problems.
Post by uk_martin » Sun Dec 06, 2020 7:57 am
Thanks for the replies. Sorry for the delay in replying, the issues I’ve been having has meant that I’ve left the Linux Mint PC on the back burner whilst other things have taken priority.
So basically to answer your questions:
I’m using Linux Mint 20, Cinnamon version 4.6.7, Kernel version 5.8.0-31 generic
If I navigate to the NAS via «Network» then yes I can read, write and edit my files.
The /home/martin/Music folder does exist — it’s the folder that Linux creates as part of the original setup. It’s the one that’s in the quick access menu, i.e. the default one that applications look for their music in, which is why I want my music from the NAS drive to appear there.
Turning to the attempts to link to the NAS, yours is a good point about the addition of «volume1» to the path. I tried that, but sadly jut got a «mount: bad usage» error with a suggestion of going to «mount—help».
So, basically, I’m no further forward, but I have a little time on my hands now to try again. Just to repeat the end goal again. It’s to access all the MP3 files on my NAs drive via the Music folder in the Linux Mint «My Computer» quick access listings.
Thanks again in advance for any help in achieving this goal.
Источник
День добрый.
Система AltLinux workstation 8.2
Шара в домене под windows
Linux входит в домен
При монтировании вышла ошибка:
[root@host-23 ~]# mount -a
mount: /mnt/consultant: unknown filesystem type ‘cifs_netdev,credentials=/home/user/.smbcredentials,iocharset=utf8,vers=2.0,file_mode=0777,dir_mode=0777’.
Подскажите как исправить? (Желательно по-шагово с командами)
И немного не по теме: почему на расшареные windows-ресурсы то заходит, то нет?
Записан
День добрый.
Система AltLinux workstation 8.2
Шара в домене под windows
Linux входит в домен
При монтировании вышла ошибка:
[root@host-23 ~]# mount -a
mount: /mnt/consultant: unknown filesystem type ‘cifs_netdev,credentials=/home/user/.smbcredentials,iocharset=utf8,vers=2.0,file_mode=0777,dir_mode=0777’.Подскажите как исправить? (Желательно по-шагово с командами)
И немного не по теме: почему на расшареные windows-ресурсы то заходит, то нет?
Проверьте правильность указания параметров: между cifs и _netdev должен быть пробел.
По вопросу открытия ресурсов Windows отлаживайте с помощью консольного smblient или обратитесь в техническую поддержку Microsoft.
Записан
Андрей Черепанов (cas@)
Проверьте правильность указания параметров: между cifs и _netdev должен быть пробел.
исправил и вышла ошибка:
[root@host-23 ~]# mount -a
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
Записан
Естественно. Читайте документацию по mount.
Записан
Андрей Черепанов (cas@)
[user@comp-linux ~]$ mcedit /home/user/.smbcredentials
Прописываю в файле:
username=%логин%
password=%пароль%
domain=домен
[user@comp-linux ~]$ chmod 600 /home/user/.smbcredentials
[root@comp-linux ~]# mcedit /etc/fstab
В конце файла добавляю строку:
//адрес_сервера/user /mnt/consultant cifs _netdev,credentials=/home/user/.smbcredentials, iocharset=utf8,vers=2.0,file_mode=0777,dir_mode=0777 0 0
[root@comp-linux ~]# mkdir /mnt/consultant
[root@comp-linux ~]# mount -a
mount: /etc/fstab: parse error: ignore entry at line 8.
error 2 (No such file or directory) opening credential file /home/user/.credentials
ALTLinux СПТ 7.0.5
Что делаю не так? Всё по инструкции.
« Последнее редактирование: 25.12.2018 14:20:39 от Romariki »
Записан
[root@comp-linux ~]# mount -a
mount: /etc/fstab: parse error: ignore entry at line 8.
error 2 (No such file or directory) opening credential file /home/user/.credentials
Ищите синтаксические ошибки, пропущенные буквы и т.п. man mount.cifs и man fstab обязаны помочь.
Записан
Вот как так?
mcedit /home/user/.smbcredentials
error 2 (No such file or directory) opening credential file /home/user/.credentials
Записан
.smbcredentials, iocharset=utf8
Тут ненужный пробел между параметрами.
Записан
Спасибо. Пробелы исправил. Теперь выходит вот такое сообщение:
[root@comp-linux ~]# mount -a
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
Записан
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
Теперь лог на клиенте и не сервере. Кому-то что-то нельзя.
Записан
Теперь лог на клиенте и не сервере. Кому-то что-то нельзя.
Да, да, спасибо. Я понял. Только не пойму почему не входит в домен.
« Последнее редактирование: 25.12.2018 17:12:10 от Romariki »
Записан
Только не пойму почему не входит в домен.
Должно быть написано в логе. Либо клиента, либо сервера, либо и там, и там.
Записан
I’m trying to connect to a shared drive at work (primarily a windows facility). I have no previous experience with samba, so I may be missing something obvious, but the error message I’m getting is not very informative:
$ sudo mount -t cifs //FILESERVER/Public /mnt/work -o username=jessem,domain=redacted.com,iocharset=utf8
[sudo] password for jmcclure:
Password for jessem@//FILESERVER/Public:
mount error(2): No such file or directory
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
(note «redacted.com» is in place of the actual domain, all else is actual command and output)
The mount point exists:
$ stat /mnt/work/
File: /mnt/work/
Size: 4096 Blocks: 8 IO Block: 4096 directory
Device: 802h/2050d Inode: 1585017 Links: 2
Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2019-08-30 11:54:12.000000000
Modify: 2019-08-30 11:54:12.000000000
Change: 2019-08-30 11:54:12.000000000
And my password is correct as I get results from smbclient with the password (first output below), but not if I intentionally use a worng password (second output):
$ smbclient -L FILESERVER -U jessem -W redacted.com
Unable to initialize messaging context
Enter REDACTED.COMjessem's password:
Sharename Type Comment
--------- ---- -------
Academy Disk
Accounting Disk
ADMIN$ Disk Remote Admin
C$ Disk Default share
IPC$ IPC Remote IPC
M4 Disk
Public Disk
Quickbooks Disk Shared this folder to access QuickBooks files OverNetwork
Scans Disk
Reconnecting with SMB1 for workgroup listing.
Server Comment
--------- -------
Workgroup Master
--------- -------
$ smbclient -L FILESERVER -U jessem -W redacted.com
Unable to initialize messaging context
Enter REDACTED.COMjessem's password:
session setup failed: NT_STATUS_LOGON_FAILURE
So I can list the shares, but mounting fails with the message «No such file or directory». Adding the verbose flag doesn’t seem to provide much more:
$ sudo mount -t cifs //FILESERVER/Public /mnt/work -o username=jessem,domain=redacted.com,iocharset=utf8 --verbose
Password for jessem@//FILESERVER/Public:
mount.cifs kernel mount options: ip=192.168.10.97,unc=\FILESERVERPublic,iocharset=utf8,user=jessem,domain=redacted.com,pass=********
mount error(2): No such file or directory
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
Are there other diagnostics I could collect?
Last edited by Trilby (2019-09-03 17:45:14)
«UNIX is simple and coherent…» — Dennis Ritchie, «GNU’s Not UNIX» — Richard Stallman
Forum rules
Before you post please read how to get help. Topics in this forum are automatically closed 6 months after creation.
-
nateman66c
- Level 1
- Posts: 4
- Joined: Fri Dec 10, 2021 1:37 pm
fstab network share error 2?
Hey guys,
Having a problem mounting my network share from my Buffalo Terastation. It’s set to smb2 and I can get to it at smb://192.168.1.100 no problem. So great, lets mount it permanently in fstab. No luck, keep getting «error 2 (No such file or directory) opening credential file /home/nateman/Documents/cred.txt»
Here’s my fstab line: «//192.168.1.100/Music/ /mnt/Music cifs uid=0,credentials=/home/nateman/Documents/cred.txt,iocharset=utf8,vers=2.0,noperm,nofail 0 0»
I’ve created /mnt/Music and I’ve chown and chgrp on «/mnt/Music» it’s in nateman now
I’ve created cred.txt in the /home/nateman/Documents with username and password as it should be.
What am I missing? Thanks everyone!
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
-
altair4
- Level 20
- Posts: 11021
- Joined: Tue Feb 03, 2009 10:27 am
Re: fstab network share error 2?
Post
by altair4 » Fri Dec 10, 2021 3:24 pm
That is a fairly explicit error message for cifs. My first instinct is that the cred.txt file is in an encrypted directory.
I would do a manual mount instead stating the credentals just to make sure you can connect before making multiple changes to fstab — something like this:
Code: Select all
sudo mount -t cifs //192.168.1.100/Music/ /mnt/Music -o uid=nateman,username=xxx,password=yyy,iocharset=utf8,vers=2.0,noperm
Notes:
I changed uid=0 to uid=nateman. By default a cifs mount will make owner = root ( uid=0 ) with write permissions only to root. In order for you to write you need to make youself owner of the mount.
Doing a chown to yourself of the mount point is irrelevant. A mount always replaces the permissions of the mount point with it’s own.
Also by default cifs negotiates with the server ( NAS ) the right smb version to use between vers=2.1 and vers=3.x without you having to specify. Not familiar with the Buffalo device but are you sure it is set to SMB2 and not SMB2.1?
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
-
nateman66c
- Level 1
- Posts: 4
- Joined: Fri Dec 10, 2021 1:37 pm
Re: fstab network share error 2?
Post
by nateman66c » Fri Dec 10, 2021 4:24 pm
That works!
I’ve read that you shouldn’t use your passwords in the actual script. I think it would be fine in this instance, i’m the only one that will be using this machine. It’s just a plex server that I would like to connect media folders to from the NAS. Thoughts?
Any recommendations on what to do for the fstab version of this?
Thanks!
-
altair4
- Level 20
- Posts: 11021
- Joined: Tue Feb 03, 2009 10:27 am
Re: fstab network share error 2?
Post
by altair4 » Fri Dec 10, 2021 4:40 pm
Since the manual mount works there is something about the cred file location. Not sure what that would be but I would put the cred file someplace else like /etc/samba/cred.txt.
Then to make sure it works in the new location do the manual mount again with the credentials setting:
Unmount the share:
Then do a mount mount again to see if the new location works:
Code: Select all
sudo mount -t cifs //192.168.1.100/Music/ /mnt/Music -o uid=nateman,credentials=/etc/samba/cred.txt,iocharset=utf8,vers=2.0,noperm
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
-
nateman66c
- Level 1
- Posts: 4
- Joined: Fri Dec 10, 2021 1:37 pm
Re: fstab network share error 2?
Post
by nateman66c » Fri Dec 10, 2021 5:03 pm
That works as well. I had to remove the .txt and it worked in the etc/samba dir.
So at this point i’m doing this on my laptop for proof of concept before I move these changes to the server. That being said, I should include nofail so that my laptop boots if I’m away from my network? Right?
-
altair4
- Level 20
- Posts: 11021
- Joined: Tue Feb 03, 2009 10:27 am
Re: fstab network share error 2?
Post
by altair4 » Fri Dec 10, 2021 5:32 pm
Yes, the nofail option makes sense.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
Topic: [SOLVED] mount error(2): No such file or directory — Samba Mount (Read 31998 times)
Hi all,
I riceve this error when i try to mount a share folder on Zentyal 3.2:
mount.cifs kernel mount options: ip=10.139.0.128,unc=\home.gionkopublic,credentials=/root/.servercred,sec=krb5,ver=1,user='gionko',domain='HOME-GIONKO',pass=********
mount error(2): No such file or directory
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
the command line is:
sudo mount.cifs //home.gionko/public /mnt/public -o credentials=/root/.servercred,sec=krb5 --verbose
I have a Zentyal 3.2:
uname -a
Linux gateway 3.8.0-32-generic #47~precise1-Ubuntu SMP Wed Oct 2 16:19:35 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
samba --version
Version 4.1.0rc4
mount.cifs -V
mount.cifs version: 5.1
obviously the directory /mnt/public exist and i can access to //home.gionko/public from my Windows Workstation with user «gionko», without problem. Any idea?
« Last Edit: October 28, 2013, 08:55:03 pm by gionko »
Logged
LoL! I have a solution.
mount.cifs + krb (Kerberos) require «keyutils» package for work… It’s required for kerberos-authenticated mounts for mount.cifs, and it is not installed by default!
First step:
sudo apt-get install keyutils
At this time if you try to execute sudo mount.cifs //home.gionko/public /mnt/public -o credentials=/root/.servercred,sec=krb5 —verbose, you recive:
mount.cifs kernel mount options: ip=10.139.0.128,unc=\home.gionkopublic,credentials=/root/.servercred,sec=krb5,ver=1,user='gionko',domain='HOME-GIONKO',pass=********
mount error(126): Required key not available
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
… and this is amazing: smbclient works well, but CIFS mount won’t work if the netbios name is different from host name, in my case, i must change «//home.gionko/public» in to «//gateway/public«
At the end… all works well
Logged







