Madsonic: How to access NAS media files?

Need help? Post your questions here.

Madsonic: How to access NAS media files?

Unread postby laffytaffykidd » 08 Mar 2014, 11:53

Hey everyone, I have just set up madsonic and I am trying to get it to view my media files located on my raspberry pi's NAS.

The media location would be: \\192.168.1.xxx\media\EHDD01\RASPMusic

However, it says that the media could not be found... I am running Linux, not Windows.
laffytaffykidd
 
Posts: 8
Joined: 15 Feb 2014, 04:51
Has thanked: 0 time
Been thanked: 0 time

Re: Madsonic: How to access NAS media files?

Unread postby gurutech » 08 Mar 2014, 18:02

You need to mount that location via /etc/fstab, then use the path in fstab in your Madsonic media files path.
gurutech
Contributor
Contributor
 
Posts: 325
Joined: 02 Jan 2013, 04:56
Has thanked: 12 times
Been thanked: 131 times

Re: Madsonic: How to access NAS media files?

Unread postby laffytaffykidd » 13 Mar 2014, 13:20

Now what if my NAS is connected to another device?

In my etc/fstab file, what would I put for the device name? (i.e. /dev/sda1)
Since it is connected to my other device, it is mounted as /dev/sda1, but on this one, nothing is mounted directly
laffytaffykidd
 
Posts: 8
Joined: 15 Feb 2014, 04:51
Has thanked: 0 time
Been thanked: 0 time

Re: Madsonic: How to access NAS media files?

Unread postby gurutech » 13 Mar 2014, 14:31

Create a folder under the \mnt folder; call it "NAS" (or something similar).

Then within the /etc/fstab file, mount \\IPaddressOfNASDevice\ShareFolder to /mnt/NAS (or whatever you named the folder).

Type "sudo mount -a" after editing and saving your /etc/fstab file. If you get any error messages, please post, along with the line from the /etc/fstab file you are using.
gurutech
Contributor
Contributor
 
Posts: 325
Joined: 02 Jan 2013, 04:56
Has thanked: 12 times
Been thanked: 131 times

Re: Madsonic: How to access NAS media files?

Unread postby laffytaffykidd » 14 Mar 2014, 02:25

gurutech wrote:Create a folder under the \mnt folder; call it "NAS" (or something similar).

Then within the /etc/fstab file, mount \\IPaddressOfNASDevice\ShareFolder to /mnt/NAS (or whatever you named the folder).

Type "sudo mount -a" after editing and saving your /etc/fstab file. If you get any error messages, please post, along with the line from the /etc/fstab file you are using.



So I created a directory called:
Code: Select all
/mnt/localHDD


In my /etc/fstab file: I have
Code: Select all
//192.168.1.124/RASPNAS/media/Music    /mnt/localHDD   ntfs-3g defaults        0       0


I have also tried:
Code: Select all
//RASPNAS/media/Music    /mnt/localHDD   ntfs-3g defaults        0       0


However, I keep getting this error:
Code: Select all
pi@raspberrypi /mnt/localHDD $ sudo mount -a
ntfs-3g: Failed to access volume '//192.168.1.124/RASPNAS/media/Music': No such file or directory

ntfs-3g 2012.1.15AR.5 external FUSE 29 - Third Generation NTFS Driver
                Configuration type 7, XATTRS are on, POSIX ACLS are on

Copyright (C) 2005-2007 Yura Pakhuchiy
Copyright (C) 2006-2009 Szabolcs Szakacsits
Copyright (C) 2007-2011 Jean-Pierre Andre
Copyright (C) 2009 Erik Larsson

Usage:    ntfs-3g [-o option[,...]] <device|image_file> <mount_point>

Options:  ro (read-only mount), remove_hiberfile, uid=, gid=,
          umask=, fmask=, dmask=, streams_interface=.
          Please see the details in the manual (type: man ntfs-3g).

Example: ntfs-3g /dev/sda1 /mnt/windows

News, support and information:  http://tuxera.com


