[SOLVED] Restore dietpi-backup in another SD (RPi3)

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
esturniolo
Posts: 11
Joined: Sun Apr 01, 2018 1:09 am

[SOLVED] Restore dietpi-backup in another SD (RPi3)

Post by esturniolo »

Hi folks.
I've installed DietPi in a 4Gb and slow SD.
My question is if I do a fresh install in another SD (faster and bigger. 16Gb) and then use dietpi-backup in the 4Gb SD to restore the backup in the 16Gb SD... The system will be partitioned in 4Gb? Must I execute some extra dietpi-* command to exapnd the File System?

I just want change the actual 4Gb SD to another faster and bigger.


Thanks a lot!
Last edited by esturniolo on Fri Apr 13, 2018 5:23 pm, edited 1 time in total.
User avatar
MichaIng
Site Admin
Posts: 2262
Joined: Sat Nov 18, 2017 6:21 pm

Re: [Q] Restore dietpi-backup in another SD (RPi3)

Post by MichaIng »

Hi esturniolo,

as the backup restore just copies all files with rsync back in place, there should be no need to resize the file system again. But you need to take care that the UUIDs for root and boot partitions within /etc/fstab and /boot/cmdline.txt stay the same. In case after fresh install, copy the new /etc/fstab and /boot/cmdline.txt into your backup, overwriting the old ones (keep backups of both old and new files, just in case), and then dietpi-backup will recover the correct current one.

But keep your old sd card untouched of course, until you verified everything is working as expected, I hope I didn't forget something. The good thing about RPi images is, that you can in case of failure mount the /boot partition into e.g. Windows systems as well and edit cmdline.txt, config.txt and dietpi.txt from there.
esturniolo
Posts: 11
Joined: Sun Apr 01, 2018 1:09 am

Re: [Q] Restore dietpi-backup in another SD (RPi3)

Post by esturniolo »

MichaIng wrote:Hi esturniolo,

as the backup restore just copies all files with rsync back in place, there should be no need to resize the file system again. But you need to take care that the UUIDs for root and boot partitions within /etc/fstab and /boot/cmdline.txt stay the same. In case after fresh install, copy the new /etc/fstab and /boot/cmdline.txt into your backup, overwriting the old ones (keep backups of both old and new files, just in case), and then dietpi-backup will recover the correct current one.

But keep your old sd card untouched of course, until you verified everything is working as expected, I hope I didn't forget something. The good thing about RPi images is, that you can in case of failure mount the /boot partition into e.g. Windows systems as well and edit cmdline.txt, config.txt and dietpi.txt from there.
Great!
I'll try this and I'll keep you posted.

Thanks for the explanation.
esturniolo
Posts: 11
Joined: Sun Apr 01, 2018 1:09 am

Re: [Q] Restore dietpi-backup in another SD (RPi3)

Post by esturniolo »

esturniolo wrote:As I said "I'll keep you posted"

Sorry for the delay, but I had a very fully days.

It's works!!!!!!!!!!!!!!

As you said I just change the UUID in /etc/fstab and /boot/cmdline.
As I said "I'll keep you posted"

Sorry for the delay, but I had a very fully days.

It's works!!!!!!!!!!!!!!

As you said I just changed the UUID in /etc/fstab and /boot/cmdline.txt and worked flawessly. No problems, no troubles, All working again in 5 minutes.

Thanks a lot Michalng!!!!!
Post Reply