XBMC Community Forum
2 XBMC PCs and 1 Database on the shared NAS - Printable Version

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Help and Support (/forumdisplay.php?fid=33)
+--- Forum: XBMC General Help and Support (/forumdisplay.php?fid=111)
+---- Forum: Windows support (/forumdisplay.php?fid=59)
+---- Thread: 2 XBMC PCs and 1 Database on the shared NAS (/showthread.php?tid=70603)



- RockDawg - 2011-01-11 14:36

ti_gusus Wrote:Anyone Confused?

Now my problem , Each time I need to reboot, the shortcut is not created. Have to "Mount -a" each time
What wrong ??
This is the last item on my list to get it work at 100%

Please help.
Thank

I'm no expert on things Linux but I did something similar to what you did. Make sure smbfs is installed and then I just added the following line to /etc/fstab (obviously adjust the paths to what yours are):

Code:
//192.168.1.20/disk7/xbmc_thumbs/Thumbnails  /home/kevin/.xbmc/userdata/Thumbnails   cifs  credentials=/home/kevin/.credentials,_netdev,file_mode=0777,dir_mode=0777 0 0

/home/kevin/.credentials is a file I created with the username and password for the network share where my thumbs are. You can probably eliminate that if yours doesn't require a username or password. The file contents goes like:

Code:
username=yourusername
password=yourpassword

I don't remember exactly what they do, but I remember that the "file_mode=0777,dir_mode=0777" portion was critical to getting it to work for me.

That entry in /etc/fstab is what recreates the mount on each boot. Like I said, just make sure you already have smbfs installed. After that it worked great for me. Good luck!


- zosky - 2011-01-11 16:00

You are missing 2numbers at the end of the line. Something like 0 0. One tells the system to mount it on boot, the other is to indicate if it should be checked for errors. Don't just put 0 0 at the end. Google fstab and find the proper description.


- RockDawg - 2011-01-11 16:17

Yah, I missed that in his post. You can see the two zeroes at the end on the line I posted. Although according to wikipedia it doesn't have anything to do with mount on boot. It says the first number is "dump-freq" and the second is "pass-num" and here is what it says about them:

Quote:dump-freq adjusts the archiving schedule for the partition (used by dump).

pass-num Controls the order in which fsck checks the device/partition for errors at boot time. The root device should be 1. Other partitions should be either 2 (to check after root) or 0 (to disable checking for that partition altogether).



- zosky - 2011-01-11 16:27

oi, ooops. sorry. its not the 2 numbers.
its the options string before that...
it needs to include auto (ie auto-mount)

directio,iocharset=utf8,noacl,noperm,nosetuids,rw,auto


- RockDawg - 2011-01-11 20:10

zosky - Please don't take me the wrong way. I'm not setting out to correct you. I don't know much about Linux and it was quite a while ago when I was going through this myself and haven't had to touch it since so I forgot most of it. This post just seemed like a good reason to refresh myself on it while trying to help out ti_gusus.

Anyway, according to what I read, auto is the default mount option so it doesn't need to be specified. As you can see in the fstab entry I posted earlier, it doesn't include the auto option and it auto mounts on every boot.


- myrison - 2011-01-14 01:41

zosky Wrote:i through about doing this too, but i'm worried about seek time & how it would impact the UI when scrolling through large lists (~1k movies)... thats why i've kept the cache local to each box & setup cron to rSync @hourly (per my last post).

when you get this working, would you please let me know if there's any merit to my concerns

cheers
~z

I've done this on several different (Win & Linux) machines that all connect back to a shared Thumbnail folder on a Windows server. There are no concerns with speed, particularly once you've converted everything to DDS images. Using DDS, I get instantaneous switching of fanart and thumbs on a Acer Revo 1600 (hardwired and using Gigabit ethernet). If you haven't read about DDS images yet, search for it on the forums. If you're using a modest CPU platform like the Revos, it makes a gigantic difference in fanart load times.


- myrison - 2011-01-14 01:44

ti_gusus Wrote:Anyone Confused?

Now my problem , Each time I need to reboot, the shortcut is not created. Have to "Mount -a" each time
What wrong ??
This is the last item on my list to get it work at 100%

Please help.
Thank

If you haven't read this guide already, check it out. I've followed this exactly several times and it always does the trick.


- colbert - 2011-01-14 02:54

Well, I have wiped the MySQL database and readded, followed this: http://lifehacker.com/5634515/how-to-synchronize-your-xbmc-media-center-across-every-room-in-the-house even and any time I create the database, user, get it going... I check the show databases and still missing all the tables. Confused

edit: I did post a separate thread as well if any log output is needed that could help, it's here: http://forum.xbmc.org/showthread.php?tid=90233


- kri kri - 2011-01-14 04:53

^^^^^

Same thing is happening to me.


- lestat1977uk - 2011-01-14 12:52

Been using this method for awhile now and works brilliantly! One question thou, will MS SQL 2008 ever been supported?