I have also tried flipping the forward slashes and backward slashes.. like \\IPaddress or //IPaddress, but no success
laffytaffykidd
 
Posts: 8
Joined: 15 Feb 2014, 04:51
Has thanked: 0 time
Been thanked: 0 time

Re: Madsonic: How to access NAS media files?

Unread postby gurutech » 14 Mar 2014, 19:30

Try:

//192.168.1.124/media/Music /mnt/localHDD ntfs-3g defaults 0 0

or

\\192.168.1.124\media\Music /mnt/localHDD ntfs-3g defaults 0 0
gurutech
Contributor
Contributor
 
Posts: 325
Joined: 02 Jan 2013, 04:56
Has thanked: 12 times
Been thanked: 131 times

Re: Madsonic: How to access NAS media files?

Unread postby laffytaffykidd » 15 Mar 2014, 00:04

gurutech wrote:Try:

//192.168.1.124/media/Music /mnt/localHDD ntfs-3g defaults 0 0

or

\\192.168.1.124\media\Music /mnt/localHDD ntfs-3g defaults 0 0



I have tried both of them and it still doesn't work :(
I believe Madsonic only accepts \\ because when I do //, it auto-corrects it to just one /
I think if this doesn't work, I will just have to get another external HDD and directly plug it into my Pi.
laffytaffykidd
 
Posts: 8
Joined: 15 Feb 2014, 04:51
Has thanked: 0 time
Been thanked: 0 time

Re: Madsonic: How to access NAS media files?

Unread postby gurutech » 16 Mar 2014, 06:57

OK, so let me recap...

You are running Madsonic on Linux, and your NAS is on your network. Can the NAS be accessed from any other machine? Is this machine Linux or Windows?

Does your NAS support NFS? You may need to install a different driver on the NAS to do this, but it should support it natively.

Try this format:

192.168.1.124:/media/Music /mnt/localHDD nfs

Keep in mind though, that the path on the IP address (the first path), must be entered as if you were in the root ( / ) folder, so if "media" is not right off root, you need to put the entire path in there.
gurutech
Contributor
Contributor
 
Posts: 325
Joined: 02 Jan 2013, 04:56
Has thanked: 12 times
Been thanked: 131 times

Re: Madsonic: How to access NAS media files?

Unread postby laffytaffykidd » 16 Mar 2014, 17:48

gurutech wrote:OK, so let me recap...

You are running Madsonic on Linux, and your NAS is on your network. Can the NAS be accessed from any other machine? Is this machine Linux or Windows?

Does your NAS support NFS? You may need to install a different driver on the NAS to do this, but it should support it natively.

Try this format:

192.168.1.124:/media/Music /mnt/localHDD nfs

Keep in mind though, that the path on the IP address (the first path), must be entered as if you were in the root ( / ) folder, so if "media" is not right off root, you need to put the entire path in there.


For my current setup, I have two Pi's with Raspbian:
- Raspberry Pi A
- Raspberry Pi B with connected External HDD (ntfs-3g)
- I have already installed ntfs-3g

Both of the Raspberry Pi's are connected via ethernet into the same switch.

I have MadSonic on my Raspberry Pi A, and I want to be able to access my External HDD that is attached to my Raspberry Pi B.
I know that the NAS connected to my Raspberry Pi B is working because I was able to access my music files using other computers in my household.
laffytaffykidd
 
Posts: 8
Joined: 15 Feb 2014, 04:51
Has thanked: 0 time
Been thanked: 0 time

Re: Madsonic: How to access NAS media files?

Unread postby gurutech » 17 Mar 2014, 20:09

How is your external HDD mounted on B? is it mounted as /dev/sdb1 ? The second column should be something like /mnt/foldername - that is what you want to put after the : in the first column on A.

See my example with the IP address and the :, followed by the path....
gurutech
Contributor
Contributor
 
Posts: 325
Joined: 02 Jan 2013, 04:56
Has thanked: 12 times
Been thanked: 131 times


Return to Support 5.x

Who is online

Users browsing this forum: Bing [Bot] and 1 guest