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

[SOLVED] Can i use the "btrfs-auto-snapshot xbiancopy" cli to restore an img file?
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Solved: Can i use the "btrfs-auto-snapshot xbiancopy" cli to restore an img file?
6th Feb, 2014, 04:51 AM
Post: #4
mk01 Offline
Registered
Posts: 2,485
Joined: Mar 2013
Reputation: 209
RE: Can i use the "btrfs-auto-snapshot xbiancopy" cli to restore an img file?
oh, ok, ... forget all above and ...

yes, you can extract .img file to a partition. you have to map the .img with partition layout and use xbiancopy function from command line with speecifiing source different than default /dev/root:

Code:
sudo -i
modprobe loop
kpartx -av /path/to/my.img
btrfs-auto-snapshot xbiancopy /dev/mapper/loop0p2 /dev/sdXXXX
kpartx -dv /path/to/my.img

depending on kernel package version installed on .img and actual on /boot, after system boots reinstall kernel package if needed
Code:
apt-get install xbian-package-kernel

if you get error already installed

apt-get install --reinstall xbian-package-kernel

or second option is to take the /boot from img file (/dev/mapper/loop0p1) and copy to /boot

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 


Messages In This Thread
Can i use the "btrfs-auto-snapshot xbiancopy" cli to restore an img file? - TheBigD - 5th Feb, 2014, 11:32 PM
RE: Can i use the "btrfs-auto-snapshot xbiancopy" cli to restore an img file? - mk01 - 6th Feb, 2014, 12:27 AM
RE: Can i use the "btrfs-auto-snapshot xbiancopy" cli to restore an img file? - TheBigD - 6th Feb, 2014, 04:17 AM
RE: Can i use the "btrfs-auto-snapshot xbiancopy" cli to restore an img file? - mk01 - 6th Feb, 2014 04:51 AM
RE: Can i use the "btrfs-auto-snapshot xbiancopy" cli to restore an img file? - TheBigD - 6th Feb, 2014, 09:35 AM
RE: Can i use the "btrfs-auto-snapshot xbiancopy" cli to restore an img file? - TheBigD - 8th Feb, 2014, 05:49 AM
RE: Can i use the "btrfs-auto-snapshot xbiancopy" cli to restore an img file? - mk01 - 17th Mar, 2014, 11:37 PM

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

Current time: 30th Jun, 2025, 03:54 AM Powered By MyBB, © 2002-2025 MyBB Group.