The problem still exists when the Lacie drive is disconnected but I haven't tried the safe mode. I would try that, but it sometimes doesn't happen for a day or two.
I ran the EtreCheck just in case you can tall me anything from the results.
EtreCheck version: 2.9.3 (253)
Report generated 2016-02-12 00:26:27
Download EtreCheck from http://etrecheck.com
Runtime 2:24
Performance: Excellent
Click the [Support] links for help with non-Apple products.
Click the [Details] links for more information about that line.
Problem: Computer is restarting
Hardware Information: ⓘ
iMac (24-inch, Early 2009)
[Technical Specifications] - [User Guide] - [Warranty & Service]
iMac - model: iMac9,1
1 2.93 GHz Intel Core 2 Duo CPU: 2-core
8 GB RAM Upgradeable - [Instructions]
BANK 0/DIMM0
4 GB DDR3 1067 MHz ok
BANK 1/DIMM0
4 GB DDR3 1067 MHz ok
Bluetooth: Old - Handoff/Airdrop2 not supported
Wireless: en1: 802.11 a/b/g/n
Video Information: ⓘ
NVIDIA GeForce GT 120 - VRAM: 256 MB
iMac 1920 x 1200
System Software: ⓘ
OS X Mavericks 10.9.5 (13F1603) - Time since boot: less than an hour
Disk Information: ⓘ
ST2000DX001-1CM164 disk0 : (2 TB) (Rotational)
EFI (disk0s1) <not mounted> : 210 MB
Macintosh HD (disk0s2) / : 2.00 TB (1.40 TB free)
Recovery HD (disk0s3) <not mounted> [Recovery]: 650 MB
OPTIARC DVD RW AD-5670S ()
USB Information: ⓘ
Apple Inc. Built-in iSight
Apple Inc. iPhone
Apple Computer, Inc. IR Receiver
Logitech USB Receiver
Logitech USB Receiver
Apple Inc. BRCM2046 Hub
Apple Inc. Bluetooth USB Host Controller
Firewire Information: ⓘ
LaCie Hard Drive Quadra 400mbit - 800mbit max
EFI (disk1s1) <not mounted> : 210 MB
LACIE (disk1s2) /Volumes/LACIE : 999.86 GB (11.71 GB free)
Gatekeeper: ⓘ
Mac App Store and identified developers
Kernel Extensions: ⓘ
/Library/Extensions
[loaded] com.Logitech.Control Center.HID Driver (3.9.1 - SDK 10.8) [Support]
/System/Library/Extensions
[not loaded] com.Belcarra.iokit.USBLAN_netpart (3.1.1 - SDK 10.6) [Support]
[not loaded] com.Belcarra.iokit.USBLAN_usbpart (3.1.1 - SDK 10.6) [Support]
[loaded] com.Cycling74.driver.Soundflower (1.5.2) [Support]
[loaded] com.Logitech.Unifying.HID Driver (1.3.0 - SDK 10.8) [Support]
[not loaded] com.RemoteControl.USBLAN.usbpart (3.1.1 - SDK 10.7) [Support]
[loaded] com.nvidia.CUDA (1.1.0) [Support]
[not loaded] com.silabs.driver.SiLabsUSBDriver (1.0.23) [Support]
/System/Library/Extensions/2.2.0/Belcarra.USBLAN_netpart.kext/Contents/Plug-Ins
[not loaded] com.belcarra.iokit.netpart.panther (1.6.3) [Support]
/System/Library/Extensions/2.2.0/Belcarra.USBLAN_usbpart.kext/Contents/Plug-Ins
[not loaded] com.belcarra.iokit.usbpart.panther (1.6.3) [Support]
/System/Library/Extensions/2.2.0/RemoteControl.USBLAN_usbpart.kext/Contents/Plu g-Ins
[not loaded] com.RemoteControl.USBLAN.panther (1.6.2) [Support]
Startup Items: ⓘ
HP IO: Path: /Library/StartupItems/HP IO
Startup items are obsolete in OS X Yosemite
System Launch Agents: ⓘ
[loaded] 145 Apple tasks
[running] 39 Apple tasks
System Launch Daemons: ⓘ
[loaded] 185 Apple tasks
[running] 64 Apple tasks
Launch Agents: ⓘ
[running] com.Logitech.Control Center.Daemon.plist [Support]
[loaded] com.adobe.CS4ServiceManager.plist [Support]
[running] com.epson.Epson_Low_Ink_Reminder.launcher.plist [Support]
[loaded] com.epson.esua.launcher.plist [Support]
[running] com.epson.eventmanager.agent.plist [Support]
[loaded] com.google.keystone.agent.plist [Support]
[loaded] com.nvidia.CUDASoftwareUpdate.plist [Support]
Launch Daemons: ⓘ
[loaded] com.adobe.fpsaud.plist [Support]
[loaded] com.google.keystone.daemon.plist [Support]
[loaded] com.nvidia.cuda.launcher.plist [Support]
User Launch Agents: ⓘ
[loaded] com.adobe.ARM.[...].plist [Support]
[failed] com.apple.CSConfigDotMacCert-@me.com-SharedServices.Agent.plist [Details]
[loaded] 2 Apple tasks
User Login Items: ⓘ
GrowlHelperApp UNKNOWN (missing value)
iTunesHelper UNKNOWN (missing value)
LazyMouseBG UNKNOWN (missing value)
Printer Pro Desktop UNKNOWN (missing value)
Moom Application (/Applications/Moom.app)
Dropbox UNKNOWN (missing value)
AdobeResourceSynchronizer Application (/Applications/Adobe Reader.app/Contents/Support/AdobeResourceSynchronizer.app)
SpeechSynthesisServer Application (/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks /SpeechSynthesis.framework/Versions/A/SpeechSynthesisServer.app)
Backup Scheduler for Time Machine Application (/Applications/Time Machine Backup Scheduler.app)
XtraFinder Application (/Applications/XtraFinder.app)
Other Apps: ⓘ
[running] 2BUA8C4S2C.com.agilebits.onepassword4-helper
[loaded] QA2G25RMZ4.com.wunderkinder.wunderlist-helper
[running] [0x0-0x30030].com.etresoft.EtreCheck
[running] [0x0-0x7007].com.microsoft.Word
[running] com.manytricks.Moom.32768
[running] com.microsoft.autoupdate.fba.44912
[running] com.microsoft.entourage.database_daemon.31888
[loaded] com.vinnov.TMHelper
[running] com.vinnov.Time-Machine-Scheduler.61632
[running] org.mozilla.firefox.4784
Internet Plug-ins: ⓘ
AdobePDFViewerNPAPI: Version: 11.0.14 - SDK 10.6 [Support]
Flash Player: Version: 20.0.0.306 - SDK 10.6 [Support]
AdobePDFViewer: Version: 11.0.14 - SDK 10.6 [Support]
LogMeInSafari32: Version: 1.0.530 [Support]
googletalkbrowserplugin: Version: 5.41.3.0 - SDK 10.8 [Support]
iPhotoPhotocast: Version: 7.0
QuickTime Plugin: Version: 7.7.3
LogMeInSafari64: Version: 1.0.530 [Support]
FlashPlayer-10.6: Version: 20.0.0.306 - SDK 10.6 [Support]
GarminGpsControl: Version: 4.0.3.0 Release - SDK 10.6 [Support]
Silverlight: Version: 5.1.10411.0 - SDK 10.6 [Support]
CouponPrinter-FireFox_v2: Version: Version 1.1.6 [Support]
LogMeIn: Version: 1.0.530 [Support]
Google Earth Web Plug-in: Version: 7.1 [Support]
LogitechHarmony: Version: 1.0.0.1 [Support]
Default Browser: Version: 537 - SDK 10.9
Flip4Mac WMV Plugin: Version: 2.4.1.4 [Support]
o1dbrowserplugin: Version: 5.41.3.0 - SDK 10.8 [Support]
JavaAppletPlugin: Version: 14.9.0 - SDK 10.7 Check version
OfficeLiveBrowserPlugin: Version: 12.3.6 [Support]
Safari Extensions: ⓘ
ZoomBySite
3rd Party Preference Panes: ⓘ
CUDA Preferences [Support]
Flash Player [Support]
Flip4Mac WMV [Support]
Logitech Control Center [Support]
Time Machine: ⓘ
Skip System Files: NO
Mobile backups: OFF
Auto backup: NO - Auto backup turned off
Volumes being backed up:
Macintosh HD: Disk size: 2.00 TB Disk used: 599.12 GB
Destinations:
Untitled 1 [Local]
Total size: 999.86 GB
Total number of backups: 75
Oldest backup: 7/11/13, 12:06 AM
Last backup: 2/11/16, 7:45 PM
Size of backup disk: Too small
Backup size 999.86 GB < (Disk used 599.12 GB X 3)
Top Processes by CPU: ⓘ
46% mds
17% mdworker(5)
2% fontd
2% WindowServer
2% firefox
Top Processes by Memory: ⓘ
648 MB kernel_task
418 MB firefox
295 MB iTunes
188 MB mds_stores
106 MB Microsoft Word
Virtual Memory Information: ⓘ
4.12 GB Free RAM
3.88 GB Used RAM (2.73 GB Cached)
0 B Swap Used
Diagnostics Information: ⓘ
Feb 12, 2016, 12:10:57 AM Self test - passed
Feb 11, 2016, 11:49:27 PM /Library/Logs/DiagnosticReports/Kernel_2016-02-11-234927_[redacted].panic [Details]
Feb 8, 2016, 04:33:59 AM /Library/Logs/DiagnosticReports/Kernel_2016-02-08-043359_[redacted].panic [Details]
Feb 4, 2016, 06:05:31 PM /Library/Logs/DiagnosticReports/Kernel_2016-02-04-180531_[redacted].panic [Details]
Jan 27, 2016, 08:18:32 PM /Library/Logs/DiagnosticReports/Kernel_2016-01-27-201832_[redacted].panic [Details]
Jan 26, 2016, 06:48:48 PM /Library/Logs/DiagnosticReports/Kernel_2016-01-26-184848_[redacted].panic [Details]