Kevin Horton
Guru
- Joined
- Dec 2, 2015
- Messages
- 730
Let's first sort out the fact that the script is trying to also work with your boot drive. Find the first line in "sub get_hd_list", which should be somewhere around line 509 of PID_fan_control.pl. The line should be something like
Replace "Kingston" with "SanDisk" in that line so it will recognize that it should ignore your SanDisk boot drive.
Kill and restart the script after you have edited it, or restart the NAS.
I honestly don't think this change will stop the script from terminating, but it will stop it from trying to work with the boot drive, so there is a chance that will fix the problem. If the crashes continue, let me know and we'll need to do some more troubleshooting.
I will be on the road for the next four days, so won't have much free time to work this issue. But I should be available again on Tuesday.
Code:
my $disk_list = `camcontrol devlist | grep -v "SSD" | grep -v "Verbatim" | grep -v "Kingston" | grep -v "Elements" | sed 's:.*(::;s:).*::;s:,pass[0-9]*::;s:pass[0-9]*,::' | egrep '^[a]*da[0-9]+\$' | tr '\012' ' '`;
Replace "Kingston" with "SanDisk" in that line so it will recognize that it should ignore your SanDisk boot drive.
Kill and restart the script after you have edited it, or restart the NAS.
I honestly don't think this change will stop the script from terminating, but it will stop it from trying to work with the boot drive, so there is a chance that will fix the problem. If the crashes continue, let me know and we'll need to do some more troubleshooting.
I will be on the road for the next four days, so won't have much free time to work this issue. But I should be available again on Tuesday.