diff -urN rtorrent-0.8.4-orig/src/core/download_list.cc rtorrent-0.8.4/src/core/download_list.cc
--- rtorrent-0.8.4-orig/src/core/download_list.cc	2008-11-18 10:07:15.000000000 -0500
+++ rtorrent-0.8.4/src/core/download_list.cc	2009-06-23 00:39:14.000000000 -0400
@@ -61,7 +61,7 @@
 #include "download.h"
 #include "download_list.h"
 #include "download_store.h"
-
+#include "syslog.h"
 namespace core {
 
 inline void
@@ -288,7 +288,7 @@
 void
 DownloadList::resume(Download* download, int flags) {
   check_contains(download);
-
+syslog(LOG_ERR, "resume");
   try {
 
     if (download->download()->is_active())
@@ -344,6 +344,8 @@
     // Update the priority to ensure it has the correct
     // seeding/unfinished modifiers.
     download->set_priority(download->priority());
+syslog(LOG_ERR, "start2");	
+control->core()->push_log("Disk for download is preparing, please wait.");
     download->download()->start(download->resume_flags());
 
     download->set_resume_flags(~uint32_t());
@@ -421,7 +423,7 @@
 void
 DownloadList::hash_done(Download* download) {
   check_contains(download);
-
+syslog(LOG_ERR, "hash done");
   if (download->is_hash_checking() || download->is_active())
     throw torrent::internal_error("DownloadList::hash_done(...) download in invalid state.");
 

diff -urN rtorrent-0.8.4-orig/src/core/manager.cc rtorrent-0.8.4/src/core/manager.cc
--- rtorrent-0.8.4-orig/src/core/manager.cc	2008-11-18 10:06:32.000000000 -0500
+++ rtorrent-0.8.4/src/core/manager.cc	2009-06-24 03:13:20.000000000 -0400
@@ -152,8 +152,12 @@
 
 void
 Manager::push_log(const char* msg) {
+//FILE* fp 
   m_logImportant.push_front(msg);
   m_logComplete.push_front(msg);
+//  fp = fopen("/tmp/rtorrent_log", "w");
+//  fwrite(msg, 1, strlen(msg),  fp);
+//  fclose(fp);
 }
 
 Manager::Manager() :

diff -urN rtorrent-0.8.4-orig/src/main.cc rtorrent-0.8.4/src/main.cc
--- rtorrent-0.8.4-orig/src/main.cc	2008-11-17 13:18:14.000000000 -0500
+++ rtorrent-0.8.4/src/main.cc	2009-06-23 02:14:04.000000000 -0400
@@ -44,7 +44,8 @@
 #include <torrent/torrent.h>
 #include <torrent/exceptions.h>
 #include <rak/functional.h>
-
+#include <rak/file_stat.h>
+#include <rak/fs_stat.h>
 #ifdef USE_EXECINFO
 #include <execinfo.h>
 #endif
@@ -147,6 +148,9 @@
 main(int argc, char** argv) {
   try {
 
+	::mkdir("/mnt/usb_sda1/downloads", 0777);
+	::mkdir("/mnt/usb_sda1/downloads/.session", 0777);
+	::mkdir("/mnt/usb_sda1/torrent", 0777);
     // Temporary.
     setlocale(LC_ALL, "");
 
@@ -298,7 +302,7 @@
     rak::priority_queue_perform(&taskScheduler, cachedTime);
 
     load_arg_torrents(control, argv + firstArg, argv + argc);
-
+//system("xmlrpc 127.0.0.1 execute_log /mnt/usb_sda1/log");
     // Make sure we update the display before any scheduled tasks can
     // run, so that loading of torrents doesn't look like it hangs on
     // startup.

