NAS network mount

Raspberry Pi related support

Re: NAS network mount

Postby fuddyduddy » 01 Apr 2019, 17:03

Hi janui

Having removed the existing mount, I decided I would play safe and start over again.

This time I remembered to insert my actual password and all went as intended. The output from the grep command duly conformed with your specification in all respects - and there is now only the one, correct, line not two.

However, MPD is not now seeing any of my music collection. In the 'Library' tab of the Rune 'Playback' gui it detects 2 "network attached storages". But clicking on that box doesn't produce any list(s). Previously, when both "Artists" and "genres" boxes were clicked that brought up my music sub-folders appropriately sorted. Now both lists are blank.
fuddyduddy
 
Posts: 38
Joined: 19 Feb 2016, 12:55
Location: Åland Islands

Re: NAS network mount

Postby janui » 02 Apr 2019, 10:32

Hi fuddyduddy,
Sounds OK, but just to check could you share the output of these commands:
Code: Select all
grep -i cifs /etc/fstab
grep -i cifs /proc/mounts
Then go the Sources UI and click on the button UPDATE MPD LIBRARY.
janui
User avatar
janui
 
Posts: 674
Joined: 20 Dec 2014, 12:55
Location: Ollanda

Re: NAS network mount

Postby fuddyduddy » 14 Apr 2019, 13:36

Here we are
Code: Select all
[root@runeaudio ~]# grep -i cifs /etc/fstab
//192.168.1.102/My040Music /mnt/MPD/NAS cifs ro,vers=3.0,cache=none,username=rober,password=secret 0 0
[root@runeaudio ~]# grep -i cifs /proc/mounts
Then go the Sources UI and click on the button UPDATE MPD LIBRARY.
I did that and it resulted in two entries appearing in the 'Libraries' ui ,'Network mounts' page:- "My_Musik" (sic!) and "My_Music"). But so far no music folders have shown up.

I have done a re-boot but that has only caused the double-entries in the 'Network mounts' page to disappear, leaving it as well as the 'Albums' and 'Genres' pages now blank.

EDIT

When I clicked again on the "Rebuild MPD Library" box, the doubly-entered music library sources reappeared on the *Network mounts' page. But no music folders.
fuddyduddy
 
Posts: 38
Joined: 19 Feb 2016, 12:55
Location: Åland Islands

Re: NAS network mount

Postby janui » 14 Apr 2019, 17:19

