Craig
July 23, 2017, 8:25am
1
Hi,
I am running a dell T20 with Roon amongst other things (Plex) etc. installed on it. I want to move the roon database to an SSD without re-installing. Can I just add an internal or external SSD and just relabel the ext4 volume name and have Roon find the disk automagically or what do I need to do.?
gasman
July 23, 2017, 10:09am
2
why do you wish to avoid a re-install?
Backup the DB on an external drive or Dropbox or wherever, install SSD and install Roon on the SSD, then recover the saved DB to the new installation
Craig
July 23, 2017, 11:43am
3
I want to avoid re-install as I am running 5 other apps on the box and don’t want to have to set it all up again.
gasman
July 23, 2017, 4:25pm
4
Which flavour of Linux do you have?
You could install the new SSD, move the DB to it, rename the old DB it’s original location and symlink the DB
Assuming you’ve decided to dedicate the entire disk to Roon’s database, and that you already know how to format and mount a new hard disk,
Stop all Roon services: sudo systemctl stop roonserver.service
Temporarily rename the existing database: sudo mv /var/roon/RoonServer /var/roon/RoonServer.bak
Create a mount point for the new disk: sudo mkdir /var/roon/RoonServer
Add an entry for your new disk to /etc/fstab, specifying the directory above as the mount point
Mount the disk: sudo mount /var/roon/RoonServer
Copy the original Roon database to the new disk:
- sudo su -
- cd /var/roon/RoonServer.bak
- tar cf - * | ( cd /var/roon/RoonServer ; tar xf - )
Start Roon: sudo systemctl start roonserver.service
You can remove the old database directory (sudo rm -rf /var/roon/RoonServer.bak) once you’ve confirmed that everything works correctly on the new disk.
-Adam.
6 Likes
Craig
July 23, 2017, 6:12pm
6
Hi Adam,
Thank you so much exactit the idiot proof guide I needed.