-
-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
raspiBackupRestore2Image.sh fails RC112 #23
Comments
Unfortunately that's not enough information. I need the complete debug log for further analysis. |
Log file |
You try to restore a raspiBackup into a loop device which fails. Actually I created a script a couple of weeks ago which exactly does this and calles pishrink afterwards. I also had issues to restore directly into the loop device and was not able to figure out the root cause. Looks like it's somehow related to the kernel and refresh of a modified partition table. The workaround I use is to prime the loop device with the partition info of the backup first and then start the restore. Just check the script raspiBackupRestore2Image.sh in this repo. |
@Taifun2300 Any news on this issue from your side? |
I just downloaded the latest version, but got unfortunarly the same result. |
There is a beta version of raspiBackup for v0.6.3.1 available with some changes related to your issue. Please try the beta version of raspiBackup |
Now it works :-) |
Fixed in v0.6.3.1 |
From the log:
20171026-162244: DBG << calcSumSizeFromSFDISK 64013265920
20171026-162244: DBG -- sourceSDSize: 64013265920 - targetSDSize: 64012419072
20171026-162244: DBG -- sourceBlockSize: 124932096 - adjusted targetBlockSize: 124930442
20171026-162244: MSG !!! RBK0004W: Zweite Partition wird von 59.57 GiB auf 59.57 GiB angepasst.
20171026-162244: DBG >> resizeRootFS
20171026-162244: DBG -- RESTORE_DEVICE: /dev/loop0
20171026-162244: DBG -- ROOT_PARTITION: /dev/loop0p2
20171026-162244: DBG -- partitionLayout of /dev/loop0
20171026-162244: DBG -- Disk /dev/loop0: 59,6 GiB, 64012419072 bytes, 125024256 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: 0x19aa3ab1
Device Boot Start End Sectors Size Id Type
/dev/loop0p1 8192 93813 85622 41,8M c W95 FAT32 (LBA)
/dev/loop0p2 94208 125026303 124932096 59,6G 83 Linux
20171026-162245: DBG -- PartitionStart:
20171026-162245: MSG ??? RBK0111E: Fehler beim Erstellen der Partitionen.RC
.
20171026-162245: DBG >> exitError 112
20171026-162245: DBG << exitError 112
20171026-162245: DBG >> cleanup
20171026-162245: DBG >> cleanupRestore
20171026-162245: DBG -- Got trap EXIT
20171026-162245: DBG -- rc: 112
20171026-162245: DBG >> isMounted /tmp/raspiBackup
20171026-162245: DBG -- /dev/root
20171026-162245: DBG << isMounted 1
20171026-162245: DBG -- Deleting dir /tmp/raspiBackup
20171026-162245: MSG ??? RBK0077E: Restore wurde fehlerhaft mit RC 112 beendet. Siehe vorhergehende Fehlermeldungen.
20171026-162245: DBG << cleanupRestore - exit with 112
20171026-162245: DBG >> cleanupTempFiles
20171026-162245: DBG -- Removing mailfile /root/script/raspiBackup.maillog
20171026-162245: DBG << cleanupTempFiles
20171026-162245: DBG -- Terminate now with rc 112
The text was updated successfully, but these errors were encountered: