this post was submitted on 16 Aug 2023
22 points (100.0% liked)
Linux
48031 readers
986 users here now
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Rules
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Are you sure the path to your credentials file is correct and does it look like this?
It's correct. I put it in greater than/less than brackets up above to indicate that it was a placeholder and Lemmy stripped it out for some reason. I have edited above to just say "user". Good eye though.
My file looks like that except for the domain value. I don't have that line. What would go there? It's a network drive connected directly to my router with a USB cable and then the router SMB client and mapping is configured. I know that's correct because I can map them in Windows, and I can list them in Pop in the terminal, as well as browse it in Pop in the file explorer. Alternatively I started out just using the user/password arguments for the terminal mounting command and only moved it to the file to get rid of those arguments since the error it's throwing is saying there are invalid arguments. I have the workgroup set in the config file and I'm explicitly declaring the IP in the mount command. There's no domain name, unless that means something I'm unaware of.
domain
in this instance is the workgroup, and is optional according to the man page.Have you tried adding
--verbose
before the-o
? That might yield more information.The workgroup is set in the cfg file. I got a little further now. Since moving the credentials to the file I am getting a different error. Now I get
mount error(115): Operation now in progress
which is some sort of connection error. I was actually just logging verbose right before I checked back here and it just spits out the options from the config file and the error message. Still trying to figure this new error out since both the computer and the drive are on the same network, and within the same range.OK, you may want to check
dmesg
orjournalctl
if there are further errors from the kernel - there is also a-v
argument formount
, egmount -t cifs -v //SERVER/$share /mnt --verbose -o...
that might help.Don't know if you've found this already (and apologies if you have!) but this suggests some not obvious solutions https://superuser.com/questions/430163/cifs-share-mount-errors
Also (brain dumping) if you've successfully mounted it via the file browser, do so again and then check
mount
to see what arguments/options the CIFS mount is using - it might yield some important differences.Thanks! That last option is something I thought of too, but I didn't know what to do to get that information. I tried properties in the file explorer, but that didn't work. Do I just type
mount
into the terminal to get a list of mounts? I'll definitely try all of this after work. For now I'm exhausted from staying up until 1:30 am trying to get this figured out.Sorry, I was thinking file browser mounts would appear in
mount
, but they don't.You should be able to list file browser mounts in a terminal using
gio mount -li
after mounting via the file browser, and it will list the SMB mount it's using, iesmb://SERVER/$share/
This annoyingly doesn't give us the username or domain for the SMB share, and to get that if the server and share looks OK we have to run
gvfs
(what the file browser for PopOS uses in the background) in debug mode and re-mount the SMB share; in a terminal runpkill gvfs; pkill nautilus; LANG=C GVFS_DEBUG=1 $(find /usr/lib* -name gvfsd 2>/dev/null) --replace 2>&1
; this will unmount anything in the file browser but will show what username and domain the file browser is using to access the SMB share, for example after clicking on a share in the file browser, among other logs, I get;This should give the username and domain that connects and can be used in the credential file.
Once this is done, you can exit the terminal with
gvfs
running and you should be able to close and re-open the file browser and the mounts should just re-appear normally.Hopefully this will give enough information as to why the file browser mount works and the
mount
command doesn't.This is amazing! Thank you very much. I'll try this out tonight and hopefully get somewhere with it. I'll let you know either way. Thanks again!
I think the default domain is empty or WORKGROUP. It would be used if you had active directoy for the user authentication.
I read some more of the man page and this should be optional.