Madsonic: How to access NAS media files?

Need help? Post your questions here.
laffytaffykidd
Posts: 8
Joined: 15 Feb 2014, 04:51
Has thanked: 0
Been thanked: 0

Madsonic: How to access NAS media files?

Unread post by laffytaffykidd »

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.
gurutech
Contributor
Contributor
Posts: 323
Joined: 02 Jan 2013, 04:56
Has thanked: 11 times
Been thanked: 105 times

Re: Madsonic: How to access NAS media files?

Unread post by gurutech »

You need to mount that location via /etc/fstab, then use the path in fstab in your Madsonic media files path.
These users thanked the author gurutech for the post:
Madsonic
Rating: 7.69%
laffytaffykidd
Posts: 8
Joined: 15 Feb 2014, 04:51
Has thanked: 0
Been thanked: 0

Re: Madsonic: How to access NAS media files?

Unread post by laffytaffykidd »

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
gurutech
Contributor
Contributor
Posts: 323
Joined: 02 Jan 2013, 04:56
Has thanked: 11 times
Been thanked: 105 times

Re: Madsonic: How to access NAS media files?

Unread post by gurutech »

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.
laffytaffykidd
Posts: 8
Joined: 15 Feb 2014, 04:51
Has thanked: 0
Been thanked: 0

Re: Madsonic: How to access NAS media files?

Unread post by laffytaffykidd »

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
gurutech
Contributor
Contributor
Posts: 323
Joined: 02 Jan 2013, 04:56
Has thanked: 11 times
Been thanked: 105 times

Re: Madsonic: How to access NAS media files?

Unread post by gurutech »

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
laffytaffykidd
Posts: 8
Joined: 15 Feb 2014, 04:51
Has thanked: 0
Been thanked: 0

Re: Madsonic: How to access NAS media files?

Unread post by laffytaffykidd »

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.
gurutech
Contributor
Contributor
Posts: 323
Joined: 02 Jan 2013, 04:56
Has thanked: 11 times
Been thanked: 105 times

Re: Madsonic: How to access NAS media files?

Unread post by gurutech »

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.
laffytaffykidd
Posts: 8
Joined: 15 Feb 2014, 04:51
Has thanked: 0
Been thanked: 0

Re: Madsonic: How to access NAS media files?

Unread post by laffytaffykidd »

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.
gurutech
Contributor
Contributor
Posts: 323
Joined: 02 Jan 2013, 04:56
Has thanked: 11 times
Been thanked: 105 times

Re: Madsonic: How to access NAS media files?

Unread post by gurutech »

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....
Post Reply