Can someone teach me how to mount a network share?

I am sorry in advance for being so useless. I have been using Microsoft for 30 years and linux for a month.

I want to mount my NAS as a drive on my fedora installation.
I did the usual;

  1. search the internet,
  2. fine a bunch of commands to blindly paste into the command line.
  3. experience failure.

This is what I’v learned is the linux way and it make me despise linux with all my heart.

Here is what it typed into the command line

dnf install cifs-utils
mkdir /mnt/smb
nano /etc/samba/.smbcredentials

username=your_username
password=your_password

chmod 600 /etc/samba/.smbcredentials
nano /etc/fstab

//server_ip/share_name /mnt/smb cifs credentials=/etc/samba/.smbcredentials,iocharset=utf8,sec=ntlm 0 0

I did put my actual user and password in the .smbcredentials file.

And I did put my Tnas ip address and correct path into fstab.

Pleas help my understand why this is so damn hard for me? Why does it have to be this way?

Excertped from The evolution of Windows authentication:

Reducing the use of NTLM will ultimately culminate in it being disabled in Windows 11. We are taking a data-driven approach and monitoring reductions in NTLM usage to determine when it will be safe to disable. In the meantime, you can use the enhanced controls we are providing to get a head start. Once disabled by default, customers will also be able to use these controls to reenable NTLM for compatibility reasons.

Excerpted from Deprecated features for Windows client:

[Update - November 2024] : NTLMv1 is removed starting in Windows 11, version 24H2 and Windows Server 2025.

Server Message Block (SMB) is a protocol that was designed for non-POSIX systems like DOS and Windows. But you are attempting to use a Linux PC. Is there a reason that you cannot use a more Linux-friendly network protocol like NFS or maybe SSHFS?

I just moved from microsoft windows to linux. My NAS was setup with SMB. If I have to change that then I will need to figure that out.

Many NAS systems support NFS. You should try NFS if you are using a NAS device with Linux. Good luck. :slightly_smiling_face:

1 Like

Ugh, great.

So just to be clear, all the above stuff I did is wrong…?

You’re not useless! Everyone started somewhere :slight_smile: It’s perfectly okay to not be knowledgeable about everything.

2 Likes

It’s not so much wrong as it just won’t work anymore due to security enhancements.

I’m sorry. I do not know what that means. Where do I type this, what will it do?

Believe me, If I could go back to Windows, I would. But here I am, in pain.

Watching people like me suffer must be a favorite pastime of the linux expert.

I’m out of here. I am way too frustrated at the moment and all Ive learned is that I will not solve this today.

I agree completely. Seeing a user hit a wall like that after four hours of trial-and-error here is tough.

My main advice to a frustrated user (I myself was in this exact situation a few years ago) would be: Take a break, and we can solve this quickly.

The key is to first get two simple pieces of information:

  • Which Desktop Environment are you running? (GNOME, KDE, XFCE…)
  • How are you currently attempting the share/connect? (The exact steps you’re taking in your file manager.)

As @vgaetera advised, you can do this using the file manager and sharing settings. You won’t need to touch the config file.

Gnome version is above, KDE version is to open the Dolphin browser (the equivalent of Windows Explorer and type in the SMB path to the device:

If there’s a password for that user, you’ll be prompted.

That’s it. No faffing about with CIFS or the fstab file if you don’t want to. You can then save that location as a network location on the left pane of the widow, as in…

… where it will stay forever, a click away.

There were several people in this thread who tried to help you out of their own goodwill. Your words aren’t nice.

I’m sorry. I was pretty mad last night. Seems like even the most basic tasks in linux is impossibly frustrating.

I am using KDE.

I can navigate to the network share by putting the path into the Dolphin browser. A dialog pops up and I type my user name and password for my NAS. That is allways worked fine.

I just want to mount it so that I acts like a drive in my environment and is always there when I boot.

When something is frustrating you, it’s better to take a step back and try to calm yourself down. Been there, done that :slight_smile:

1 Like

Everyone was like that once. However, you rapidly learn a bucketload by fiddling about, reading about other peoples issues, seeing how they are resolved and how that looks when you poke around on your own kit.

Of course, sometimes you just want it to work because you have stuff to do and it’s massively frustrating when what you KNOW should be quite easy is not working and you’re not sure why! :slight_smile:

'tis all good - still need a hand mounting your SMB network shares or is the above enough to get you going?

Is your NAS a Windows machine, or Linux?

If it’s not Windows, you probably don’t need that sec=ntlm. For example I have a Raspberry Pi (on Debian) which exposes a share using Samba. I mount it on my Fedora desktop by using the fstab, in just the way you are trying to do (except without the sec=ntlm and iocharset=utf8).

Yes please.

I would love to know what I did wrong from my original post at the top. I know someone

said that SMB was not going to work in linux. That seems contradictory to sooo many things I read.

Part of what is so frustrating is I first spend hours searching for the solution on my own and when it doesn’t work I find out all the info I am getting from the internet is seemingly wrong.

My NAS is TrueNAS. I think that is BSD.

1 Like