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

[PROBLEM] How to restore IMG backup file
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Problem: How to restore IMG backup file
20th Jan, 2014, 07:05 PM
Post: #1
Carpenter Offline
Registered
Posts: 51
Joined: Apr 2013
Reputation: 0
How to restore IMG backup file
Software
XBian version: Beta 2
XBMC version: Latest
Overclock settings: Turbo

Hardware
Power supply rating: 1mA
RPi model (model A/B 256mb/512mb): 512mb
SD card size and make/type: 4gb ICIDU
Network (wireless or LAN): LAN
Connected devices (TV, USB, network storage, etc.): TV, USB

Logile
Link to logfile(s):

Problem description:
After updating XBian, it somehow got stuck at the boot screen for no apparent reason after rebooting. Having made a complete backup (in the XBian Config screen in XBMC) I thought it would be really easy to put that back to the SD Card, but when I copied it back with the help of Win32DiskImager it only showed a blinking dash on the screen when starting up.

Did I do something wrong? And is there a way to open the IMG file myself and copy all necessary file to a freshly installed XBian?

How to reproduce:
Find all posts by this user
Quote this message in a reply
20th Jan, 2014, 10:33 PM
Post: #2
Carpenter Offline
Registered
Posts: 51
Joined: Apr 2013
Reputation: 0
RE: How to restore IMG backup file
Hmm for now I solved it by mounting the img file and copying all the necessary files.

Is used the following info to mount the image file:
http://askubuntu.com/a/236284
Find all posts by this user
Quote this message in a reply
21st Jan, 2014, 04:57 AM
Post: #3
IriDium Offline
Inquisitor
******
Posts: 2,025
Joined: Jan 2013
Reputation: 170
RE: How to restore IMG backup file
It sounds like the image has a corrupt config.txt or cmdline.txt.

Do they look right? If unsure post both the files and we'll have a look.

Please read before you post
How to post a log file

If you liked my help, click on "Thanks" to show your appreciation.
Find all posts by this user
Quote this message in a reply
25th Jan, 2014, 05:56 PM
Post: #4
mk01 Offline
Registered
Posts: 2,485
Joined: Mar 2013
Reputation: 209
RE: How to restore IMG backup file
(20th Jan, 2014 10:33 PM)Carpenter Wrote:  Hmm for now I solved it by mounting the img file and copying all the necessary files.

Is used the following info to mount the image file:
http://askubuntu.com/a/236284

@Carpenter,

are you on stable ? this is shortly discussed in ?Beta2? thread I have the feeling. The whole problem is only the clock (turbo) and is caused by some not good patches to firmware and kernel on upstream repositories.

but the reason is known and fix is already at devel repo. soon to be released if anyone currently testing it doesn't say otherwise.

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
28th Jan, 2014, 01:26 AM
Post: #5
Carpenter Offline
Registered
Posts: 51
Joined: Apr 2013
Reputation: 0
RE: How to restore IMG backup file
(25th Jan, 2014 05:56 PM)mk01 Wrote:  
(20th Jan, 2014 10:33 PM)Carpenter Wrote:  Hmm for now I solved it by mounting the img file and copying all the necessary files.

Is used the following info to mount the image file:
http://askubuntu.com/a/236284

@Carpenter,

are you on stable ? this is shortly discussed in ?Beta2? thread I have the feeling. The whole problem is only the clock (turbo) and is caused by some not good patches to firmware and kernel on upstream repositories.

but the reason is known and fix is already at devel repo. soon to be released if anyone currently testing it doesn't say otherwise.
Yes I am on Stable. Tried it again today and now I have a non-starting RPi again Dodgy Where can I find correct config.txt and cmdline.txt files?
Find all posts by this user
Quote this message in a reply
28th Jan, 2014, 05:06 AM
Post: #6
IriDium Offline
Inquisitor
******
Posts: 2,025
Joined: Jan 2013
Reputation: 170
RE: How to restore IMG backup file
Can you post both files

Please read before you post
How to post a log file

