Services Failing after Swapping Backup Drives
Re: Services Failing after Swapping Backup Drives
Cool. I have the non plus model. Just 3b
Re: Services Failing after Swapping Backup Drives
some USB Boot information and how to activate
https://www.raspberrypi.org/documentati ... des/msd.md
btw you could move boot partition to a much smaler SD card as well
https://www.raspberrypi.org/documentati ... des/msd.md
btw you could move boot partition to a much smaler SD card as well
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Re: Services Failing after Swapping Backup Drives
Thanks. I had read through that article on USB booting, but what I still don't understand is if I set the one time programmable memory to enable booting from USB, can I still boot from SD if I wanted to (not saying that I would). I'm a little spooked by the OTP aspect since I have no experience with this sort of thing. I'm guessing it just allows USB boot, but does not kill SD boot capabilities.
Also if I plan to have everything on my USB SSD (boot and rootfs) does the process of getting there look something like this?
Last question, can I use a samba shared drive as the location for my dietpi backups, or is that not possible because of permissions/ownership limitations for network shares?
Also if I plan to have everything on my USB SSD (boot and rootfs) does the process of getting there look something like this?
- add program_usb_boot_mode=1 to the end of /boot/config.txt
- reboot
- copy userdata back to my SD card so everything is on the SD
- create an image of my SD card on my Mac
- burn the image onto my USB SSD
- plug the USB SSD into my Pi 3b, boot
- done!?
Last question, can I use a samba shared drive as the location for my dietpi backups, or is that not possible because of permissions/ownership limitations for network shares?
Re: Services Failing after Swapping Backup Drives
unfortunately I'm not able to answer the question as I have a 3B+ only where USB boot is working ootb.
But I would expect to have both working once activated. But it might be better to verify and have this question raised on RPi Board. Just in case.
Yep if you swap from SD to USB, you need to adjust UUIDs within /etc/fstab
Recommendation would be to start with a clean install in our SSD to avoid issues or side effects
But I would expect to have both working once activated. But it might be better to verify and have this question raised on RPi Board. Just in case.
Yep if you swap from SD to USB, you need to adjust UUIDs within /etc/fstab
Recommendation would be to start with a clean install in our SSD to avoid issues or side effects
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Re: Services Failing after Swapping Backup Drives
I found some answers in the Raspberry forums here - https://www.raspberrypi.org/forums/view ... p?t=175630
Looks like booting from SD is still a possibility, so I'll plan to move forward with setting the OTP memory to allow USB booting on my Pi 3b.
I wouldn't have a problem updating UUIDs in the /etc/fstab, but since you mention it would be recommended to start from a clean install, would that mean reinstalling and reconfiguring every program I'm running? Is there no clean way to keep what I've got? Would restoring from a backup to a fresh install on the USB SSD be better than trying to migrated to the USB SSD from the SD?
I'm currently running:
Looks like booting from SD is still a possibility, so I'll plan to move forward with setting the OTP memory to allow USB booting on my Pi 3b.
I wouldn't have a problem updating UUIDs in the /etc/fstab, but since you mention it would be recommended to start from a clean install, would that mean reinstalling and reconfiguring every program I'm running? Is there no clean way to keep what I've got? Would restoring from a backup to a fresh install on the USB SSD be better than trying to migrated to the USB SSD from the SD?
I'm currently running:
- Plex
- Nextcloud
- PiHole
- VPN
Re: Services Failing after Swapping Backup Drives
well you could give it a try to change UUIDs in the /etc/fstab. if it's not working, you still would have the SD as backup.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Re: Services Failing after Swapping Backup Drives
Sounds good. I’ll try it out and post the results. Appreciate all the help!
Re: Services Failing after Swapping Backup Drives
Here's how it all went down.
I'm not sure why. I know some SSDs are not compatible, but everything here seemed to be set up properly. More info on this further down.
Thinking I'd go for the next best setup I did the following:
. I suppose I could do the following to try it again.
- added program_usb_boot_mode=1 to the end of /boot/config.txt
- rebooted
- copied userdata back to my SD card so everything is on the SD
- copied userdata back to my SD card so everything is on the SD
- created an image of my SD card on my Mac
- burned the image onto my USB SSD
- reviewed /etc/fstab - since I burned the SD images to the USB, the PARTUUID numbers were the same - no change required
- pluged the USB SSD into my Pi 3b and powered on
I'm not sure why. I know some SSDs are not compatible, but everything here seemed to be set up properly. More info on this further down.
Thinking I'd go for the next best setup I did the following:
- removed the USB SSD
- inserted the SD card
- booted just fine
- formatted the USB SSD
- used Drive-Manager to transfer RootFS to the USB SSD
- manually transferred user-data from the SD ext4 partition to the USB SSD
- rebooted and everything works

- make a new backup of the boot only SD card
- restore the old full OS SD card image to the SD card
- boot off the SD card
- try to set the USB boot parameter again
- confirm it is set
- copy RootFS to the USB SSD again
- try booting again
Re: Services Failing after Swapping Backup Drives
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Re: Services Failing after Swapping Backup Drives
Quoting myself here:
I didn't realize the USB boot option should be set in DietPi-Config > Advanced Options. I had tried editing /boot/config.txt as mentioned in the Raspberry Pi forum post. Once I used the DietPi-Config option and rebooted the USB option was set successfully. Now to try again and see if USB boot can work.I somewhat foolisly didn't run vcgencmd otp_dump | grep 17: after setting the USB boot option in config.txt, because I did check the config.txt file and saw the option was appended properly before rebooting. However now when I run the vcgencmd command it doesn't give me the output of 3020000a and instead outputs 1020000a, indicating that the USB boot option failed to be set in the OTP memory. If that's the case, that explains one reason why USB booting would have failed. When I look at /boot/config.txt the program_usb_boot_mode=1 is no longer there