So I am using these utilities to make backups of Ubuntu Server 22.04 on my Raspberry Pi 4. During a long grueling debug process through the process of elimination, I narrowed down the reason why my backups would not properly restore. Normally, I would create a backup with image utils on my external drive, unplug that external drive, and then plug it into my mac, then flash the backed up .img file to a usb stick, plug the flashed usb stick into my raspberry pi, and boot, to a perfectly working server.
(I believe) after the latest update, something has gone wrong with the backup process. Recently, I noticed, that my backed up .img files weren't booting anymore, and getting stuck on the emergency boot terminal. After much trial and error, I realized, that all of my backups wouldn't boot, due to my external (Backup Drives) not ALSO being plugged into the raspberry pi during boot. In my /etc/fstab file, I have my backup drives (attached to the raspberry pi 4 via usb) automounting on my Pi 4 (running Ubuntu Server 22.04). When restoring from a backup, I realized that if my backup drives weren't attached to my Pi 4 during boot, the Pi 4 would crash on boot and go into emergency mode. If I rebooted, and plugged my backup drives into the Pi 4, the backups would then boot to the recovered Ubuntu OS. SO, it seems that If I want my backups to boot with or without my backup drives plugged into the pi, I first need to remove my automounting external drives from /etc/fstab. Once I removed them from /etc/fstab with a simple comment for each drive, the backups booted just fine with OR WITHOUT my other external (backup drives) plugged into the pi.
I would like a solution, where when restoring from a backup, I don't need to first edit my /etc/fstab file and remove the external hard drives from it, before booting Ubuntu. I want my backups to just boot, no matter if the external drives are pluggedd in, or removed, or if my /etc/fstab file includes, or comments out, the external drives.
Could you enlighten me as to why this is happening, and give me some advice as to how I can fix it so that my backups boot no matter what (if anything) is plugged into the Raspberry Pi?
Please elaborate on this problem and a solution as much as you possibly can. Thanks so much for building these scripts!
(I believe) after the latest update, something has gone wrong with the backup process. Recently, I noticed, that my backed up .img files weren't booting anymore, and getting stuck on the emergency boot terminal. After much trial and error, I realized, that all of my backups wouldn't boot, due to my external (Backup Drives) not ALSO being plugged into the raspberry pi during boot. In my /etc/fstab file, I have my backup drives (attached to the raspberry pi 4 via usb) automounting on my Pi 4 (running Ubuntu Server 22.04). When restoring from a backup, I realized that if my backup drives weren't attached to my Pi 4 during boot, the Pi 4 would crash on boot and go into emergency mode. If I rebooted, and plugged my backup drives into the Pi 4, the backups would then boot to the recovered Ubuntu OS. SO, it seems that If I want my backups to boot with or without my backup drives plugged into the pi, I first need to remove my automounting external drives from /etc/fstab. Once I removed them from /etc/fstab with a simple comment for each drive, the backups booted just fine with OR WITHOUT my other external (backup drives) plugged into the pi.
I would like a solution, where when restoring from a backup, I don't need to first edit my /etc/fstab file and remove the external hard drives from it, before booting Ubuntu. I want my backups to just boot, no matter if the external drives are pluggedd in, or removed, or if my /etc/fstab file includes, or comments out, the external drives.
Could you enlighten me as to why this is happening, and give me some advice as to how I can fix it so that my backups boot no matter what (if anything) is plugged into the Raspberry Pi?
Please elaborate on this problem and a solution as much as you possibly can. Thanks so much for building these scripts!
Statistics: Posted by Danrancan — Wed Apr 02, 2025 5:16 am