Closed develoxir closed 6 years ago
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:
raspberrypi:~# fdisk -lu /dev/mmcblk0
Disk /dev/mmcblk0: 29.8 GiB, 32010928128 bytes, 62521344 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xa50df092
Device Boot Start End Sectors Size Id Type
/dev/mmcblk0p1 8192 131071 122880 60M c W95 FAT32 (LBA)
/dev/mmcblk0p2 131072 62521343 62390272 29.8G 83 Linux
raspberrypi:~#
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
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