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 1264 times)

fegelmej

  • Junior Woodchuck
  • **
  • Posts: 67
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: 2661
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: 67
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: 2661
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: 67
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: 72438
  • 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: 2618
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: 67
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: 2618
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: 67
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: 7804
  • Autumn shade...
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 "male enhancements" and other sources of sketchy pharmaceuticals.

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

fegelmej

  • Junior Woodchuck
  • **
  • Posts: 67
Re: Can't find NAS from MC
« Reply #11 on: June 29, 2024, 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: 2661
Re: Can't find NAS from MC
« Reply #12 on: June 30, 2024, 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: 2618
Re: Can't find NAS from MC
« Reply #13 on: June 30, 2024, 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

fegelmej

  • Junior Woodchuck
  • **
  • Posts: 67
Re: Can't find NAS from MC
« Reply #14 on: July 01, 2024, 02:24:01 pm »

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

Thank.  Here's my edited /etc/fstab file
fegelmej@raspberrypi:~ $ cat /etc/fstab
proc            /proc           proc    defaults          0       0
PARTUUID=351786b4-01  /boot/firmware  vfat    defaults          0       2
PARTUUID=351786b4-02  /               ext4    defaults,noatime  0       1
//192.168.1.164/Audio /mnt/NAS cifs defaults,nofail,user=Music,password=XXXX123,domain=Buffalonas,uid=1000,gid=1000 0 0

And here's the response when I tried to mount it.  So close!

fegelmej@raspberrypi:~ $ mount -t cifs //192.168.1.164/Audio /mnt/NAS -o username=Music,password=XXXX123 #
mount.cifs: permission denied

BTW, same response if I left the username/PW off.




sudo mount -a
Logged

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2618
Re: Can't find NAS from MC
« Reply #15 on: July 01, 2024, 04:05:27 pm »

Username and Password must match what you define on the NAS settings. How are you setting this?
Domain must match the NAS hostname (or remove the Domain setting entirely). It's almost certainly NOT 'Buffalonas'.
Logged

fegelmej

  • Junior Woodchuck
  • **
  • Posts: 67
Re: Can't find NAS from MC
« Reply #16 on: July 04, 2024, 08:51:50 am »

Username and Password must match what you define on the NAS settings. How are you setting this?
Domain must match the NAS hostname (or remove the Domain setting entirely). It's almost certainly NOT 'Buffalonas'.

So, I went away from too much specificity. I dropped the domain name, and pointed to the "share" folder on the NAS which is not pw controlled.  Made the changes in /etc/fstab and the mount command.  Again.  Access denied.
Logged

HaWi

  • Citizen of the Universe
  • *****
  • Posts: 946
Re: Can't find NAS from MC
« Reply #17 on: July 04, 2024, 03:47:48 pm »

Maybe I can help
I have MC running on a Pi5 and my media (music files) are on a Synology DS1819+
On the Pi, I created a folder mnt/music (the top level folder mnt is used for all mounted folder from other computers
The etc/fstab file contains this line:
192.168.7.234:/volume1/music /mnt/music nfs defaults,auto 0 0, where
192.168.7.234 is the (static) IP address of the NAS
volume1/music is the folder where all my media reside
I then point MC to mnt/music and all is well
I hope this helps!
EDIT: You might want to make sure that the NFS service is running on the pi. It's easy to find on Google how to do that (I am also a complete Linux noob)
EDIT 2: On the NAS you also need to run the NFS service and give access privileges to the IP address of your Pi (also easy to find in the help system of the NAS)
Logged
rPi5/8GB, Debian 12 Bookworm on SSD | JRMark (33.0.37 64 bit): 2784
MacBookPro (2013), 2.6 GHz Quad-Core Intel Core i7, MacOS 11.7.17 | JRMark (33.0.41 64 bit): 3826
Mac Studio M2 Max, 64GB, 1TB SSD, macOS Sequoia 15.1.1 | JRMark (33.0.41 64 bit): 9056
Docker Container (shiomax) DS1819+ | JRMark (33.0.37 64 bit): 1431
JRemote 3.43
MO 4Media 1.5.7 | Marantz SR7007 (RSL 5.1) HDMI to MacBookPro

fegelmej

  • Junior Woodchuck
  • **
  • Posts: 67
Re: Can't find NAS from MC
« Reply #18 on: July 04, 2024, 04:57:06 pm »

Maybe I can help
I have MC running on a Pi5 and my media (music files) are on a Synology DS1819+
On the Pi, I created a folder mnt/music (the top level folder mnt is used for all mounted folder from other computers
The etc/fstab file contains this line:
192.168.7.234:/volume1/music /mnt/music nfs defaults,auto 0 0,

I then point MC to mnt/music and all is well
I hope this helps!
EDIT: You might want to make sure that the NFS service is running on the pi. It's easy to find on Google how to do that (I am also a complete Linux noob)


Well, HaWi, that did it!!! Converting from cifs to nfs was the key.  I'm currently auto importing my files.  All should be well. ;D

Thanks to everyone who lent a hand and an idea. 

Fegelmej
Logged

fegelmej

  • Junior Woodchuck
  • **
  • Posts: 67
Re: Can't find NAS from MC
« Reply #19 on: July 04, 2024, 07:17:08 pm »

Well, my celebration was a bit premature.  I was able to load all of my files.  Then rebooted the Pi in order to install the DAC, and the mount is gone.  I thought that putting the line into the /etc/fstab file would mount it at boot up.  Again, what am I missing here?  Do I need to reinstall the NFS kernel at each boot up?  Yes, I'm using a static IP address on the NAS.
Logged

Awesome Donkey

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 7804
  • Autumn shade...
Re: Can't find NAS from MC
« Reply #20 on: July 04, 2024, 08:23:56 pm »

On the NAS side did you set up the NFS permissions for the Pi? And does the Pi have a static IP too?

SMB is another alternative (preferably SMBv3) to CIFS and NFS.
Logged
I don't work for JRiver... I help keep the forums safe from "male enhancements" and other sources of sketchy pharmaceuticals.

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

fegelmej

  • Junior Woodchuck
  • **
  • Posts: 67
Re: Can't find NAS from MC
« Reply #21 on: July 04, 2024, 09:25:43 pm »

Okay, the nfs kernel didn't run at reboot.  I had to use command $ sudo exportfs -arv to cause it to load at startup.  Also, the NAS doesn't have a call out for nfs, but it does for ftp.  That is allowing the proper folders to be seen by MC. Things are getting more and more stable.  Will keep this topic informed.  Thanks again for all assistance.
Logged

fegelmej

  • Junior Woodchuck
  • **
  • Posts: 67
Re: Can't find NAS from MC
« Reply #22 on: July 05, 2024, 05:52:01 am »

I've been able to install, import and access my files now.  Thanks again for everybody's support.  I summarized the process here: https://yabb.jriver.com/interact/index.php/topic,139204.0.html
Logged
Pages: [1]   Go Up