Using the 21.10 Mate Pi image we created a 32Gb USB device to boot and run Ubuntu on our test station using balenaEtcher. Everything works extremely well.
Shutting down the Pi we remove the USB stick to make a backup image of the test station using a i386 PC running Ubuntu Mate. During the process we receive an error reading the device. This also happens trying to use dd in a virtual machine running the latest Ubuntu. Tried running ddrescue on the USB device to create an image thinking there was an actual read error but this also failed with a Unaligned read error.
Then resorted to using gparted to examine the device. Looking at the USB drive with gparted the sectors seemed aligned as they are divisible by eight.
Is there something special that needs to be done when creating a Mate Pi USB drive so that we can back up the system? We posted this question over in Ask Ubuntu but have gotten no responses. Any help resolving this would be appreciated.
sudo dd if=/dev/sdb of=server.img iflag=direct bs=16k status=progress
6248251392 bytes (6.2 GB, 5.8 GiB) copied, 363 s, 17.2 MB/s
dd: error reading '/dev/sdb': Input/output error
382013+0 records in
382013+0 records out
6258900992 bytes (6.3 GB, 5.8 GiB) copied, 416.203 s, 15.0 MB/s
tester@OptiPlex-390:~/Downloads$ sudo ddrescue -d -f -r3 /dev/sdb test.img test.logfile
GNU ddrescue 1.23
Press Ctrl-C to interrupt
ipos: 6259 MB, non-trimmed: 65536 B, current rate: 0 B/s
opos: 6259 MB, non-scraped: 0 B, average rate: 18408 kB/s
non-tried: 25821 MB, bad-sector: 0 B, error rate: 0 B/s
rescued: 6258 MB, bad areas: 0, run time: 5m 39s
pct rescued: 19.51%, read errors: 1, remaining time: 19m
time since last successful read: 0s
Copying non-tried blocks... Pass 1 (forwards)
Unaligned read error. Is sector size correct?
Device Info: Samsung Flash Drive FIT
Partition table: msdos
Heads: 255
Sectors/track: 2
Cylinders: 122856
Total sectors: 62656641
Sector size: 512
MSDOS(fat16) /dev/sda1
First sector: 2048
Last sector: 524287
Total sectors: 522240
ext4 /dev/sda2
First sector: 524288
Last sector: 62656607
Total sectors: 62132320