Hi RonR,
pidd,
I haven't seen any occurrences of /boot/firmware getting unmounted during an image-backup.
I have also noticed /boot/firmware getting unmounted during an image-backup. I have (or rather had!) a simple script run by cron.daily to do the backup:
Code:
#!/bin/shbackup="/mnt/backup/rpi5-backup.img"logger "image-backup $backup" image-backup $backuplogger -- "backup file: " `ls -l $backup`logger "Image backup of system complete"
Here are the relevant(?) lines from journalctl (I edited the below to remove superfluous reboots, as well as a couple of extra lines that my egrep regex picked up (like starting SSH if /boot/firmware/SSH exists...).)
Code:
rpi5.pi ~ [0:216] journalctl -S 2024-01-01 | egrep -- "- Boot|local-fs|boot/firmware|mage[ -]backup" -- Boot 92865f17237f41daa7986a1cf3237ccd --Jan 11 16:51:43 rpi5 systemd[1]: Reached target local-fs-pre.target - Preparation for Local File Systems.Jan 11 16:51:48 rpi5 systemd[1]: Mounting boot-firmware.mount - /boot/firmware...Jan 11 16:51:48 rpi5 systemd[1]: Mounted boot-firmware.mount - /boot/firmware.Jan 11 16:51:48 rpi5 systemd[1]: Reached target local-fs.target - Local File Systems.Jan 12 06:25:18 rpi5 root[3722]: image-backup /mnt/backup/rpi5-backup.imgJan 12 06:26:02 rpi5 root[3813]: Image backup of system completeJan 13 06:25:02 rpi5 root[7427]: image-backup /mnt/backup/rpi5-backup.imgJan 13 06:26:19 rpi5 root[7512]: Image backup of system completeJan 14 06:25:02 rpi5 root[10946]: image-backup /mnt/backup/rpi5-backup.imgJan 14 06:25:35 rpi5 systemd[1]: Stopped target local-fs.target - Local File Systems.Jan 14 06:25:35 rpi5 systemd[1]: Unmounting boot-firmware.mount - /boot/firmware...Jan 14 06:25:35 rpi5 systemd[1]: Unmounted boot-firmware.mount - /boot/firmware.Jan 14 06:25:36 rpi5 root[11035]: Image backup of system completeJan 15 06:25:02 rpi5 root[14438]: image-backup /mnt/backup/rpi5-backup.imgJan 15 06:25:45 rpi5 root[14529]: Image backup of system completeJan 16 06:25:02 rpi5 root[18612]: image-backup /mnt/backup/rpi5-backup.imgJan 16 06:26:01 rpi5 root[18697]: Image backup of system completeJan 17 06:25:02 rpi5 root[23860]: image-backup /mnt/backup/rpi5-backup.imgJan 17 06:27:15 rpi5 root[23954]: Image backup of system completeJan 18 06:25:02 rpi5 root[27572]: image-backup /mnt/backup/rpi5-backup.imgJan 18 06:25:57 rpi5 root[27658]: Image backup of system completeJan 19 06:25:02 rpi5 root[30978]: image-backup /mnt/backup/rpi5-backup.imgJan 19 06:25:51 rpi5 root[31068]: Image backup of system completeJan 19 21:03:46 rpi5 sudo[33497]: pi : TTY=pts/1 ; PWD=/home/pi ; USER=root ; COMMAND=/usr/bin/mount /dev/sda1 /boot/firmwareJan 20 06:25:02 rpi5 root[34647]: image-backup /mnt/backup/rpi5-backup.imgJan 20 06:26:15 rpi5 root[34736]: Image backup of system completeJan 21 06:25:02 rpi5 root[38538]: image-backup /mnt/backup/rpi5-backup.imgJan 21 06:26:29 rpi5 root[38620]: Image backup of system completeJan 22 06:25:02 rpi5 root[42035]: image-backup /mnt/backup/rpi5-backup.imgJan 22 06:25:51 rpi5 root[42169]: Image backup of system completeJan 23 06:25:02 rpi5 root[55207]: image-backup /mnt/backup/rpi5-backup.imgJan 23 06:27:01 rpi5 root[55295]: Image backup of system completeJan 23 14:21:58 rpi5 systemd[1]: Unmounting boot-firmware.mount - /boot/firmware...Jan 23 14:21:58 rpi5 systemd[1]: Unmounted boot-firmware.mount - /boot/firmware.Jan 23 14:21:58 rpi5 systemd[1]: Stopped target local-fs-pre.target - Preparation for Local File Systems....-- Boot 2c05814e54734fd48d518b4b3e9867e0 --Jan 23 16:54:49 rpi5 systemd[1]: Reached target local-fs-pre.target - Preparation for Local File Systems.Jan 23 16:54:56 rpi5 systemd[1]: Mounting boot-firmware.mount - /boot/firmware...Jan 23 16:54:56 rpi5 systemd[1]: Mounted boot-firmware.mount - /boot/firmware.Jan 23 16:54:56 rpi5 systemd[1]: Reached target local-fs.target - Local File Systems.Jan 24 06:25:25 rpi5 root[3597]: image-backup /mnt/backup/rpi5-backup.imgJan 24 06:27:11 rpi5 root[3686]: Image backup of system completeJan 25 06:25:02 rpi5 root[7627]: image-backup /mnt/backup/rpi5-backup.imgJan 25 06:25:47 rpi5 systemd[1]: Stopped target local-fs.target - Local File Systems.Jan 25 06:25:47 rpi5 systemd[1]: Unmounting boot-firmware.mount - /boot/firmware...Jan 25 06:25:47 rpi5 systemd[1]: Unmounted boot-firmware.mount - /boot/firmware.Jan 25 06:25:48 rpi5 root[7762]: Image backup of system completeJan 26 06:25:02 rpi5 root[11585]: image-backup /mnt/backup/rpi5-backup.imgJan 26 06:26:57 rpi5 root[11681]: Image backup of system completeJan 27 06:25:02 rpi5 root[15318]: image-backup /mnt/backup/rpi5-backup.imgJan 27 06:25:55 rpi5 root[15408]: Image backup of system completeJan 28 06:25:03 rpi5 root[19002]: image-backup /mnt/backup/rpi5-backup.imgJan 28 06:26:43 rpi5 root[19087]: Image backup of system completeJan 29 06:25:02 rpi5 root[22640]: image-backup /mnt/backup/rpi5-backup.imgJan 29 06:25:59 rpi5 root[22728]: Image backup of system completeJan 29 11:37:36 rpi5 sudo[23290]: pi : TTY=pts/0 ; PWD=/home/pi ; USER=root ; COMMAND=/usr/bin/vi /boot/firmware/config.txtJan 29 12:19:27 rpi5 systemd[1]: Unmounting boot-firmware.mount - /boot/firmware...Jan 29 12:19:27 rpi5 systemd[1]: Unmounted boot-firmware.mount - /boot/firmware.Jan 29 12:19:27 rpi5 systemd[1]: Stopped target local-fs-pre.target - Preparation for Local File Systems.-- Boot a393cc146bff4cb78d4faaadf13f2384 --Jan 29 12:19:51 rpi5 systemd[1]: Reached target local-fs-pre.target - Preparation for Local File Systems.Jan 29 12:19:57 rpi5 systemd[1]: Mounting boot-firmware.mount - /boot/firmware...Jan 29 12:19:57 rpi5 systemd[1]: Mounted boot-firmware.mount - /boot/firmware.Jan 29 12:19:57 rpi5 systemd[1]: Reached target local-fs.target - Local File Systems.Jan 30 06:25:25 rpi5 root[4403]: image-backup /mnt/backup/rpi5-backup.imgJan 30 06:30:39 rpi5 root[4499]: Image backup of system completeJan 31 06:25:02 rpi5 root[8289]: image-backup /mnt/backup/rpi5-backup.imgJan 31 06:26:25 rpi5 root[8373]: Image backup of system completeFeb 01 06:25:02 rpi5 root[11239]: image-backup /mnt/backup/rpi5-backup.imgFeb 01 06:25:55 rpi5 systemd[1]: Stopped target local-fs.target - Local File Systems.Feb 01 06:25:55 rpi5 systemd[1]: Unmounting boot-firmware.mount - /boot/firmware...Feb 01 06:25:55 rpi5 systemd[1]: Unmounted boot-firmware.mount - /boot/firmware.Feb 01 06:25:55 rpi5 root[11328]: Image backup of system completeFeb 02 06:25:02 rpi5 root[14338]: image-backup /mnt/backup/rpi5-backup.imgFeb 02 06:25:59 rpi5 root[14425]: Image backup of system completeFeb 03 06:25:02 rpi5 root[17758]: image-backup /mnt/backup/rpi5-backup.imgFeb 03 06:25:59 rpi5 root[17846]: Image backup of system completeFeb 03 13:59:10 rpi5 systemd[1]: Unmounting boot-firmware.mount - /boot/firmware...Feb 03 13:59:10 rpi5 systemd[1]: Unmounted boot-firmware.mount - /boot/firmware.Feb 03 13:59:10 rpi5 systemd[1]: Stopped target local-fs-pre.target - Preparation for Local File Systems.
And, of course, with /boot/firmware unmounted, the entire FAT partition on the image backup is empty, so the backup, in principle, failed, since I wouldn't have gotten a bootable image.
I have since modified my backup script to log the status of /boot/firmware, do a mount -a and then log the status again. I did a reboot on Feb 3 and so far, no local-fs.target stopping has been observed. But it might happen tonight.
Statistics: Posted by dr_bob — Mon Feb 05, 2024 6:36 pm