Madsonic: How to access NAS media files?
-
- Posts: 8
- Joined: 15 Feb 2014, 04:51
- Has thanked: 0
- Been thanked: 0
Madsonic: How to access NAS media files?
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.
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.
-
- 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?
You need to mount that location via /etc/fstab, then use the path in fstab in your Madsonic media files path.
-
- Posts: 8
- Joined: 15 Feb 2014, 04:51
- Has thanked: 0
- Been thanked: 0
Re: Madsonic: How to access NAS media files?
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
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
-
- 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?
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.
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.
-
- Posts: 8
- Joined: 15 Feb 2014, 04:51
- Has thanked: 0
- Been thanked: 0
Re: Madsonic: How to access NAS media files?
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
Code: Select all
//RASPNAS/media/Music /mnt/localHDD ntfs-3g defaults 0 0
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
-
- Posts: 8
- Joined: 15 Feb 2014, 04:51
- Has thanked: 0
- Been thanked: 0
Re: Madsonic: How to access NAS media files?
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.
-
- 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?
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.
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.
-
- Posts: 8
- Joined: 15 Feb 2014, 04:51
- Has thanked: 0
- Been thanked: 0
Re: Madsonic: How to access NAS media files?
For my current setup, I have two Pi's with Raspbian: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.
- 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.
-
- 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?
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....
See my example with the IP address and the :, followed by the path....