How To: Host Subsonic/Madsonic on Linux with music on Window

Tutorials, tips and tricks.

Moderator: moderators

How To: Host Subsonic/Madsonic on Linux with music on Window

Postby gurutech » Sun Nov 11, 2012 2:17 am

I may be one of the few who run their Subsonic on a Linux box, but keep my music and other media on a Windows machine, and this of course comes with its own set of problems. Here's how I have gotten around two of the bigger problems, which manifests itself as Subsonic on the Linux box not being able to access the media files on Windows (even though you can go to the path directly from Terminal or the Linux file browser.)

First, increase the IRPStacksize on the Windows machine to the maximum, which I believe for Win7 the Decimal value is 50 (Hex 32). Instructions can be found here: http://www.howtonetworking.com/winissue ... cksize.htm Be sure to reboot the Win7 computer after making this change.

Next, after the Win7 machine comes back online, go to your Linux box and type "mount -a" to "remount" the mapped drives as defined in your /etc/fstab file.

Last, rescan the media library, and all should be good.

If you still cannot access your media library, you may have an additional issue, which I have worked around by:

Creating a NEW mount point on the Linux box and editing /etc/fstab to mount the Windows share to this new mount point. Run "mount -a" and then CLEAN the Subsonic database, then change the media folder in SS and save, and last, rescan the library.

Some additional details about my setup:
All of my media folders mount to different locations under /media. So I have "/media/music", "/media/videos", etc... And this is how my media folder entries are in Subsonic. As soon as my scan is complete, I will try adding one of these as \\Win7PC\Sharename instead of /media/music to see if I can bypass the two issues above. I'll post back with results.
Image
gurutech
 
Posts: 492
Joined: Sun Jan 15, 2012 9:56 pm

Re: How To: Host Subsonic/Madsonic on Linux with music on Wi

Postby gurutech » Sat Dec 15, 2012 3:25 am

Update: I finally figured out why I kept having this problem with the IRPStack Size on my Win7 machine (and Win8 when I upgraded!)...

The problem was that I was mounting several folders on Linux to the same share on Windows (as noted below) :
/media/music - maps to - \\winserver\shared\music
/media/movies - maps to \\winserver\shared\movies
etc...
And then I mapped SS to each of these folders under the "Media Folders" setting.

I changed this to map/mount drives as follows:
/media/media - maps to \\winserver\shared\media
(just ONE mapping!)
And under Subsonic, I now have multiple folders, /media/media/music; /media/media/movies; etc...

A lot less OS overhead, and no more errors.
Image
gurutech
 
Posts: 492
Joined: Sun Jan 15, 2012 9:56 pm


Return to Tutorials

Who is online

Users browsing this forum: No registered users and 13 guests