Skip to content
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

Closed
Taifun2300 opened this issue Oct 26, 2017 · 8 comments
Closed

raspiBackupRestore2Image.sh fails RC112 #23

Taifun2300 opened this issue Oct 26, 2017 · 8 comments
Assignees
Labels
bug Issue accepted as a bug

Comments

@Taifun2300
Copy link

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

@framps
Copy link
Owner

framps commented Oct 26, 2017

Unfortunately that's not enough information. I need the complete debug log for further analysis.

@framps framps added the question Some question about raspiBackup label Oct 26, 2017
@Taifun2300
Copy link
Author

Log file
raspiBackup.log

@framps
Copy link
Owner

framps commented Oct 28, 2017

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.

@framps
Copy link
Owner

framps commented Nov 1, 2017

@Taifun2300 Any news on this issue from your side?

@Taifun2300
Copy link
Author

I just downloaded the latest version, but got unfortunarly the same result.

@framps
Copy link
Owner

framps commented Nov 2, 2017

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

@Taifun2300
Copy link
Author

Taifun2300 commented Nov 3, 2017

Now it works :-)
Danke!

@framps framps added bug Issue accepted as a bug fixed in next release and removed question Some question about raspiBackup labels Nov 3, 2017
@framps framps self-assigned this Nov 3, 2017
@framps
Copy link
Owner

framps commented Nov 5, 2017

Fixed in v0.6.3.1

@framps framps closed this as completed Nov 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue accepted as a bug
Projects
None yet
Development

No branches or pull requests

2 participants