Questions and Answers :
Unix/Linux :
Trying to move boinc-client folder to a USB flash drive
Message board moderation
Author | Message |
---|---|
Sean Send message Joined: 10 Aug 00 Posts: 33 Credit: 125,775,158 RAC: 199 |
I've recently assembled a new system (i7-6700T, 32GB ram, M.2 SSD, Ubuntu 16.04 LTS) and I'm trying to relocate the boinc-client folder to a USB flash drive to reduce write activity on the SSD (I'd rather let it chew on an $8 flash drive than a $200 SSD). I have successfully moved the boinc-client folder to my home directory via the following:
sudo ln -s /home/me/boinc-client /var/lib/boinc-client
sudo ln -s /media/me/usbdrive/boinc-client /var/lib/boinc-client
|
Sean Send message Joined: 10 Aug 00 Posts: 33 Credit: 125,775,158 RAC: 199 |
So I've tried a different approach:
2. Copy the existing data to the new location = sudo cp -R /var/lib/boinc-client /media/me/usbdrive/boinc-client 3. Make sure permissions are set correctly = sudo chown boinc:boinc -R /media/me/usbdrive/boinc-client/* 4. Edit the /etc/default/boinc-client file to point to the new data directory = sudo gedit /etc/default/boinc-client and look for the entry that starts with # This is the data directory of the BOINC core client. Add an # in front of the BOINC_DIR="/var/lib/boinc-client" line and then add the following below that line BOINC_DIR="/media/me/usbdrive/boinc-client" and save the file then exit the text editor. 5. Start the boinc client = sudo service boinc-client start
|
Sean Send message Joined: 10 Aug 00 Posts: 33 Credit: 125,775,158 RAC: 199 |
Perhaps making a little progress figuring this out, but I'm still not sure why it isn't working the way I think it should... I went back to trying the symlink method:
symlink created pointing /var/lib/boinc-client to the boinc-client directory on the flash drive restart the boinc service and launch the manager result = boinc manager stuck on trying to connect to the client
Why is it trying to use my home directory? (edit: figured out it's just going with the current active directory)
Looking good so far... Launch the manager and success!
|
Sean Send message Joined: 10 Aug 00 Posts: 33 Credit: 125,775,158 RAC: 199 |
It's working now! For anyone who might be wondering:
Changed the Exec= line to "Exec=boincmgr -d /media/me/usbdrive/boinc-client" Made sure the boinc-client folder permissions were set "sudo chown -R boinc:boinc /media/me/usbdrive/boinc-client" Start the boinc service, launch the manager, and it's working with the data directory on the usb drive
|
©2024 University of California
SETI@home and Astropulse are funded by grants from the National Science Foundation, NASA, and donations from SETI@home volunteers. AstroPulse is funded in part by the NSF through grant AST-0307956.