Mint 19 update broke cifs mount [SOLVED]

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
dudesplace
Level 2
Level 2
Posts: 57
Joined: Sat Dec 09, 2017 2:15 pm

Mint 19 update broke cifs mount [SOLVED]

Post by dudesplace »

I ended up installing gigolo and got it working as far as booting and auto mounting NAS.
Only wish I could figure out how to make Conky code see it properly now.
I had to # out the lines I used to use for the NAS.

I have two NAS drives added to fstab and has worked fine until today when I opted to an update.
I don't recall what the update was but it has seemed to break my mount ability of the two NAS drives.
I also noticed that conky is showing those two as well as primary drive shows the same size, which they are not.
The NAS drive in fstab looks like this:
//IP#/Download /media/NAS1 cifs username=myadmin,password=mypass,nounix,auto,user,uid=1000 0 0
They also show up on the Desktop normally.

I did a:mkdir /media/NAS1
When I click on drive in FM I get "Mount error(22): Invalid argument
Refer to the mount.cifs(8) page man mount.cifs
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.

Mint21.3-PowerEdge-Xeon-2.4GHz-16GB-nVidia2GB-VBox,Kali,Studio,Arch,Win11
Mint21.3-AMD2800-2.8GHz-2GB-nVidia 2Gb
Garuda-Lenovo-Intel2.1Ghz-8GB
OMV-Intel-i3-8100-@3.60GHz-32Gb
OMV-Zeon-2@1.6GHz-94GB
Garuda-Asus-Intel-2.7GHz-16GB
altair4
Level 20
Level 20
Posts: 11458
Joined: Tue Feb 03, 2009 10:27 am

Re: Mint 19 update broke cifs mount

Post by altair4 »

If I were king of the universe I would prohibit error messages like "invalid augment" unless it also specifies which argument it finds invalid.

It could be anything from the wrong ip address specified to the wrong smb dialect used. Since cifs is Linux kernel based you might look at the kernel logs to see if it provides more information: /var/log/kern.log
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
dudesplace
Level 2
Level 2
Posts: 57
Joined: Sat Dec 09, 2017 2:15 pm

Re: Mint 19 update broke cifs mount

Post by dudesplace »

OK searching through /var/log/kern.log I find the following, I assume the last part of the line is the key.
https://paste.ubuntu.com/p/3SFzZzxpwd/

I assume I need to do this "specify vers=1.0 on mount" in fstab or change the way cifs is called in the syntax.
Just not sure how to do that as I am somewhat of a newb still.

Mint21.3-PowerEdge-Xeon-2.4GHz-16GB-nVidia2GB-VBox,Kali,Studio,Arch,Win11
Mint21.3-AMD2800-2.8GHz-2GB-nVidia 2Gb
Garuda-Lenovo-Intel2.1Ghz-8GB
OMV-Intel-i3-8100-@3.60GHz-32Gb
OMV-Zeon-2@1.6GHz-94GB
Garuda-Asus-Intel-2.7GHz-16GB
altair4
Level 20
Level 20
Posts: 11458
Joined: Tue Feb 03, 2009 10:27 am

Re: Mint 19 update broke cifs mount

Post by altair4 »

That's curious unless you also updated your kernel in the update you did last. You should always have had this issue.

Anyway, change this:
//IP#/Download /media/NAS1 cifs username=myadmin,password=mypass,nounix,auto,user,uid=1000 0 0
To this:
//IP#/Download /media/NAS1 cifs username=myadmin,password=mypass,nounix,auto,user,uid=1000,vers=1.0 0 0
You may need another option depending on how the NAS is set up and that is the security level so the line would be:
//IP#/Download /media/NAS1 cifs username=myadmin,password=mypass,nounix,auto,user,uid=1000,vers=1.0,sec=ntlm 0 0
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
dudesplace
Level 2
Level 2
Posts: 57
Joined: Sat Dec 09, 2017 2:15 pm

Re: Mint 19 update broke cifs mount

Post by dudesplace »

First off it has been working fine for months now.
Ok, your first suggestion did not work, NAS did not even show up in file manager anymore,
Second option broke boot, stops at blank screen with Cinnamon x falling back to default no desktop and just dead. Won't do anything at this point.
I did also try with a comma after the the 0 in version which I figured it would need, after trying yours first uid=1000,vers=1.0, 0 0. This one I could still see them in FM but got same error when trying to mount.
This one is one that broke boot uid=1000,vers=1.0,sec=ntlm 0 0
now I have to figure out how to get to terminal from boot so I can edit fstab back.
And what ever it is it was in the last day or two's updates, has broke my other Mint box cifs mount as well, also running Mint 19.1 Tessa Linux 4.15.0-45-generic on x86_64 #48-Ubuntu SMP Tue Jan 29 16:28:13 UTC 2019

Mint21.3-PowerEdge-Xeon-2.4GHz-16GB-nVidia2GB-VBox,Kali,Studio,Arch,Win11
Mint21.3-AMD2800-2.8GHz-2GB-nVidia 2Gb
Garuda-Lenovo-Intel2.1Ghz-8GB
OMV-Intel-i3-8100-@3.60GHz-32Gb
OMV-Zeon-2@1.6GHz-94GB
Garuda-Asus-Intel-2.7GHz-16GB
altair4
Level 20
Level 20
Posts: 11458
Joined: Tue Feb 03, 2009 10:27 am

Re: Mint 19 update broke cifs mount

Post by altair4 »

None of the changes you made to fstab would have that affect. The worst that might happen is a very long boot process if it couldn't find the NAS.

There is something else wrong here.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
dudesplace
Level 2
Level 2
Posts: 57
Joined: Sat Dec 09, 2017 2:15 pm

Re: Mint 19 update broke cifs mount

Post by dudesplace »

Ok here is shot of Mint updates from highlited line up is where one or more has broke the cifs mount I beleive.
Pretty sure it was last day or two because I was working on Conky additions and almost certain drives were showing up properly in it yesterday or day before in both machines.
When I get the broke booting box up, I will post the updates from there as well. It might help narrow it down.

https://imgur.com/a/NS3jzbu

Mint21.3-PowerEdge-Xeon-2.4GHz-16GB-nVidia2GB-VBox,Kali,Studio,Arch,Win11
Mint21.3-AMD2800-2.8GHz-2GB-nVidia 2Gb
Garuda-Lenovo-Intel2.1Ghz-8GB
OMV-Intel-i3-8100-@3.60GHz-32Gb
OMV-Zeon-2@1.6GHz-94GB
Garuda-Asus-Intel-2.7GHz-16GB
dudesplace
Level 2
Level 2
Posts: 57
Joined: Sat Dec 09, 2017 2:15 pm

Re: Mint 19 update broke cifs mount

Post by dudesplace »

Well after all attempts to get it up, re-install is in progress, well see what that will bring. I think I will try all updates and upgrades first and then try the mounts again and see what happens.

Mint21.3-PowerEdge-Xeon-2.4GHz-16GB-nVidia2GB-VBox,Kali,Studio,Arch,Win11
Mint21.3-AMD2800-2.8GHz-2GB-nVidia 2Gb
Garuda-Lenovo-Intel2.1Ghz-8GB
OMV-Intel-i3-8100-@3.60GHz-32Gb
OMV-Zeon-2@1.6GHz-94GB
Garuda-Asus-Intel-2.7GHz-16GB
dudesplace
Level 2
Level 2
Posts: 57
Joined: Sat Dec 09, 2017 2:15 pm

Re: Mint 19 update broke cifs mount

Post by dudesplace »

Still no solution but some headway.
Where I am now!
after a reboot, if I click link in File Manger for either NAS drive I get the can' mount drive error, Operation only for root.
If I terminal sudo mount -a, both drives show up on the desktop as they did before, I can read/write and everything is fine.
At this this is the line in /etc/fstab:
//my ip/Download /media/NAS1 cifs username=myun,password=mypw,iocharset=utf8,file_mode=0777,dir_mode=0777

commented out is the following line, which worked fine just days ago, NAS's would auto mount and show on Desktop as well as FM:

//myip/Download /media/NAS1 cifs username=myun,password=mypw,nounix,auto,user,uid=1000 0 0

So how can I fix fstab to auto mount, show on desktop as before.
As stated previously these did not work, actually crashed it and had to reinstalled Mint 19
//IP#/Download /media/NAS1 cifs username=myadmin,password=mypass,nounix,auto,user,uid=1000,vers=1.0 0 0

//IP#/Download /media/NAS1 cifs username=myadmin,password=mypass,nounix,auto,user,uid=1000,vers=1.0,sec=ntlm 0 0

Mint21.3-PowerEdge-Xeon-2.4GHz-16GB-nVidia2GB-VBox,Kali,Studio,Arch,Win11
Mint21.3-AMD2800-2.8GHz-2GB-nVidia 2Gb
Garuda-Lenovo-Intel2.1Ghz-8GB
OMV-Intel-i3-8100-@3.60GHz-32Gb
OMV-Zeon-2@1.6GHz-94GB
Garuda-Asus-Intel-2.7GHz-16GB
altair4
Level 20
Level 20
Posts: 11458
Joined: Tue Feb 03, 2009 10:27 am

