My setup has a Raspberry Pi 4B 8GB with a USB3 powered hub. A 1TB SSD (A) has the OS installed. I boot off the "boot" of SDcard (A) and load from cmdline.txt the root on the SSD with it's PARTUUID. I also have a identical 1TB SSD (B) which I weekly rsync {rsync -avxHAX --progress --delete /drive(A) /drive(B)}. I do this so if I ever had a crash on drive A I would have an older backup on drive B I could fall back on without redoing everything. I also have a SDcard B which has a basic install of Pi OS x64 that boots of the SDcard itself for basic diagnostics.
I first modify SDcard A to boot off SSD B. I modify fstab on SSD B to load it's own UUID as root. It just won't boot. I wonder if the SDcard A is bad.
Next I boot SDcard B and fsck SSD A and B. Drive A has a few errors fixed. Drive B is clean. I modify cmdline.txt on SDcard B to load SSD A and fstab on SSD A. Still no boot. I then do the same switching SDcard B to load SSD B and it works! All my files are there except root is loaded as read only!
From this point I decide to make my SSD A mirror SSD B so I can restore things and keep B as a backup. I issue the command "rsync -avxHAX --progress --delete /drive(B) /drive(A)" and many files are copied finishing in about 45 seconds (these are fast drives). I switch SDcard B cmdline.txt to boot SSD A (along with modifying it's fstab). SSD A will not boot at all. So switch back to booting off SSD B which works though read only.
I don't want to make to many changes on SSD B as it's my only backup. Would rather get SSD A running. I' thinking now rsync only copies files that are different. Perhaps some of the files are corrupt and rsync can tell that? I could do a DD partition copy. By my drive is %6 full and I don't want to waste 1TB of writes on a mostly empty drive.
Not sure if the update or new USB hub corrupted things (leaning towards USB power issue may of corrupted things?). What would be the best way to mirror files on B to A preserving ACLs which I use? Any other thoughts to fix issues happening like read only on root?