relocate default disk location on Raspberry Pi

Message boards : Questions and problems : relocate default disk location on Raspberry Pi
Message board moderation

To post messages, you must log in.

AuthorMessage
mitchh

Send message
Joined: 28 Jul 19
Posts: 2
United States
Message 92309 - Posted: 28 Jul 2019, 18:04:56 UTC
Last modified: 28 Jul 2019, 18:17:24 UTC

Hi,
I tried to relocate the /var/lib/boinc and /var/lib/boinc-client directories by a soft link to the mount point of my SSD as opposed to the smaller / slower sd card on my new Pi 4. (It is not possible to boot from the SSD at this time to my knowledge.) So I have created links and moved the files, but I must have done something wrong, because it will not start.
I am running the latest version of Boinc as of 2 days ago when I downloaded it.
I'm running on a Pi 4 with 4GB mem.
I'm not sure I redirected things correctly.
I pointed /var/lib/boinc to /mnt/data/boinc-client and also pointed /var/lib/boinc-client to /mnt/data/boinc-client.
I see that boinc-client seems to be also inside itself on the SSD.
I couldn't find documentation that indicated how to redirect the default disk location, so I winged it and caused the problem.

Does anyone know what I should do to correctly redirect the default disk location to /mnt/data?

Thanks,
mitchh
ID: 92309 · Report as offensive
MarkJ
Volunteer tester
Help desk expert

Send message
Joined: 5 Mar 08
Posts: 272
Australia
Message 92311 - Posted: 29 Jul 2019, 10:23:24 UTC
Last modified: 29 Jul 2019, 10:32:01 UTC

Not quite what you asked for but I did knock up some instructions on moving the Rpi root partition to an external drive. You can find them here. I had to use them last week under Buster so they still are correct apart from Rsync already being installed.
MarkJ
ID: 92311 · Report as offensive
mitchh

Send message
Joined: 28 Jul 19
Posts: 2
United States
Message 92358 - Posted: 3 Aug 2019, 18:53:32 UTC - in response to Message 92311.  

Thanks Mark!
It took a while to get to reset everything, but I followed the instructions to mount /root on the SSD and it is working great now. I didn't have much on this pi, so it was easier to reload everything and start over.

Mounting the SSD to /root solves many other issues I wanted a solution to cover as well!

So thanks!
ID: 92358 · Report as offensive

Message boards : Questions and problems : relocate default disk location on Raspberry Pi

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.