More > JRiver Media Center 32 for Linux

Can't find NAS from MC

<< < (2/5) > >>

JimH:
Please remove your password when you post.

zybex:
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

fegelmej:
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.
   

zybex:
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

fegelmej:
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.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version