Re: Mint 19 update broke cifs mount

Post by altair4 »

Does it have to mount at /media/NAS1?

If you do a gio mount like the file manager does is it a possible solution:

Code: Select all

gio mount smb://myip/Download
You should get a "download on myip" icon on the desktop.

If that works for you then instead of having anything in fstab which would avoid this peculiar Mint featurebug you could use Gigolo to automount this share instead.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
dudesplace
Level 2
Level 2
Posts: 57
Joined: Sat Dec 09, 2017 2:15 pm

Re: Mint 19 update broke cifs mount

Post by dudesplace »

Ok I get:
Password required for share download on ixxx.xxx.xxx.xxx
what shows in next line is
It shows I enter and or tried
User: [myname] myusername or NAS's Admin
Domain: [WORKGROUP] My NAS's Domain or WORKGROUP
Password: mypassword for both NAS and Linux

ok finally got it to open with user as NAS's adminname DOMAIN and password.
Now I can see it in FM as smb://192.168.xxx>xxx/Download and open read and write.
Not familiar with Gigolo, how do i open and use it?

Mint21.3-PowerEdge-Xeon-2.4GHz-16GB-nVidia2GB-VBox,Kali,Studio,Arch,Win11
Mint21.3-AMD2800-2.8GHz-2GB-nVidia 2Gb
Garuda-Lenovo-Intel2.1Ghz-8GB
OMV-Intel-i3-8100-@3.60GHz-32Gb
OMV-Zeon-2@1.6GHz-94GB
Garuda-Asus-Intel-2.7GHz-16GB
altair4
Level 20
Level 20
Posts: 11458
Joined: Tue Feb 03, 2009 10:27 am

Re: Mint 19 update broke cifs mount

Post by altair4 »

I actually wrote a HowTo on this about a hundred years ago: Using Gigolo to Mount Remote Samba Shares
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
dudesplace
Level 2
Level 2
Posts: 57
Joined: Sat Dec 09, 2017 2:15 pm

Re: Mint 19 update broke cifs mount

Post by dudesplace »

altair4 wrote: Tue Feb 12, 2019 4:44 pm Does it have to mount at /media/NAS1?

If you do a gio mount like the file manager does is it a possible solution:

Code: Select all

gio mount smb://myip/Download
You should get a "download on myip" icon on the desktop.

If that works for you then instead of having anything in fstab which would avoid this peculiar Mint featurebug you could use Gigolo to automount this share instead.
Ok I got gigolo figured out and NAS is auto mounting with it, well after I made an auto start file and gigolo of coarse asks for password every boot up.
My other question now is how to get Conky to show the NAS drive now, it worked with this line in conkyrc:
\${color orange}NAS1: \${color}\${fs_size /media/NAS1} \${fs_used /media/NAS1}
\${color purple}\${fs_bar /media/NAS1}
and is there a way to make Gigolo auto start have the password input so I don't have to type my password every reboot.

Mint21.3-PowerEdge-Xeon-2.4GHz-16GB-nVidia2GB-VBox,Kali,Studio,Arch,Win11
Mint21.3-AMD2800-2.8GHz-2GB-nVidia 2Gb
Garuda-Lenovo-Intel2.1Ghz-8GB
OMV-Intel-i3-8100-@3.60GHz-32Gb
OMV-Zeon-2@1.6GHz-94GB
Garuda-Asus-Intel-2.7GHz-16GB
altair4
Level 20
Level 20
Posts: 11458
Joined: Tue Feb 03, 2009 10:27 am

Re: Mint 19 update broke cifs mount

Post by altair4 »

*** Have no idea what Conky is but the mount point for a smb share is located under /run/user/$UID/gvfs - $UID is normally 1000 for most users.
and is there a way to make Gigolo auto start have the password input so I don't have to type my password every reboot.
You can tell it to remember forever when you originally connected:
RememberPassword.png
It then places those credentials in seahorse - Passwords and Keys

Note: there is one bug .... well ... it's not really a bug it's the normal Linux desktop issue of having many moving parts with no one in charge of how they are all put together. If you access a share that allows guest access the Linux desktop requires you select Connect Anonymously. Seahorse has no idea what that means so it ignores the Remember forever directive. To make it work pass:

Username: guest
Password: xxx

Then seahorse will enter guest / xxx for credentials.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
Locked

Return to “Storage”