Services Failing after Swapping Backup Drives

Having issues with your DietPi installation, or, found a bug? Post it here.
User avatar
MichaIng
Site Admin
Posts: 2336
Joined: Sat Nov 18, 2017 6:21 pm

Re: Services Failing after Swapping Backup Drives

Post by MichaIng »

You can add the setting manually add well but read the notes at the beginning of the file: /boot/dietpi.txt is moved to tmpfs at /DietPi/dietpi.txt and back on shutdown. Hence /boot/dietpi.txt is overwritten and /DietPi/dietpi.txt must be edited instead.

However we'll change this behaviour with next version. Too much confusion and changes are lost in case of power loss.
cdlenfert
Posts: 28
Joined: Fri Mar 29, 2019 5:42 pm

Re: Services Failing after Swapping Backup Drives

Post by cdlenfert »

Got it. Thanks for clarifying.

Update on my progress:
After successfully setting the USB boot option in the OTP memory, I once again flashed my full SD card backup (which contained rootfs/userdata/boot) onto my USB SSD. After removing the SD card and plugging in only the USB SSD, this time it successfully booted! Very exciting to see.

However since the SSD was now seen to have a capacity of ~30GB (same as the SD did) I decided to use the Drive-Manager tool to expand the root partition. It claimed to have succeeded and prompted me to reboot, which I did. The system didn't come back online afterward. I'm not home at the moment so can't unplug/replug to see if it comes back up. Just wanted to note/share that experience here. I'll post again if things are resolved after a hard restart.
cdlenfert
Posts: 28
Joined: Fri Mar 29, 2019 5:42 pm

Re: Services Failing after Swapping Backup Drives

Post by cdlenfert »

Hard rebooted (unplugged and replugged power) and my Pi will not boot up after the rootfs partion expasion via Drive-Manager.
cdlenfert
Posts: 28
Joined: Fri Mar 29, 2019 5:42 pm

Re: Services Failing after Swapping Backup Drives

Post by cdlenfert »

I restored the USB SSD using the image for the SD card and it booted up just fine again. Any input on ways to expand the file system without it failing to boot after, or thoughts on why it's failing would be much appreciated. I'll see if I can find info on the interwebz too, or explore the Drive-Manager expansion script to get a better idea of what it's doing.
User avatar
Joulinar
Posts: 2306
Joined: Sat Nov 16, 2019 12:49 am

Re: Services Failing after Swapping Backup Drives

Post by Joulinar »

maybe you could have a look to this tool

https://gparted.org/liveusb.php
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply