INTERACT FORUM

Please login or register.

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

Author Topic: I can't see my Nas in my Raspberry. How to do it???  (Read 10659 times)

altsouza

  • World Citizen
  • ***
  • Posts: 138
I can't see my Nas in my Raspberry. How to do it???
« on: June 17, 2016, 05:05:36 am »

Hello,

I am completly newbie to Linux. I recently bought a Raspberry , but I can't see my NAS, where all my 100k music is located.

As a completly Linux newbie,  a step by step directions is needed (starting on how to go to root!!!!).

Any help is welcome. My Nas is a Synology and my House has  windows Pc's.

Directions on how to automate Auto import would be good too (in windows I use win schedule to start it (jriver/synology has a  "problem" monitoring folders).

Thanks

Antonio
Logged
Nuc > Cambridge Audio Cxn Streamer > Cambridge 851e Pré
Parasound A21 Amp > Nordost Cable > Kef R300 Speaker
Prog Rock Fan (Yes.....)

TADman

  • Recent member
  • *
  • Posts: 10
Re: I can't see my Nas in my Raspberry. How to do it???
« Reply #1 on: June 17, 2016, 06:16:10 am »

I have the same problem. Maybe someone will be kind enough to help. PI3 works well.
Logged
NUCs, PI3, Asus U7s
Hypex NC400s
eXclusive 2401 speaks

mwillems

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 5233
  • "Linux Merit Badge" Recipient
Re: I can't see my Nas in my Raspberry. How to do it???
« Reply #2 on: June 17, 2016, 11:58:21 am »

Check out the linked thread and the linked post below from the quick start guide.  The first link provides an overview of how to mount shares in linux; the second link provides an example code snippet that you'll need to add to your fstab.

https://yabb.jriver.com/interact/index.php?topic=103584.msg719910#msg719910
https://yabb.jriver.com/interact/index.php?topic=99370.msg705336#msg705336
Logged

tsurkamp

  • Recent member
  • *
  • Posts: 15
Re: I can't see my Nas in my Raspberry. How to do it???
« Reply #3 on: August 18, 2016, 04:09:50 pm »

First, a LOUD shout out to all of you gurus who so generously answer our noobish questions. Thank you.

Following your most excellent instructions I have got my Pi3 with a hifiberry digi+ loaded and working headless...for the most part. I just can't seem to get my qnap 451 to stay loaded. I find the qnap through File Manager, network and l then I can log into the files with my music. Connecting through MC, I have a path...

/run/user/1000/gvfs/smb-server=qnapnas.local, share=multimedia   (plus the appropriate Artist/Title info. for each song)

but as you know when I reboot the pi, this connection goes away.

So here is the information I get from the Pi3 even after I have linked to the NAS.

pi@raspberrypi:~ $ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/root       6.0G  3.7G  2.0G  65% /
devtmpfs        459M     0  459M   0% /dev
tmpfs           463M   20K  463M   1% /dev/shm
tmpfs           463M  6.4M  457M   2% /run
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           463M     0  463M   0% /sys/fs/cgroup
/dev/mmcblk0p6   63M   20M   43M  32% /boot
tmpfs            93M  4.0K   93M   1% /run/user/1000
/dev/mmcblk0p5   30M  437K   28M   2% /media/pi/SETTINGS

pi@raspberrypi:~ $ lsblk
NAME        MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
mmcblk0     179:0    0  7.4G  0 disk
├─mmcblk0p1 179:1    0  1.1G  0 part
├─mmcblk0p2 179:2    0    1K  0 part
├─mmcblk0p5 179:5    0   32M  0 part /media/pi/SETTINGS
├─mmcblk0p6 179:6    0   63M  0 part /boot
└─mmcblk0p7 179:7    0  6.2G  0 part /

So I don't think I see the network being mounted, but I am willing to learn, please and thank you.

So I added the recommend code in fstab as show below.

pi@raspberrypi:~ $ cat /etc/fstab
proc            /proc           proc    defaults          0       0
/dev/mmcblk0p6  /boot           vfat    defaults          0       2
/dev/mmcblk0p7  /               ext4    defaults,noatime  0       1
# a swapfile is not a swap partition, no line here
#   use  dphys-swapfile swap[on|off]  for that
192.168.1.12:network:///smb://qnapnas.local:445/multimedia /home/pi/music cifs defaults,noauto,x-systend.automount 0

If this last line is correct (is it?) I believe that I am having a "permissions" problem. You suggested that in the fstab I send to the pi in a directory you created called "data" (/home/pi/data.) I was not given permission to create the folder (and used the open /home/pi/music folder instead.) Plus as a result of the line added to fstab, I could find the music folder under "File Manager, Devices" but did not have permission to open it.

I'm trusting that you can see what I'm not doing right.  Thanks again for all you do.
Logged

mwillems

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 5233
  • "Linux Merit Badge" Recipient
Re: I can't see my Nas in my Raspberry. How to do it???
« Reply #4 on: August 18, 2016, 05:07:22 pm »

First, a LOUD shout out to all of you gurus who so generously answer our noobish questions. Thank you.

Following your most excellent instructions I have got my Pi3 with a hifiberry digi+ loaded and working headless...for the most part. I just can't seem to get my qnap 451 to stay loaded. I find the qnap through File Manager, network and l then I can log into the files with my music. Connecting through MC, I have a path...

/run/user/1000/gvfs/smb-server=qnapnas.local, share=multimedia   (plus the appropriate Artist/Title info. for each song)

but as you know when I reboot the pi, this connection goes away.

So here is the information I get from the Pi3 even after I have linked to the NAS.

pi@raspberrypi:~ $ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/root       6.0G  3.7G  2.0G  65% /
devtmpfs        459M     0  459M   0% /dev
tmpfs           463M   20K  463M   1% /dev/shm
tmpfs           463M  6.4M  457M   2% /run
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           463M     0  463M   0% /sys/fs/cgroup
/dev/mmcblk0p6   63M   20M   43M  32% /boot
tmpfs            93M  4.0K   93M   1% /run/user/1000
/dev/mmcblk0p5   30M  437K   28M   2% /media/pi/SETTINGS

pi@raspberrypi:~ $ lsblk
NAME        MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
mmcblk0     179:0    0  7.4G  0 disk
├─mmcblk0p1 179:1    0  1.1G  0 part
├─mmcblk0p2 179:2    0    1K  0 part
├─mmcblk0p5 179:5    0   32M  0 part /media/pi/SETTINGS
├─mmcblk0p6 179:6    0   63M  0 part /boot
└─mmcblk0p7 179:7    0  6.2G  0 part /

So I don't think I see the network being mounted, but I am willing to learn, please and thank you.

So I added the recommend code in fstab as show below.

pi@raspberrypi:~ $ cat /etc/fstab
proc            /proc           proc    defaults          0       0
/dev/mmcblk0p6  /boot           vfat    defaults          0       2
/dev/mmcblk0p7  /               ext4    defaults,noatime  0       1
# a swapfile is not a swap partition, no line here
#   use  dphys-swapfile swap[on|off]  for that
192.168.1.12:network:///smb://qnapnas.local:445/multimedia /home/pi/music cifs defaults,noauto,x-systend.automount 0

If this last line is correct (is it?) I believe that I am having a "permissions" problem. You suggested that in the fstab I send to the pi in a directory you created called "data" (/home/pi/data.) I was not given permission to create the folder (and used the open /home/pi/music folder instead.) Plus as a result of the line added to fstab, I could find the music folder under "File Manager, Devices" but did not have permission to open it.

I'm trusting that you can see what I'm not doing right.  Thanks again for all you do.

Two suggestions: your fstab entry looks generally good, but you need a second 0 at the end.  As to permissions, there are a couple of ways that could go wrong (local permissions or cifs permissions).  After booting with the fstab entry, could you open a terminal and post the output of
Code: [Select]
df -h
 ls -la /home/pi

Something else to be aware of: linux filesystems are case-sensitive, meaning that "music" and "Music" are two different directories.  So make sure you actually have a directory named lower-case "m" "music" in your home directory or the fstab won't mount correctly
Logged

tsurkamp

  • Recent member
  • *
  • Posts: 15
Re: I can't see my Nas in my Raspberry. How to do it???
« Reply #5 on: August 19, 2016, 06:15:30 pm »

Thanks again...

Making the proper case changes in the fstab did not have any positive effect that I can tell .I could not add a new folder, so I just changed the case of the folder"Music" in the fstab. The folder is "invalid" when I try and open in File Manager..

Here is the output...

pi@raspberrypi:~ $ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/root       6.0G  3.7G  2.0G  65% /
devtmpfs        459M     0  459M   0% /dev
tmpfs           463M     0  463M   0% /dev/shm
tmpfs           463M  6.4M  457M   2% /run
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           463M     0  463M   0% /sys/fs/cgroup
/dev/mmcblk0p6   63M   20M   43M  32% /boot
tmpfs            93M     0   93M   0% /run/user/1000
/dev/mmcblk0p5   30M  437K   28M   2% /media/pi/SETTINGS
pi@raspberrypi:~ $
pi@raspberrypi:~ $
pi@raspberrypi:~ $  ls -la /home/pi
total 136
-rw-rw-rw-  1 pi   pi      0 Aug 12 23:18 -
drwxrwxrwx 22 pi   pi   4096 Aug 19 17:48 .
drwxr-xr-x  3 root root 4096 Aug 12 22:25 ..
-rw-rw-rw-  1 pi   pi     69 Aug 19 17:48 .asoundrc
-rw--w--w-  1 pi   pi   1438 Aug 19 17:47 .bash_history
-rw-rw-rw-  1 pi   pi    220 May 27 06:09 .bash_logout
-rw-rw-rw-  1 pi   pi   3512 May 27 06:09 .bashrc
drwxrwxrwx 11 pi   pi   4096 Aug 18 10:53 .cache
drwxrwxrwx 15 pi   pi   4096 Aug 14 00:09 .config
drwx-w--w-  3 pi   pi   4096 May 27 06:50 .dbus
drwxrwxrwx  2 pi   pi   4096 May 27 06:40 Desktop
drwxrwxrwx  6 pi   pi   4096 Aug 13 00:38 Documents
drwxrwxrwx  2 pi   pi   4096 Aug 14 01:01 Downloads
drwxrwxrwx  2 pi   pi   4096 Aug 12 22:36 .gstreamer-0.10
-rw-rw-rw-  1 pi   pi     12 Aug 14 00:31 .gtk-bookmarks
drwx------  2 pi   pi   4096 Aug 15 01:18 .gvfs
-rwxr-xr-x  1 root root  160 Aug 15 01:12 headless
drwxrwxrwx  4 pi   pi   4096 Aug 13 00:12 .jriver
drwxrwxrwx  3 pi   pi   4096 Aug 12 22:25 .local
-rw-rw-rw-  1 pi   pi   1712 Feb 20  2015 mediacenter@jriver.com.gpg.key
drwxrwxrwx  2 pi   pi   4096 Aug 13 23:34 Music
drwxrwxrwx  2 pi   pi   4096 Aug 14 00:09 .oracle_jre_usage
drwxrwxrwx  2 pi   pi   4096 May 27 06:50 Pictures
-rw-rw-rw-  1 pi   pi    675 May 27 06:09 .profile
drwxrwxrwx  2 pi   pi   4096 May 27 06:50 Public
drwxrwxrwx  2 pi   pi   4096 Aug 12 22:25 python_games
-rw-rw-rw-  1 pi   pi     66 Aug 15 01:13 .selected_editor
drwxrwxrwx  2 pi   pi   4096 May 27 06:50 Templates
drwxrwxrwx  3 pi   pi   4096 Aug 12 22:25 .themes
drwx-w--w-  4 pi   pi   4096 Aug 13 23:59 .thumbnails
drwxrwxrwx  2 pi   pi   4096 May 27 06:50 Videos
drwx-w--w-  2 pi   pi   4096 Aug 15 01:18 .vnc
-rw--w--w-  1 pi   pi    217 Aug 19 17:47 .Xauthority
-rw-------  1 pi   pi    353 Aug 19 17:47 .xsession-errors
-rw-------  1 pi   pi    353 Aug 19 17:35 .xsession-errors.old

My current library on MC Pi now has two entries for every song (a /run/user link mentioned above and a second one that failed) Once this is resolved, I will want to start anew. If I us Library Clear I am in no danger of deleting files on the NAS, correct? Then I simply import the files using the new mount.

Oh...I didn't mention it but I am using MC 22 in case it matters.  Cheers!
Logged

mwillems

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 5233
  • "Linux Merit Badge" Recipient
Re: I can't see my Nas in my Raspberry. How to do it???
« Reply #6 on: August 20, 2016, 10:40:05 am »

Ok it appears that your fstab entry is not successfully mounting the NAS share, so there's something wrong with the way you addressed the NAS in the fstab.  You're first entry (the one with the network address); are you sure that's how your NAS is addressed over the local network?  Have you tried just using the IP address with a : and a path rather than adding the "network:" bit?  I don't use a QNAP NAS myself, so I'm at a bit of a loss.
Logged

tsurkamp

  • Recent member
  • *
  • Posts: 15
Re: I can't see my Nas in my Raspberry. How to do it???
« Reply #7 on: August 23, 2016, 11:50:02 am »

You're correct about fstab, but after est. 4 hours of trying different addresses, no progress. 

Since you pointed out case-sensitive addresses are needed, I've tried to get the correct address plus I double checked everything. Good news was I had the wrong ip address. Bad news I'm not any closer.

I look at how the File Manager lists the NAS under network:///. There are 3 listings:   QnapNAS, QNAPNAS, and QnapNAS (FTP) (plus a Windows network where I can get to a QnapNAS server.) I check the properties for each and it shows: smb://qnapnas in all lowercase. One of these is smb://qnapnas.local:455. If I mount this local one, then look at it under File Manager Devices it drops the 455.

Drilling down to my main folder, I find that it is Multimedia. So I can mount this, it asks for my password. When I go to Devices, it is listed as network:///smb://qnapnas/multimedia.

I look at the NAS through different windows apps and I see both listings: QnapNAS and QNAPNAS.

So frankly, I don't know what the correct address should be. I tried many different versions.

This is the last fstab I showed:
192.168.1.12:network:///smb://qnapnas.local:445/multimedia /home/pi/music cifs defaults,noauto,x-systend.automount 0

Here is where I think should work:
192.168.1.8://qnapnas.local/Multimedia /home/pi/Music cifs defaults,noauto,x-systend.automount 0 0
 
I went back to check things and notice I originally had a 2 at the end of the fstab, but you suggested a 0. I tried about 8 different versions with an 0 and a 2, but did not help.

Fixing the case of the /home/pi/Music did give a device called Music that I can't open.

Should I re-load everything just to be sure?
Logged

mwillems

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 5233
  • "Linux Merit Badge" Recipient
Re: I can't see my Nas in my Raspberry. How to do it???
« Reply #8 on: August 23, 2016, 05:44:21 pm »

I'm not sure that's a good way to address the cifs mount, but I'm not sure how QNAP sets things up.  If I were you I would try:

Code: [Select]
//192.168.1.8/Multimedia /home/pi/Music cifs noauto,x-systemd.automount 0 0

Note this will only work if your shares don't require a username and password.  Also please note that you've misspelled "systemd" in your fstab entries; verify that you spell it correctly in your final entry.
Logged

altsouza

  • World Citizen
  • ***
  • Posts: 138
Re: I can't see my Nas in my Raspberry. How to do it???
« Reply #9 on: August 30, 2016, 10:30:37 am »

Hello, i bought recently a Intel stick cs125 (2016 entry level model - $119 at amazon - win 10 pre instaled).
Sorry guys, but it is much essier to operate.
I configured jriver 22 in 5 minutes.
I have retired my pi2.
Thanks
Antonio
Logged
Nuc > Cambridge Audio Cxn Streamer > Cambridge 851e Pré
Parasound A21 Amp > Nordost Cable > Kef R300 Speaker
Prog Rock Fan (Yes.....)

tsurkamp

  • Recent member
  • *
  • Posts: 15
Re: I can't see my Nas in my Raspberry. How to do it???
« Reply #10 on: August 31, 2016, 11:57:41 am »

Thanks, Antonio, but for now I hope to figure it out with the forum help.

Your last point about needing  a password is where I need to look at, please. The QNAP requires one with a log-on.
I'm not sure what information about the QNAP 451 (only two Red 3 tb. run as Raid) would help?

I copied your fstab line into the code. It has made a change in the boot time and response time (slower). The Music folder has been replaced with a "inode/x-corrupted file" presumably due to the password requirement.

I can provided the results of the diagnostics if that helps. 
Logged

mwillems

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 5233
  • "Linux Merit Badge" Recipient
Re: I can't see my Nas in my Raspberry. How to do it???
« Reply #11 on: August 31, 2016, 05:07:20 pm »

Thanks, Antonio, but for now I hope to figure it out with the forum help.

Your last point about needing  a password is where I need to look at, please. The QNAP requires one with a log-on.
I'm not sure what information about the QNAP 451 (only two Red 3 tb. run as Raid) would help?

I copied your fstab line into the code. It has made a change in the boot time and response time (slower). The Music folder has been replaced with a "inode/x-corrupted file" presumably due to the password requirement.

I can provided the results of the diagnostics if that helps.

You didn't mention that your shares required a password.  You need to supply the login credentials on the fstab entry like this:
Code: [Select]
//192.168.1.8/Multimedia /home/pi/Music cifs noauto,x-systemd.automount,username=myuser,password=mypassword 0 0

The user name is the user name you use to login to the NAS, not necessarily the user name of your pi user.
Logged

tsurkamp

  • Recent member
  • *
  • Posts: 15
Re: I can't see my Nas in my Raspberry. How to do it???
« Reply #12 on: September 06, 2016, 04:24:52 pm »

Ah, mwillems! You've done it again!

That was the magic I needed. Thank you for your help and patience.

It sounds great, seems very stable even in headless mode with gizmo.

I admit to be looking at the IdPi, but only because of its simplicity should this need an overhaul.

Thanks again!
Logged

mwillems

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 5233
  • "Linux Merit Badge" Recipient
Re: I can't see my Nas in my Raspberry. How to do it???
« Reply #13 on: September 06, 2016, 05:14:13 pm »

Ah, mwillems! You've done it again!

That was the magic I needed. Thank you for your help and patience.

It sounds great, seems very stable even in headless mode with gizmo.

I admit to be looking at the IdPi, but only because of its simplicity should this need an overhaul.

Thanks again!

Congrats!
Logged
Pages: [1]   Go Up