Hi fuddyduddy,
fuddyduddy wrote:...But so far no music folders have shown up...
I am not sure what is going on here. The mount command in /etc/fstab looks fine, but the mount is still failing. Could you run these commands to clean up some system variables and files:
Code: Select all
cd/home
umount -aft nfs
umount -aft cifs
rm -R /mnt/MPD/NAS/*
rmdir /mnt/MPD/NAS/*
mount_store=$( redis-cli keys mount_* )
for mount in $mount_store; do
resis-cli del $mount
done
redis-cli del mountidx
dir
Run the whole set of commands in one go by copying and pasting. If it doesn’t seem right, you can run all the commands again without any problems.
Then to try to find your problem. I suspect that something has changed on you Windows machine. Maybe the IP address. Could open the DOS system prompt on Windows and run the following two commands:
Code: Select all
ipconfig
whoami
Please post the output.
janui
User avatar
janui
 
Posts: 674
Joined: 20 Dec 2014, 12:55
Location: Ollanda

Re: NAS network mount

Postby fuddyduddy » 15 Apr 2019, 08:39

Hi janui

Here's the output
Code: Select all
[root@runeaudio ~]# umount -aft nfs
[root@runeaudio ~]# umount -aft cifs
[root@runeaudio ~]# rm -R /mnt/MPD/NAS/*
[root@runeaudio ~]# rmdir /mnt/MPD/NAS/*
rmdir: failed to remove '/mnt/MPD/NAS/*': No such file or directory
[root@runeaudio ~]# mount_store=$( redis-cli keys mount_* )
[root@runeaudio ~]# for mount in $mount_store; do
> resis-cli del $mount
> done
[root@runeaudio ~]# redis-cli del mountidx
(integer) 1
[root@runeaudio ~]# dir
I note it didn't find the /mnt/MPD/NAS directory!

Using the two commands in Windows returned my correct user name.

EDIT ...and correct NAS network address
fuddyduddy
 
Posts: 38
Joined: 19 Feb 2016, 12:55
Location: Åland Islands

Re: NAS network mount

Postby janui » 15 Apr 2019, 09:09

Hi fuddyduddy
fuddyduddy wrote:...Using the two commands in Windows returned my correct user name. EDIT ...and correct NAS network address...
Could you please post the output as requested.
And a question, can you access the 'My Music' share from another Windows machine?
janui
User avatar
janui
 
Posts: 674
Joined: 20 Dec 2014, 12:55
Location: Ollanda

Re: NAS network mount

Postby fuddyduddy » 15 Apr 2019, 16:53

janui wrote:Could you please post the output as requested.
Here it is. Sorry.
Code: Select all
C:\WINDOWS\system32>whoami
desktop8\rober
And a question, can you access the 'My Music' share from another Windows machine?
I'll check and let you know
fuddyduddy
 
Posts: 38
Joined: 19 Feb 2016, 12:55
Location: Åland Islands

Re: NAS network mount

Postby fuddyduddy » 15 Apr 2019, 20:29

janui wrote:And a question, can you access the 'My Music' share from another Windows machine?
Yes I can.
fuddyduddy
 
Posts: 38
Joined: 19 Feb 2016, 12:55
Location: Åland Islands

Re: NAS network mount

Postby janui » 16 Apr 2019, 11:58

Hi fuddyduddy,
fuddyduddy wrote:...And a question, can you access the 'My Music' share from another Windows machine?
Yes I can…
Thanks for the replies. I backtracked our communication and I think I have found the problem.
You need to modify /etc/fstab, with this:
Code: Select all
nano /etc/fstab
Look for this line (it should be the last line):
Code: Select all
//192.168.1.102/My040Music /mnt/MPD/NAS cifs ro,vers=3.0,cache=none,username=rober,password=secret 0 0
The password will probably be different, but change the first part of the line to include a '\' before the '040', like this:
Code: Select all
//192.168.1.102/My\040Music /mnt/MPD/NAS cifs ro,vers=3.0,cache=none,username=rober,password=secret 0 0
Save the file with <ctrl>o, <enter> and then <ctrl>x. Then reboot. Check it with:
Code: Select all
grep -i cifs /proc/mounts
Your mount should be listed. Then go to the Sources UI and click on ‘Rebuild MPD Library’ to load your music.
Optionally, you could also try changing the same line in /etc/fstab to look like this:
Code: Select all
//desktop8.local/My\040Music /mnt/MPD/NAS cifs ro,vers=3.0,cache=none,username=rober,password=secret 0 0
The advantage of this is that it will still work even if the IP address of your Windows machine changes.
janui
User avatar
janui
 
Posts: 674
Joined: 20 Dec 2014, 12:55
Location: Ollanda

Re: NAS network mount

Postby fuddyduddy » 16 Apr 2019, 15:30

Hi janui

Was there a step missing? Here's the output
Code: Select all
Last login: Tue Apr 16 17:17:52 2019 from 192.168.1.102
[root@runeaudio ~]# nano /etc/fstab
  GNU nano 2.4.1              File: /etc/fstab

#
# /etc/fstab: static file system information
#
# <file system> <dir>   <type>  <options>       <dump>  <pass>
logs            /var/log                tmpfs           nodev,nosuid,noatime,mo$
rune-logs       /var/log/runeaudio      tmpfs           nodev,nosuid,noatime,mo$













                                [ Read 6 lines ]
^G Get Help  ^O Write Out ^W Where Is  ^K Cut Text  ^J Justify   ^C Cur Pos
^X Exit      ^R Read File ^\ Replace   ^U Uncut Text^T To Spell  ^_ Go To Line
fuddyduddy
 
Posts: 38
Joined: 19 Feb 2016, 12:55
Location: Åland Islands

support RuneAudio Donate with PayPal

PreviousNext

Return to Raspberry Pi

Who is online

Users browsing this forum: cmh714, MSN [Bot] and 4 guests