INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Can't find NAS from MC  (Read 246 times)

fegelmej

  • Junior Woodchuck
  • **
  • Posts: 54
Can't find NAS from MC
« on: June 26, 2024, 08:40:03 pm »

Just upgraded to Pi5.  Thanks to this forum for helping me get MC 32 installed on RPi OS.  Current issue is finding the files on my NAS.  The drive can be found with its IP address in the OS File manager, but when trying to add it to auto import, MC says file cannot be found.  When I use the Media Network menu, it sees all devices on the LAN, except for the NAS.  Any suggestions on how to get MC to recognize the NAS?  Thanks.
Logged

BryanC

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2578
Re: Can't find NAS from MC
« Reply #1 on: June 26, 2024, 09:32:54 pm »

You need to mount your network share. I'm assuming you are using SAMBA/SMB/CIFS. You can mount it manually to test and then add it to /etc/fstab to mount it automatically at boot.

The mount command will look something like this:

Code: [Select]
mkdir ~/nas # make the mount point
mount.cifs //192.168.0.67/media ~/nas -o username=yourusername,password=yourpassword123 # mount the share

Then you will access your files at ~/nas.
Logged

fegelmej

  • Junior Woodchuck
  • **
  • Posts: 54
Re: Can't find NAS from MC
« Reply #2 on: June 27, 2024, 04:14:47 am »

Bryan, really appreciate the support.  I am a novice at Linux, and generally rusty at command prompts.  Using your template above I get the following:

fegelmej@raspberrypi:~ $ mkdir ~/nas # make the mount point
mount.cifs //192.168.1.164/media ~/nas -o username=Music,password=[removed] # mount the share
mkdir: cannot create directory ‘/home/fegelmej/nas’: File exists
mount.cifs: permission denied: no match for /home/fegelmej/nas found in /etc/fstab
fegelmej@raspberrypi:~ $

Can you help guide me? Are those # looking for my particulars?  If so, I'm not sure what they are calling for. Or, can you point me towards a resource?  Thanks in advance.
Logged

BryanC

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2578
Re: Can't find NAS from MC
« Reply #3 on: June 27, 2024, 08:31:20 am »

The comments may have messed up the command or we got really unlucky and you already had a 'nas' directory there, this should work:

Code: [Select]
mkdir ~/nas_share && mount -t cifs -o username=Music,password=yourpassword123,uid=$(id -u fegelmej),gid=$(id -g fegelmej) //192.168.1.164 ~/nas_share
You should just need to change the password.
Logged

fegelmej

  • Junior Woodchuck
  • **
  • Posts: 54
Re: Can't find NAS from MC
« Reply #4 on: June 27, 2024, 07:37:45 pm »

Thank you.  But something is still missing.  I wish I could parse it, but appreciate your working this with me.

fegelmej@raspberrypi:~ $ mkdir ~/nas_share && mount -t cifs -o username=Music,password=[removed],uid=$(id -u fegelmej),gid=$(id -g fegelmej) //192.168.1.164 ~/nas_share
mount.cifs: permission denied: no match for /home/fegelmej/nas_share found in /etc/fsta

It's there sometimes, and not others??
Logged

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 71680
  • Where did I put my teeth?
Re: Can't find NAS from MC
« Reply #5 on: June 28, 2024, 12:27:47 am »

Please remove your password when you post.
Logged

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2445
Re: Can't find NAS from MC
« Reply #6 on: June 28, 2024, 04:43:24 am »

You need to run the commands one at a time, excluding the #comments. Check and update the text in bold.

# create the folder - this may fail if the folder already exists, that's fine, but the folder has to be empty!
mkdir ~/nas

# mount the share. Try first without user/pass - works only if your NAS has anonymous/guest access enabled:
mount -t cifs //192.168.1.164/media ~/nas

# if that fails, try with your user/pass as defined in the NAS - note the username (Music?) may also be case sensitive!:
mount -t cifs -o username=Music,password=hunter2 //192.168.1.164/media ~/nas

# if that fails, try this one (assuming your linux username is fegelmej):
mount -t cifs -o username=Music,password=hunter2,uid=$(id -u fegelmej),gid=$(id -g fegelmej) //192.168.1.164/media ~/nas

# check it
cd ~/nas
ls -la
Logged

fegelmej

  • Junior Woodchuck
  • **
  • Posts: 54
Re: Can't find NAS from MC
« Reply #7 on: June 28, 2024, 04:10:10 pm »

THanks, I didn't appreciate there were individual commands in Bryan's post.  THanks for the clarification.  I've created the folder, I can see it on my home folder.  But now it's looking for it in the etc/fstab folder. 

