Can't clone anymore: rsync: mkstemp "/mnt/clone/boot/overlays/.<filename>" failed: Read-only file system (30) #59
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi,
I've been happily using rpi-clone for some time by now, but since a few months ago I can't anymore.
I used it every few months to backup my current SD since they will eventually fail (all of them).
Probably due to some error in the current SD card (but an error not shown in any fsck), now every time I try I get this:
The "Error: Can't have a partition outside the disk!" has been always there ever since I can recall it. it's annoying but never been hindering the process. The new problem that seems to do it is the fact that when the script re-mounts the destination /mnt/clone/boot it does so read-only, or at least that's what I find after I stop the script:
/dev/sda1 on /mnt/clone/boot type vfat (ro,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro)
And I have to stop the script, because every time I've let it go, I end up with a non-bootable SD card.
Just in case it can be of any help:
Any hint towards the real cause and solution would be greatly appreciated.
BR
Peppe
It turns out the partition extending beyond the limit was exactly the problem.
Anyone incurring in this might be able to solve it as I did: dump the partition table on a text file using the command
sfdisk -d /dev/devName > partdump.txt
correct the partition size of the culprit partition, making it end no farther than the number of sectors of the disk (not the partition) as shown in the output line of the command:
Then once corrected the text dump, re-import it as follows:
sudo sfdisk --force /dev/devName < partdump.txt
Thanks to this thread for the tips: https://ubuntuforums.org/showthread.php?t=1012825&page=2