Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

[PROBLEM] System Backup - Restore Fails
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Problem: System Backup - Restore Fails
16th Sep, 2017, 04:11 AM (This post was last modified: 16th Sep, 2017 04:12 AM by Nachteule.)
Post: #4
Nachteule Offline
Administrator
******
Posts: 2,406
Joined: Dec 2014
Reputation: 122
RE: System Backup - Restore Fails
(16th Sep, 2017 12:25 AM)husntvar Wrote:  Thanks for the quick repply.

No problem Smile

Quote:
(15th Sep, 2017 10:09 PM)Nachteule Wrote:  Your root fs ( /dev/mmcblk0p2) can not be mounted. So I suppose your image is not correct.
How can I check this beforehand to prevent damage ".img"? As far as I know it was working fine.

1) check the logfile /tmp/xbiancopy.log
2) check the size of your image.

Terminal

[19:53:30][manfred@kmcubie:/media/system/backup]$ ll kmxbilr2_xbian_image-usb_2017-09-13.img
-rwxrwx---+ 1 xbmc users 4594860032 Sep 13 14:48 kmxbilr2_xbian_image-usb_2017-09-13.img
[19:53:38][manfred@kmcubie:/media/system/backup]$ du -BM kmxbilr2_xbian_image-usb_2017-09-13.img
3278M kmxbilr2_xbian_image-usb_2017-09-13.img
[19:53:42][manfred@kmcubie:/media/system/backup]$

Calculate if size of img and occupied bytes (which du reports) seems to be correct (that's what I'm doing)

3) try mount the image (please note: if you are using LZ4 compression, you have to use LZ4 enabled kernel, of course you can mount image from a running RPi)

Terminal

[19:57:29][manfred@kmcubie:/media/system/backup]$ sudo kpartx -av kmxbilr2_xbian_image-usb_2017-09-13.img
add map loop0p1 (253:1): 0 139264 linear 7:0 2048
add map loop0p2 (253:2): 0 8833024 linear 7:0 141312
[19:57:49][manfred@kmcubie:/media/system/backup]$ sudo mount /dev/mapper/loop0p2 /mnt
[19:57:55][manfred@kmcubie:/media/system/backup]$ ls -la /mnt
insgesamt 20
drwxr-xr-x 1 root root 52 Sep 13 14:17 .
drwxr-xr-x 24 root root 4096 Sep 10 01:42 ..
drwxr-xr-x 1 root root 2 Sep 13 14:17 data
drwxr-xr-x 1 root root 2 Sep 13 14:28 home
drwxr-xr-x 1 root root 2 Sep 13 14:31 modules
drwxr-xr-x 1 root root 2 Sep 13 14:46 root
drwxr-xr-x 1 root root 2 Sep 13 14:48 storage
[19:57:59][manfred@kmcubie:/media/system/backup]$

(that is one of my RPi3 devel system image)

Quote:So I should check this frequently to check if the backups are ok. Is there any healthcheck that I can make to the img files?

See above

Quote:Is this to check in the current image as is (the one that does not mount)?

Yes, hmmm, btrfs check does not report any error, about 1G data is in fs. So I'm confused why mounting of root does not work Huh

what happens if you mount root fs manually?

Terminal

mount /dev/root /rootfs ?
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


Messages In This Thread
System Backup - Restore Fails - husntvar - 15th Sep, 2017, 08:58 AM
RE: System Backup - Restore Fails - Nachteule - 15th Sep, 2017, 10:09 PM
RE: System Backup - Restore Fails - husntvar - 16th Sep, 2017, 12:25 AM
RE: System Backup - Restore Fails - Nachteule - 16th Sep, 2017 04:11 AM

Possibly Related Threads...
Thread: Author Replies Views: Last Post
Brick How to modify "system backup" alert qoop 6 9,176 6th May, 2022 11:46 AM
Last Post: heravinluca
  Pre-upgrade, Online, Full System Backup Script alangibson 1 7,784 5th Aug, 2014 01:10 AM
Last Post: IriDium
  [PROBLEM] How to restore IMG backup file Carpenter 12 45,792 22nd Jun, 2014 08:25 AM
Last Post: mk01

  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 5th Jun, 2025, 07:03 PM Powered By MyBB, © 2002-2025 MyBB Group.