If you liked my help, click on "Thanks" to show your appreciation.
Find all posts by this user
Quote this message in a reply
28th Jan, 2014, 05:52 PM
Post: #7
Carpenter Offline
Registered
Posts: 51
Joined: Apr 2013
Reputation: 0
RE: How to restore IMG backup file
(28th Jan, 2014 05:06 AM)IriDium Wrote:  Can you post both files
It has to do with overclocking indeed. I have a standard config.txt with no overclocking enabled. When I overclock my RPi in the config via SSH then it won't start anymore. But when I copy back the standard config.txt it works again. So, I will wait for the new firmware then Wink
Find all posts by this user
Quote this message in a reply
29th Jan, 2014, 06:40 AM
Post: #8
IriDium Offline
Inquisitor
******
Posts: 2,025
Joined: Jan 2013
Reputation: 170
RE: How to restore IMG backup file
Looking at your setup you only have a 1amp PSU on Xbian OC 840mhz, the RPi can draw 800ma.

Maybe the Turbo setting is drawing tooooo much. Just a thought.

If possible can you try a higher PSU - say 2amp - and see if you get the same problem.

If that works, then that is the issue.

Please read before you post
How to post a log file

If you liked my help, click on "Thanks" to show your appreciation.
Find all posts by this user
Quote this message in a reply
29th Jan, 2014, 04:58 PM
Post: #9
Carpenter Offline
Registered
Posts: 51
Joined: Apr 2013
Reputation: 0
RE: How to restore IMG backup file
I don't think so, had it always running on Turbo overclock with no issues. Only now for a few weeks this is causing issues...
Find all posts by this user
Quote this message in a reply
11th Apr, 2014, 05:03 PM
Post: #10
salar521 Offline
Registered
Posts: 11
Joined: Apr 2014
Reputation: 0
RE: How to restore IMG backup file
You see, I used Image Backup to back up my files. Now, after I refreshed and stuff my PC, I dunno how to recover the files!
Find all posts by this user
Quote this message in a reply
19th Apr, 2014, 12:21 AM
Post: #11
mk01 Offline
Registered
Posts: 2,485
Joined: Mar 2013
Reputation: 209
RE: How to restore IMG backup file
@salar521

image backup is supposed to be directly "flashed" into SD card back.

but if you manually installed new XBian etc, you can "open" the .img file as block device (like USB disk).

Code:
sudo -i
modprobe loop
kpartx -av /path/to/my/img.file

kpartx command will create two new "partitions" - /dev/mapper/loop0p1 and /dev/mapper/loop0p2 - which you can mount manually or just with "usbmount" command (and content should appear under /media)
Code:
sudo usbmount /dev/mapper/loop0p2

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
21st May, 2014, 03:49 AM
Post: #12
QuadCorei8085 Offline
Registered
Posts: 6
Joined: May 2014
Reputation: 0
RE: How to restore IMG backup file
Tricky question: as the SD can corrupted i moved (copied) the XBIAN to an external USB partiotion (sda1) right after installation, using the built in xbian-config/"xbian copier".

After finished configuring and installing my XBIAn i've made an IMG with the same "xbian copier".

How can I restore the IMG to sda1? dd?

[edit]:
Also: how can a simple power outage corrupt my external usb HDD so much that XBIAN can only boot up to "the blinking cursor"?
Happened to me 2x so far. Really annoying to reinstall the whole system after every power outage.
Find all posts by this user
Quote this message in a reply
22nd Jun, 2014, 08:25 AM
Post: #13
mk01 Offline
Registered
Posts: 2,485
Joined: Mar 2013
Reputation: 209
RE: How to restore IMG backup file
@QuadCorei8085

my posts discussing shortly your like-your case should be few messages above.
blinking cursor is not XBian filesystem corruption (rootfs). Blinking cursor means Fw or Kernel failed to load what is a way before XBian starts.

What helps mostly is just take card out and do checkdisk on 1st partition. if this is happening so ofter for you, remove automount of /boot from /etc/fstab. When the FAT is not mounted, can't be damaged.

Of course even rootfs can get corrupted, but for past year we had maybe 5-10 such reports. There are even people powering RPI with XBian from TV's usb port - just turning TV off/on without issues. Google will list such reports even on internet. .

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


Possibly Related Threads...
Thread: Author Replies Views: Last Post
  [PROBLEM] System Backup - Restore Fails husntvar 3 10,882 16th Sep, 2017 04:11 AM
Last Post: Nachteule
  [solved] xbian-config: backup to file runs two times Groormat 4 15,281 5th May, 2014 08:03 PM
Last Post: Groormat
  Cant copy Backup file to XBMC-Backup YippeeKaiay 4 13,742 16th Jan, 2014 06:01 AM
Last Post: mk01

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

Current time: 10th May, 2025, 07:02 AM Powered By MyBB, © 2002-2025 MyBB Group.