~ $ mount -t cifs -o username=Music,password=xxxxx123,uid=$(id -u fegelmej),gid=$(id -g fegelmej) //192.168.1.164/media ~/nas
mount.cifs: permission denied: no match for /home/fegelmej/nas found in /etc/fstab


I did some reading on etc/fstab, but that seems much more complicated the guidance you're offering. I'm very close.  Thanks again for the assistance.
   
Logged

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2445
Re: Can't find NAS from MC
« Reply #8 on: June 28, 2024, 04:55:07 pm »

Just checking: is the NAS username called "Music" with capital M ?

Try this - replace NASNAME with the NAS hostname:
mount -v -t cifs //192.168.1.164/media ~/nas -o user=Music,password=xxxxx123,domain=NASNAME,uid=$(id -u),gid=$(id -g),forceuid,forcegid

Maybe you can enable Anonymous access in your NAS? Then the basic command should work:
mount -t cifs //192.168.1.164/media ~/nas
Logged

fegelmej

  • Junior Woodchuck
  • **
  • Posts: 54
Re: Can't find NAS from MC
« Reply #9 on: June 28, 2024, 06:50:44 pm »

Thanks Zybex, yes the Username for the NAS itself is "Music".  It contains the subfolders of music files.  I'm thinking of moving those files out of the "Music" folder and into the "Shared"-non PW controlled folder.

But, again, you've caught me wanting.  When you say NAS hostname, I'm not sure what that is?  I use the IP address to call. The asset name used in WIN Explorer is Buffalo NAS, is this the term you're suggesting?

When using the Pi 3B, the folders lived in the MNT folder.  Was that convention, or necessary for MC.  Also, I intend to run the Pi 5 headless, will this mount the NAS at boot automatically, or is there an additional step for that? 

Tried your recos.  Again, it's looking for something in the ect/fstab folder.

fegelmej@raspberrypi:~ $ mount -v -t cifs //192.168.1.164/media ~/nas -o user=Music,password=xxxx123,domain=Buffalonas,uid=$(id -u),gid=$(id -g),forceuid,forcegid
mount.cifs: permission denied: no match for /home/fegelmej/nas found in /etc/fstab

fegelmej@raspberrypi:~ $ mount -t cifs //192.168.1.164/media ~/nas
mount.cifs: permission denied: no match for /home/fegelmej/nas found in /etc/fstab


Thanks again.
Logged

Awesome Donkey

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 7473
  • When Summer comes...
Re: Can't find NAS from MC
« Reply #10 on: June 28, 2024, 07:34:54 pm »

You have to set it up first in the /etc/fstab file.
Logged
I don't work for JRiver... I help keep the forums safe from Viagra and other sources of sketchy pharmaceuticals.

Windows 11 2024 Update (24H2) 64-bit + Ubuntu 24.04 LTS Noble Numbat 64-bit | Windows 11 2024 Update (24H2) 64-bit (Intel N305 Fanless NUC 16GB RAM/500GB M.2 NVMe SSD)
JRiver Media Center 32 (Windows + Linux) | iFi ZEN DAC 3 | JBL 306P MkII Studio Monitors | Audio-Technica ATH-M50x Headphones

fegelmej

  • Junior Woodchuck
  • **
  • Posts: 54
Re: Can't find NAS from MC
« Reply #11 on: Yesterday at 12:40:29 pm »

That is what I am beginning to understand.  But, when I read about this file set up, I get a little confused as I don't understand the nomenclature.
Logged

BryanC

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2578
Re: Can't find NAS from MC
« Reply #12 on: Today at 09:06:24 am »

The fstab entry should look something like this--change your uid/gid to your user uid/gid (`id -u` and `id -g`) and make sure everything else is correct (password, username, domain, share, etc):

Code: [Select]
//192.168.1.164/media /home/fegelmej/nas cifs defaults,nofail,user=Music,password=xxxx123,domain=Buffalonas,uid=1000,gid=1000 0 0
Edit /etc/fstab with `sudo nano /etc/fstab`.
Add line and Ctrl-O to save, Ctrl-X to exit.
sudo systemctl daemon-reload
sudo mount -a
Logged

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2445
Re: Can't find NAS from MC
« Reply #13 on: Today at 09:13:18 am »

But, again, you've caught me wanting.  When you say NAS hostname, I'm not sure what that is?  I use the IP address to call. The asset name used in WIN Explorer is Buffalo NAS, is this the term you're suggesting?

No, it wouldn't have a space in the name.
If you access your NAS settings via the browser (https://192.168.1.164), the hostname should be listed somewhere in the Network settings menu.

According to Buffalo:
The default product name will be "product model + last 3 digits of the MAC address". ex. TS-XHL123
Logged
Pages: [1]   Go Up