Again, by default QuickBox will check the following locations for data, either /home or /(root) mounted installs. If you are planning on using /storage as a mount point then you will need to change several variables.
###Disk Status Widget
You can modify the QuickBox Disk Status widget to show /storage by altering your existing widget… which is either /home or /(root)… I can’t say as I am not on your system to know. Find these lines and change them to storage and since you’re using quotas it sounds like:
(the following lines are located at Line #48)
Note this section sudo /usr/sbin/repquota /storage|/bin/grep
as you will be changing either / or /home to /storage
####Change from:
if (file_exists('/install/.quota.lock')) {
$dftotal = shell_exec("sudo /usr/sbin/repquota /|/bin/grep ^".$username."|/usr/bin/awk '{printf \$4/1024/1024}'");
$dffree = shell_exec("sudo /usr/sbin/repquota /|/bin/grep ^".$username."|/usr/bin/awk '{printf (\$4-\$3)/1024/1024}'");
$dfused = shell_exec("sudo /usr/sbin/repquota /|/bin/grep ^".$username."|/usr/bin/awk '{printf \$3/1024/1024}'");
$perused = sprintf('%1.0f', $dfused / $dftotal * 100);
####Change to:
if (file_exists('/install/.quota.lock')) {
$dftotal = shell_exec("sudo /usr/sbin/repquota /storage|/bin/grep ^".$username."|/usr/bin/awk '{printf \$4/1024/1024}'");
$dffree = shell_exec("sudo /usr/sbin/repquota /storage|/bin/grep ^".$username."|/usr/bin/awk '{printf (\$4-\$3)/1024/1024}'");
$dfused = shell_exec("sudo /usr/sbin/repquota /storage|/bin/grep ^".$username."|/usr/bin/awk '{printf \$3/1024/1024}'");
$perused = sprintf('%1.0f', $dfused / $dftotal * 100);
###RUTorrent Diskspace Plugin
You will need to modify also the mount point within the diskspace plugin for ruTorrent as it has no way of knowing custom mount points outside of the traditional /home and /(root) - this should only apply if you have quotas installed. To do this, you will need to adjust some lines as you did with the Disk Status widget.
(the following lines are located at Line #25)
Again, note this section /usr/bin/sudo /usr/sbin/repquota -u /storage|/bin/grep
as you will be changing either / or /home to /storage
####Change from:
$total = shell_exec("/usr/bin/sudo /usr/sbin/repquota -u /home | /bin/grep ^".$quotaUser." | /usr/bin/awk '{printf $4*1024}'");
$free = shell_exec("/usr/bin/sudo /usr/sbin/repquota -u /home | /bin/grep ^".$quotaUser." | /usr/bin/awk '{printf ($4-$3)*1024}'");
####Change to:
$total = shell_exec("/usr/bin/sudo /usr/sbin/repquota -u /storage| /bin/grep ^".$quotaUser." | /usr/bin/awk '{printf $4*1024}'");
$free = shell_exec("/usr/bin/sudo /usr/sbin/repquota -u /storage| /bin/grep ^".$quotaUser." | /usr/bin/awk '{printf ($4-$3)*1024}'");
However, there are some things to note:
If this is the case then you may also need to adjust the file at: /srv/rutorrent/conf/users/USERNAME/config.php
Change the line towards the bottom:
$diskuser = "/home";
to…
$diskuser = "/storage";
I don’t understand what you are implying here. Why would you attempt to change the FTP / HTTP directory? It’s not being read by your custom mount point… it’s being read by the web server at the location specified in the apache configuration. This location is /srv/rutorrent
and /srv/rutorrent/home
.
Additionally, are you actually storing the data in /storage/USERNAME
?
No, it is known to have issues. Especially due to the fact that DivX playback is now no longer supported in most browsers due to security concerns. I would advise using either Plex or the soon to be included Subsonic to perform your streaming. In my opinion that plugin is a complete waste and may more than likely be phased out very soon from our own repositories.