LinHES Forums http://forum.linhes.org/ |
|
Getting Music from Network Drive? http://forum.linhes.org/viewtopic.php?f=5&t=13301 |
Page 1 of 2 |
Author: | Too Many Secrets [ Thu Jan 04, 2007 3:31 pm ] |
Post subject: | Getting Music from Network Drive? |
<Linux Noobe question alert!> I have a WD Network HDD that I've been keeping my mp3s on. Works great! How can I access this drive from myth to play music? (I've googled, but don't even know what I'm really looking for...) (Answer me like I'm a five month old linux noob, please?) ![]() |
Author: | slowtolearn [ Thu Jan 04, 2007 4:08 pm ] |
Post subject: | |
You would need to mount the filesystem of the WD Network HDD to your Myth box(en) to access files on it. Should be something along the lines of Code: mkdir <directory on your Myth box> Then you would have to change the path in your MythMusic settings to point to <directory on your Myth box>.mount -t cifs <WD Network HDD name/IP address>:<Path to files> <directory on your Myth box> You may need to Code: modprobe cifs to get CIFS support.
I haven't played with CIFS so I may be missing something, but that should get you started. man mount for more information, and note that the WD Network HDD utilizes CIFS. |
Author: | Too Many Secrets [ Thu Jan 04, 2007 7:19 pm ] |
Post subject: | |
Thanks slow2. You got me started. I was able to make the directory "mp3". However I didn't get much further. I looked through the man page but it was a bit overwhelming. I wasn't able to 'get' much out of it. Here's where I'm at. I type in the: Code: mount -t cifs <WD Network HDD name/IP address>:<Path to files> <directory on your Myth box> line and I getCode: does not begin with \\ or //
No ip address specified and hostname not found. I must have the slashes or something wrong. I've tried \\ and // and : that was in your example above. I've checked the ip address and it's correct, the device name is just the default WD-NetCenter. I checked the spelling and caps. on the drive the directory is 'Shared Files" I've tried this with the space and an underscore instead of the space, is there something else? I must be missing something real simple. Any idea's appreciated... TIA |
Author: | slowtolearn [ Thu Jan 04, 2007 7:43 pm ] |
Post subject: | |
OK, let's break this down into the individual parts: What is the IP address of the WD-NetCenter? What is the exact name of the directory that contains your MP3s? In my example the variables (names, etc that you would need to provide) are enclosed in < >, so you wouldn't type those. For example, let's say your WD-NetCenter's IP address is 10.0.0.50, the directory that contains your MP3s is "Shared Files" (literally, with the space), and the directory you created on your Myth box is /mp3. The mount command would be something along the lines of: Code: mount -t cifs 10.0.0.50:/Shared Files /mp3 You may run into problems with "Shared Files" because of the space. If so, try Code: mount -t cifs 10.0.0.50:"/Shared Files" /mp3 and other variants.
*nix systems rarely play nice with spaces in file/directory names. |
Author: | Mephi [ Fri Jan 05, 2007 4:09 am ] |
Post subject: | |
You could also just mount the /myth/music directory, which would mean need to redirect myth, but that'll only work if there's nothing in the music directory already. I use the command: Code: mount -t smbfs -o username=mythtv,password=mythtv //mephi-linux/mp3 /myth/music/
For this, but as you're using cifs, this wont work... |
Author: | mythedoff [ Fri Jan 05, 2007 2:56 pm ] |
Post subject: | |
Don't those suggestions get killed on reboot? I added a line in /etc/fstab //machineIPorName/share /myth/music smbfs credentials=/home/mythtv/.smbpasswd 0 0 The above two lines should be one but broke in this editor. |
Author: | Mort322 [ Fri Jan 05, 2007 5:07 pm ] |
Post subject: | |
I just add the following line in fstab I have all my movies stored on a network file server, works great dvds and all. and change the path in myth of course. /etc/fstab Code: //192.168.15.3/movies /mnt/video smbfs username=myusername,password=mypassword 0 0
|
Author: | Too Many Secrets [ Fri Jan 05, 2007 8:13 pm ] |
Post subject: | |
slowtolearn wrote: OK, let's break this down into the individual parts: What is the IP address of the WD-NetCenter? What is the exact name of the directory that contains your MP3s? In my example the variables (names, etc that you would need to provide) are enclosed in < >, so you wouldn't type those. For example, let's say your WD-NetCenter's IP address is 10.0.0.50, the directory that contains your MP3s is "Shared Files" (literally, with the space), and the directory you created on your Myth box is /mp3. The mount command would be something along the lines of: Code: mount -t cifs 10.0.0.50:/Shared Files /mp3 You may run into problems with "Shared Files" because of the space. If so, try Code: mount -t cifs 10.0.0.50:"/Shared Files" /mp3 and other variants.*nix systems rarely play nice with spaces in file/directory names. HEY! Got music! Here's what I did... First changed the shared directory to "mythtv" to eliminate the [space] problem with "Shared Files". then populated the new directory with an mp3 to sample. finally did; Code: mount -t cifs 192.168.1.6:/mythtv /mp3
it asked for PASSWORD, I typed it in, it gave an error "SETFSUnixInfo - -5" I checked the /mp3 directory and played the mp3 file ![]() My last question is what do I need to do to mount this upon start-up? PS. This place rocks! |
Author: | slowtolearn [ Fri Jan 05, 2007 8:37 pm ] |
Post subject: | |
Too Many Secrets wrote: First changed the shared directory to "mythtv" to eliminate the [space] problem with "Shared Files". You could have simply added an underscore (_) between Shared and Files, but that is neither here nor there... Too Many Secrets wrote: then populated the new directory with an mp3 to sample. finally did; Code: mount -t cifs 192.168.1.6:/mythtv /mp3 it asked for PASSWORD, I typed it in, it gave an error "SETFSUnixInfo - -5" This is where I'm guessing we may run into a problem. I don't know the particulars to CIFS, so I don't know if the password prompt will appear each and every time. And I have no idea what Quote: "SETFSUnixInfo - -5" means...Too Many Secrets wrote: My last question is what do I need to do to mount this upon start-up? Try unmounting the network unit with Code: umount /mp3
Then use the same mount command you used previously (mount -t cifs 192.168.1.6:/mythtv /mp3). Are you still prompted for a password? |
Author: | Too Many Secrets [ Fri Jan 05, 2007 8:44 pm ] |
Post subject: | |
slowtolearn wrote: Too Many Secrets wrote: First changed the shared directory to "mythtv" to eliminate the [space] problem with "Shared Files". You could have simply added an underscore (_) between Shared and Files, but that is neither here nor there... Too Many Secrets wrote: then populated the new directory with an mp3 to sample. finally did; Code: mount -t cifs 192.168.1.6:/mythtv /mp3 it asked for PASSWORD, I typed it in, it gave an error "SETFSUnixInfo - -5" This is where I'm guessing we may run into a problem. I don't know the particulars to CIFS, so I don't know if the password prompt will appear each and every time. And I have no idea what Quote: "SETFSUnixInfo - -5" means...Too Many Secrets wrote: My last question is what do I need to do to mount this upon start-up? Try unmounting the network unit with Code: umount /mp3 Then use the same mount command you used previously (mount -t cifs 192.168.1.6:/mythtv /mp3). Are you still prompted for a password? Thanks for the tip on the "_" lol I should have tried that... I tried to unmount but I don't know if it worked as I still could see the mp3 file in the /mp3 directory. However I did re-mount and again was asked for a password. |
Author: | slowtolearn [ Fri Jan 05, 2007 8:51 pm ] |
Post subject: | |
Too Many Secrets wrote: I tried to unmount but I don't know if it worked as I still could see the mp3 file in the /mp3 directory.
OK, give me this (sorry, this would probably go a lot faster if I knew CIFS!): Code: umount /mp3
df -h mount -t cifs 192.168.1.6:/mythtv /mp3 df -h Need all the output... |
Author: | Too Many Secrets [ Fri Jan 05, 2007 9:11 pm ] |
Post subject: | |
slowtolearn wrote: Too Many Secrets wrote: I tried to unmount but I don't know if it worked as I still could see the mp3 file in the /mp3 directory. OK, give me this (sorry, this would probably go a lot faster if I knew CIFS!): Code: umount /mp3 df -h mount -t cifs 192.168.1.6:/mythtv /mp3 df -h Need all the output... OK I'm typing this out... df -h Quote: /dev/hda1 4.7G 2.5G 1.9G 57% / /dev/hda3 292G 285G 7.2G 98% /myth after mount it's the above plus: Quote: //192.168.1.6/mythtv 466G 42G 424G 9% /mp3
|
Author: | slowtolearn [ Fri Jan 05, 2007 9:28 pm ] |
Post subject: | |
Good, you have another 466Gb there, so you are hitting the network disk. OK, then you may want to try Mort322's idea with Code: mount -t cifs 10.0.0.50:/Shared Files /mp3 password=mypassword to see if that gets you past having to enter the password. If you can't get past that then you'll have a problem with automating the mount (mounting during a reboot). Quite honestly I don't know if password= is a valid option for CIFS mounts...
|
Author: | Too Many Secrets [ Fri Jan 05, 2007 9:34 pm ] |
Post subject: | |
slowtolearn wrote: Good, you have another 466Gb there, so you are hitting the network disk.
OK, then you may want to try Mort322's idea with Code: mount -t cifs 10.0.0.50:/Shared Files /mp3 password=mypassword to see if that gets you past having to enter the password. If you can't get past that then you'll have a problem with automating the mount (mounting during a reboot). Quite honestly I don't know if password= is a valid option for CIFS mounts...No go. It pops the short edition of the man page... I'm googling for more info. Once I find the correct option for the password, do I add to the fstab? |
Author: | slowtolearn [ Fri Jan 05, 2007 9:43 pm ] |
Post subject: | |
Too Many Secrets wrote: No go. It pops the short edition of the man page... I'm googling for more info. Once I find the correct option for the password, do I add to the fstab?
I don't like to use fstab for remote mounts, I prefer to create a file within the /etc/rc5.d directory to handle that for me (old Sys V days, can't get past them!). Be sure to make it executable if you go this route. |
Page 1 of 2 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |