Moving BOINC to a new OS installation on Linux Mint.

Message boards : Questions and problems : Moving BOINC to a new OS installation on Linux Mint.
Message board moderation

To post messages, you must log in.

AuthorMessage
P A Gulley

Send message
Joined: 18 Jul 17
Posts: 6
United States
Message 80144 - Posted: 13 Aug 2017, 3:25:58 UTC

I'd like to move my BOINC installation, and the progress on it, to a new installation on another hard drive.

I've reinstalled my OS, with the same user name, and computer name, on another hard drive, as I think my current drive may be failing.

I'd like my new installation to be recognized as the same computer by the servers, and be credited as such, and the chart of the host average and host total in BOINC Manager to continue from where the other installation left off.

BOINC Manager says it is version 7.2.42 (x86).
I'm running it on Linux Mint 17.3 32-bit Cinnamon.

I do not recall how I installed it. I managed to get it installed, and promptly forgot just about everything I did to accomplish that.

The work units appear to be running under a different user name than my own, named "boinc".

A thread about a Windows XP installation
https://boinc.berkeley.edu/dev/forum_thread.php?id=7150
basically said that you could just move the data directory to the new drive, and then reinstall BOINC.
Is it similar on Linux?

How do I find out how BOINC is presently installed? How do I move the relevant parts of my present installation to the other drive?
ID: 80144 · Report as offensive
Juha
Volunteer developer
Volunteer tester
Help desk expert

Send message
Joined: 20 Nov 12
Posts: 801
Finland
Message 80162 - Posted: 13 Aug 2017, 19:58:43 UTC - in response to Message 80144.  
Last modified: 13 Aug 2017, 19:58:58 UTC

You probably installed it with package manager (Synaptic). You can check with the package manager if "boinc-client" is installed, or you can check if the client is running as service with "service boinc-client status" or can check if "/var/lib/boinc-client" exists.

Assuming it was installed with package manager then:

Copying BOINC's data directory to the new disk is easiest to do before you install BOINC on the new OS.

First, boot to the old OS.
Uninstall BOINC (boinc-client) using package manager.
Boot to the new OS.
Open file manager and make sure the old disk is mounted (has eject sign next to it).
Open Terminal.
Run the following commands:
sudo cp -a /media/your-account/partition-name/var/lib/boinc-client /var/lib/boinc-client
sudo chown -hR boinc:boinc /var/lib/boinc-client
Install BOINC with package manager.

I haven't actually tested these instructions. Proceed with caution.

Uninstalling BOINC from the old OS is so that if you someday need to boot into it BOINC will not run there. If it does it'll just make a mess.
ID: 80162 · Report as offensive
P A Gulley

Send message
Joined: 18 Jul 17
Posts: 6
United States
Message 80163 - Posted: 14 Aug 2017, 1:37:53 UTC - in response to Message 80162.  

I checked in Synaptic, for "boinc", and it shows "boinc-client", "boinc-manager", and "libboinc7" are installed. I suppose I did install it using the package manager. I wasn't sure about that, I know I had seen packages online, thought I may have used one of those. Probably not.

The directory "/var/lib/boinc-client" does exist.

As for being careful, I'm not entirely sure how to be careful, in this case.

The command "service boinc-client status" brought up:

 * Status of BOINC core client: running
 * Scheduling of BOINC core client: 1558
pid 1558's current scheduling policy: SCHED_OTHER
pid 1558's current scheduling priority: 0
 * Scheduling of BOINC core client's children: 28222 28290 
pid 28222's current scheduling policy: SCHED_BATCH
pid 28222's current scheduling priority: 0
pid 28290's current scheduling policy: SCHED_BATCH
pid 28290's current scheduling priority: 0
 * OOM killer status for BOINC core client:
PID 1558: adj 0
, score 
1

PID 28222: adj 0
, score 
5

PID 28290: adj 0
, score 
7

ID: 80163 · Report as offensive
Juha
Volunteer developer
Volunteer tester
Help desk expert

Send message
Joined: 20 Nov 12
Posts: 801
Finland
Message 80182 - Posted: 14 Aug 2017, 20:02:37 UTC - in response to Message 80163.  

Ok, I think you can proceed with the instructions. You of course need to replace "your-account" with the name of your account and "partition-name" with the name of the partition holding the old OS. The partition name may be some long string of numbers and letters.
ID: 80182 · Report as offensive
P A Gulley

Send message
Joined: 18 Jul 17
Posts: 6
United States
Message 80294 - Posted: 18 Aug 2017, 3:05:41 UTC - in response to Message 80182.  

I have attempted to follow the instructions given, but have hit a snag. I have stopped at this point.
When I ran the command
sudo chown -hR boinc:boinc /var/lib/boinc-client
I got the response
chown: invalid user: ‘boinc:boinc’
and I have not proceeded past that point.

What should I do now?
ID: 80294 · Report as offensive
Juha
Volunteer developer
Volunteer tester
Help desk expert

Send message
Joined: 20 Nov 12
Posts: 801
Finland
Message 80313 - Posted: 18 Aug 2017, 20:06:24 UTC - in response to Message 80294.  

That's what happens with untested instructions. Because BOINC isn't installed yet you don't have boinc user or group.

Run these commands to add the accounts and then continue with chown and installing BOINC:

sudo addgroup --system boinc
sudo adduser --system --ingroup boinc --home /var/lib/boinc-client --gecos "BOINC core client" boinc
ID: 80313 · Report as offensive
ProfileAgentb
Avatar

Send message
Joined: 30 May 15
Posts: 265
United Kingdom
Message 80315 - Posted: 18 Aug 2017, 20:34:48 UTC - in response to Message 80294.  
Last modified: 18 Aug 2017, 20:37:51 UTC

Probably the easiest way to create the boinc group and user - the usermod just tidies upa description field

sudo adduser --system --group boinc  --home /var/lib/boinc-client/
sudo usermod  --comment "BOINC Core user" boinc

This should create the home directory and the user / group records correctly, although the install normally does that.
edit: Juha beat me to it! You may need to add boinc to the video group if you plan to use the GPU for crunching
ID: 80315 · Report as offensive
Juha
Volunteer developer
Volunteer tester
Help desk expert

Send message
Joined: 20 Nov 12
Posts: 801
Finland
Message 80316 - Posted: 18 Aug 2017, 21:05:41 UTC - in response to Message 80315.  

boinc-client install script takes care of adding boinc to video group.
ID: 80316 · Report as offensive
P A Gulley

Send message
Joined: 18 Jul 17
Posts: 6
United States
Message 80317 - Posted: 19 Aug 2017, 3:40:37 UTC

Thanks, Juha and Agentb!
I used Agentb's command to add the user, and now the chown command works.
After installing BOINC, it shows my projects, and progress, in the manager.
It all seems to be just as I wanted it.
ID: 80317 · Report as offensive

Message boards : Questions and problems : Moving BOINC to a new OS installation on Linux Mint.

Copyright © 2024 University of California.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.