Message boards : Number crunching : How do I change the data directory in Ubuntu?
| Author | Message | 
|---|---|
| 
        
     BKFC Send message Joined: 21 Apr 20 Posts: 36 Credit: 3,170,094 RAC: 0  | 
        
         
 [I've seen this topic in previous posts, with conflicting advice] I would like to move the data directory from my SSD to a HDD. After stopping the client (and restarting afterward) ,I have tried changing the BOINC_DIR path, and also simply putting a symlink to the new folder on the HDD, but everything I've tried basically breaks the package, and nothing runs. Is there an up-to-date set of instructions for doing this?  | 
| 
        
     mikey Send message Joined: 5 Jan 06 Posts: 1898 Credit: 12,725,400 RAC: 344  | 
        
         
 [I've seen this topic in previous posts, with conflicting advice] both of your pc's now have tasks so it's working as it is right now  | 
| 
        
     Aurum Send message Joined: 12 Jul 17 Posts: 32 Credit: 38,158,977 RAC: 0  | 
        
         
 tried changing the BOINC_DIR pathI don't know how to change the data directory but wouldn't mind learning how. Have you tried this way? https://boinc.berkeley.edu/forum_thread.php?id=9633&postid=56258#56258  | 
| 
        
     BKFC Send message Joined: 21 Apr 20 Posts: 36 Credit: 3,170,094 RAC: 0  | 
        
         
 I tried that, and it did nothing.  Then a later post (I can't find it now) said just to put in a symlink to where you want it.  I also tried that and it didn't work, hence my query.  | 
| 
        
     mikey Send message Joined: 5 Jan 06 Posts: 1898 Credit: 12,725,400 RAC: 344  | 
        
         
 [I've seen this topic in previous posts, with conflicting advice] try here: http://pirates.spy-hill.net/help/linux-mvdir.html  | 
| 
        
     BKFC Send message Joined: 21 Apr 20 Posts: 36 Credit: 3,170,094 RAC: 0  | 
        
         
 Those instructions are dated 2009, and among other things say to change the BOINC_DIR entry in /etc/defaults/boinc-client.  I can confirm that boinc ignores that directive.   After several tries, the following seems to work for a mount point /aux on a HDD: %/ sudo service boinc-client stop %/ sudo cp -pR /var/lib/boinc-client /aux %/ sudo rm -rf /var/lib/boinc-client %/ sudo ln -sf /aux/boinc-client /var/lib/boinc-client %/ sudo service boinc-client start  | 
            Message boards : 
            Number crunching : 
        How do I change the data directory in Ubuntu?
    
         ©2025 University of Washington 
https://www.bakerlab.org