This guide is for anyone who needs to migrate from an HDD to a SSD, or vice-versa… You can also clone the drive to move it to a bigger drive. Currently I only have Windows instructions. So if anyone would like to make instructions for Linux, or Mac, feel free to do so.
TL;DR: version – scroll all the way down.
Things needed:
Windows PC (of course.)
2 USB 3.0 enclosures or whatever interfaces/enclosures you use for your drives.
The drive you’re migrating/cloning from (any size)
The drive you’re migrating/cloning towards (any size, as long it is identical or bigger than the “from” drive)
===== Windows instructions ======
Backup your 24 secret words and the lightning channels, if you haven’t done so! Better safe than sorry!
I am assuming you have already shutdown your Umbrel node, if not – you have 2 choices: via the Web UI: Dashboard > Settings > ‘System’ Shutdown
-or-
SSH: sudo shutdown -h now
-
Install Macurim Reflect
Macrium Reflect Free Trials -
Installing Macrium Reflect Free:
2a) When it prompts you this message: “What Free edition licence do you require?” Choose “Home”
2b) When it prompts if you’d like to register the installation, uncheck that.
2c) Continue as you want (choose the installation directory, or leave at default)
2d) It gives you the option to launch the program. -
Choose the drive you want to clone/migrate by checkmarking it.
-
You will see the option to “Clone this disk…” as soon you checkmark the drive. Click that.
-
It will prompt you to choose the disk you’d want to clone/migrate towards. BE SURE THAT YOU SELECT THE CORRECT DISK! (This disk should be left unformatted and having NO file system!)
-
It will ask you if you’d like to schedule it, just click on Next >
-
It will give you a summary of what it will do, be sure that if you’re migrating/cloning from HDD to a SSD that “SSD Trim” is showing a “Y”, otherwise cancel the clone. Click on Finish.
-
Now it will ask if you’d want to save the backup options, uncheck “Save backup and schedules as an XML Backup Defintion File”. Then click on OK.
-
The process will begin, and may take a while. Maybe clean up your desk while you’re at it? heheh
-
If the drives are the same size, then you’re all done! You should now be able to plug in the new drive on your Umbrel node. Otherwise continue on.
-
If the drives are different sizes (such as 500GB–>750GB,1TB,2TB, etc.). You will need to start a SSH session on your Umbrel node after you plug in the new drive.
-
When you have the SSH session up, install ‘cloud-init’ (as we need the “growpart” module from it.)
sudo apt install cloud-init -y
-
When that is installed, check to see where your drive is mounted at by doing:
df -h
I am assuming that you have connected it via USB 3.0, so the instructions will be for sda1. And the best part is that you can do this all live! So you do not have to unmount the drive, how nice is that?!
sudo growpart /dev/sda1 1
It will take a minute or so, don’t panic.
- Then we need to resize the filesystem (if you run ‘df -h’ again, you’ll see the drive still showing the old filesystem size!)
sudo resize2fs /dev/sda1
This will take a while, so again, don’t panic.
-
Now run
df -h
again, and see the drive is now the correct size. -
Reboot the node for a good measure,
sudo reboot
-
All done!
===== TL;DR: version =====
Backup 24 secret words and lightning channels.
Gracefully shutdown your Umbrel node. (sudo shutdown -h now
)
Install Macrium Reflect Free. Macrium Reflect Free Trials
Choose drive being cloned/migrated - Clone this disk… Select From, and Towards drive.
Wait a while.
If the size of the FROM_DRIVE is the same as the TOWARDS_DRIVE, you’re done, otherwise continue…
SSH session to Umbrel node:
sudo apt install cloud-init -y
sudo growpart /dev/sda1 1
sudo resize2fs /dev/sda1
sudo reboot
Done.